|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.chart.JCShape
JCShape is an abstract base class used for defining custom
point styles in JClass Chart. To create a new shape class, extend
JCShape and provide a resize() method. The
resize() method must populate the x[] and y[]
arrays with point values for the shape to be drawn. The point values are
relative to (0,0). Chart will automatically move the shape to the
appropriate location.
| Field Summary | |
protected int |
size
Size of the point. |
protected int[] |
x
Array of x values. |
protected int[] |
y
Array of y values. |
| Constructor Summary | |
JCShape()
|
|
| Method Summary | |
void |
draw(Graphics gc,
double xorg,
double yorg)
Draws the point at the specified floating point pixel coordinates. |
void |
draw(Graphics gc,
int xorg,
int yorg)
Draws the point at the specified integer pixel coordinates. |
protected abstract void |
resize(int sz)
Populates the x[] and y[] arrays based on the provided size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int size
protected int[] x
protected int[] y
| Constructor Detail |
public JCShape()
| Method Detail |
protected abstract void resize(int sz)
sz - value to be assigned to size member variable
public void draw(Graphics gc,
int xorg,
int yorg)
gc - graphics context to use for drawingxorg - x origin point as an integeryorg - y origin point as an integer
public void draw(Graphics gc,
double xorg,
double yorg)
gc - graphics context to use for drawingxorg - x origin point as a doubleyorg - y origin point as a double
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||