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

Class wb.GraphMarker

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

public class GraphMarker
extends GraphUnit
Marker in its native form. Useful in conference to point to something on the editor for information. By default, the marker is set to a CROSS Following is the Mapping (xmin, ymin) --> center of the marker. kind of pseudo abstract class

Constructor Index

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

Method Index

 o basedepacketize(DataInputStream)
Helper method to unpack the data from byte array and fill the member variables.
 o basepacketize(DataOutputStream)
Helper method to pack the base member variables of interest data to a byte array pack
 o packetize(DataOutputStream)
packs the representation details and sync's to the stream.

Constructors

 o GraphMarker
  public GraphMarker(int x,
                     int y,
                     Color arg)
Creates an Instance of 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 GraphMarker
  public GraphMarker(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 basepacketize
  protected void basepacketize(DataOutputStream dos) throws IOException
Helper method to pack the base member variables of interest data to a byte array pack
Parameters:
dos - the stream to which it writes the data
Throws: IOException
if an I/O error occurs
Overrides:
basepacketize in class GraphUnit
See Also:
basedepacketize, BytePackOutputStream
 o basedepacketize
  protected void basedepacketize(DataInputStream din) throws IOException
Helper method to unpack the data from byte array and fill the member variables.
Parameters:
din - the stream from which it reads the data
Throws: IOException
if an I/O error occurs
Overrides:
basedepacketize in class GraphUnit
See Also:
basepacketize, ByteUnPackInputStream
 o packetize
  public void packetize(DataOutputStream dos) throws IOException
packs the representation details and sync's to the stream.
Parameters:
dos - DataOutputStream to which the data is written
Throws: IOException
if an I/O error occurs
Overrides:
packetize in class GraphUnit
See Also:
BytePackOutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index