jwo.utils
Class JWGraphItem

java.lang.Object
  |
  +--jwo.utils.JWGraphItem

public class JWGraphItem
extends Object

Skeleton for a graphical object to be added to Graph. Originally based on code from
Constructor Summary
JWGraphItem()
          Stores a graphable item (bar, line, point etc.).
JWGraphItem(float x, float y)
          Stores a graphable item (bar, line, point etc.).
JWGraphItem(float x, float y, Color colour)
          Stores a graphable item (bar, line, point etc.).
 
Method Summary
 Color getColour()
          Reports the colour of the graphics component.
 float getXValue()
          Reports the X value of the graphics component.
 float getYValue()
          Reports the Y value of the graphics component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWGraphItem

public JWGraphItem()
Stores a graphable item (bar, line, point etc.). Uses default foreground text colour for object.


JWGraphItem

public JWGraphItem(float x,
                   float y)
Stores a graphable item (bar, line, point etc.). Uses default foreground text colour for object.

Parameters:
x - X value associated with the compontent.
y - Y value associated with the compontent.

JWGraphItem

public JWGraphItem(float x,
                   float y,
                   Color colour)
Stores a graphable item (bar, line, point etc.).

Parameters:
x - X value associated with the compontent.
y - Y value associated with the compontent.
colour - Colour of component.
Method Detail

getXValue

public float getXValue()
Reports the X value of the graphics component.

Returns:
X value associated with graph component.

getYValue

public float getYValue()
Reports the Y value of the graphics component.

Returns:
Y value associated with graph component.

getColour

public Color getColour()
Reports the colour of the graphics component.

Returns:
Graph component colour.