SimJava
v2.0

eduni.simdiag
Class GraphSetAxes

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--eduni.simdiag.GraphEventObject
              |
              +--eduni.simdiag.GraphSetAxes
All Implemented Interfaces:
java.io.Serializable

public class GraphSetAxes
extends GraphEventObject

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

See Also:
Serialized Form

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

Constructor Detail

GraphSetAxes

public GraphSetAxes(java.lang.Object src,
                    java.lang.String xax,
                    java.lang.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
v2.0

The University of Edinburgh, 2002