Class wb.GCrossMarker
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wb.GCrossMarker

java.lang.Object
   |
   +----wb.GraphUnit
           |
           +----wb.GraphMarker
                   |
                   +----wb.GCrossMarker

public class GCrossMarker
extends GraphMarker
Marker CROSS in its native form; derived from GraphMarker.

Constructor Index

 o GCrossMarker(int, int, Color)
Creates an Instance of CROSS Marker with its center defined along with its Color and type
 o GCrossMarker(DataInputStream)
Creates an instance of a Marker by reading the data from the Input Stream.

Method Index

 o erase(Graphics, Color)
renders the Marker to the graphics (screen/canvas) using background color.
 o paint(Graphics)
renders the Marker to the graphics (screen/canvas).

Constructors

 o GCrossMarker
  public GCrossMarker(int x,
                      int y,
                      Color arg)
Creates an Instance of CROSS Marker with its center defined along with its Color and type
Parameters:
x - the x coordinate of its center
y - the y coordinate of its center
arg - the color of this rectangle.
See Also:
GTypes
 o GCrossMarker
  public GCrossMarker(DataInputStream din) throws IOException
Creates an instance of a Marker by reading the data from the Input Stream. It then fills up the member variables of the class
Parameters:
din - DataInputStream the stream from which the data is read
Throws: IOException
if an I/O error occurs
See Also:
basepacketize, packetize, ByteUnPackInputStream

Methods

 o paint
  public void paint(Graphics g)
renders the Marker to the graphics (screen/canvas). It creates a 6x6 box around the center and draws the diagonals using this color.
Parameters:
g - Graphics to which the CROSS is rendered
Overrides:
paint in class GraphUnit
 o erase
  public void erase(Graphics g,
                    Color arg)
renders the Marker to the graphics (screen/canvas) using background color.
Parameters:
g - Graphics to which the CROSS is rendered
arg - Color of the background
Overrides:
erase in class GraphUnit

All Packages  Class Hierarchy  This Package  Previous  Next  Index