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

Class wb.GQuestMarker

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

public class GQuestMarker
extends GraphMarker
Marker QUESTION in its native form; derived from GraphMarker. Uses xmin, ymin as the center of the marker.

Constructor Index

 o GQuestMarker(int, int, Color)
Creates an Instance of "?" Marker with its center the bottom of the round portion along with its Color and type NOTE: Found some difference in the shape on win95/NT.
 o GQuestMarker(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 in an XOR mode using the background color thus, erasing.
 o paint(Graphics)
renders the "?" marker to the graphics.

Constructors

 o GQuestMarker
  public GQuestMarker(int x,
                      int y,
                      Color arg)
Creates an Instance of "?" Marker with its center the bottom of the round portion along with its Color and type NOTE: Found some difference in the shape on win95/NT.
Parameters:
x - the x coordinate of its center
y - the y coordinate of its center
arg - the color of this rectangle.
See Also:
GTypes, paint
 o GQuestMarker
  public GQuestMarker(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. It uses the xmin, ymin as the bottom of the circle and draws an arc in the negative direction from -90 degree to +135 degree. Uses this color
Parameters:
g - Graphics on to which the question mark is rendered
Overrides:
paint in class GraphUnit
 o erase
  public void erase(Graphics g,
                    Color arg)
renders the "?" marker to the graphics in an XOR mode using the background color thus, erasing.
Parameters:
g - Graphics on to which the question mark is rendered
arg - Color of the background
Overrides:
erase in class GraphUnit
See Also:
paint

All Packages  Class Hierarchy  This Package  Previous  Next  Index