|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.gui.JWGraphItem
public class JWGraphItem
Skeleton for a graphical object to be added to Graph. Originally based on the code given in the tutorial Chart your way to custom graph components, by Maria Winslow, 1997 (JavaWorld, July, 1997). See www.javaworld.com/javaworld/jw-07-1997/jw-07-step.html. Modified to use Swing and additional axis labelling.
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 |
---|
public JWGraphItem()
public JWGraphItem(float x, float y)
x
- X value associated with the component.y
- Y value associated with the component.public JWGraphItem(float x, float y, Color colour)
x
- X value associated with the component.y
- Y value associated with the component.colour
- Colour of component.Method Detail |
---|
public float getXValue()
public float getYValue()
public Color getColour()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |