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.
-
GCrossMarker(int, int, Color)
- Creates an Instance of CROSS Marker with its center defined
along with its Color and type
-
GCrossMarker(DataInputStream)
- Creates an instance of a Marker by reading the data from the
Input Stream.
-
erase(Graphics, Color)
- renders the Marker to the graphics (screen/canvas) using background
color.
-
paint(Graphics)
- renders the Marker to the graphics (screen/canvas).
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
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
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
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