SimJava 2.0.1

eduni.simdiag
Class GraphData

Object
  extended by EventObject
      extended by GraphEventObject
          extended by GraphData
All Implemented Interfaces:
Serializable

public class GraphData
extends GraphEventObject

Stores a single data point. Each data point has a line name and X and Y coordinates.

See Also:
Serialized Form

Field Summary
 String linename
           
 double x
           
 double y
           
 
Fields inherited from class EventObject
source
 
Constructor Summary
GraphData(Object src, String l)
          Constructs data elem from a single text line Format: linename x y e.g.
GraphData(Object src, String linename, double x, double y)
          Constructs data elem from linename, x and y
 
Method Summary
 void doit(GraphDiagram d)
          Called by recipient to implement command
 
Methods inherited from class EventObject
getSource, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

linename

public String linename

x

public double x

y

public double y
Constructor Detail

GraphData

public GraphData(Object src,
                 String l)
Constructs data elem from a single text line Format: linename x y e.g. "total_time 10 123.45"


GraphData

public GraphData(Object src,
                 String linename,
                 double x,
                 double y)
Constructs data elem from linename, x and y

Method Detail

doit

public void doit(GraphDiagram d)
Called by recipient to implement command

Overrides:
doit in class GraphEventObject

SimJava 2.0.1

The University of Edinburgh, 2009