SimJava 2.0.1

eduni.simdiag
Class GraphSetAxes

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

public class GraphSetAxes
extends GraphEventObject

Stores a command to set the axes labels for this graph.

See Also:
Serialized Form

Field Summary
(package private)  String xax
           
(package private)  String yax
           
 
Fields inherited from class EventObject
source
 
Constructor Summary
GraphSetAxes(Object src, String xax, String yax)
          Constructs a setaxes command.
 
Method Summary
 void doit(GraphDiagram d)
          Sets the axes labels of the given diagram.
 
Methods inherited from class EventObject
getSource, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xax

String xax

yax

String yax
Constructor Detail

GraphSetAxes

public GraphSetAxes(Object src,
                    String xax,
                    String yax)
Constructs a setaxes command.

Parameters:
xax - The label of the X axis.
yax - The label of the Y axis.
Method Detail

doit

public void doit(GraphDiagram d)
Sets the axes labels of the given diagram. Called by the recipient of the command.

Overrides:
doit in class GraphEventObject

SimJava 2.0.1

The University of Edinburgh, 2009