|
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.chart3d.shape.BaseShape
BaseShape is an abstract base class used for defining custom point styles in Chart 3D. To create a new shape class, extend BaseShape 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 | |
BaseShape()
|
Method Summary | |
void |
draw(Graphics gc,
int xorg,
int yorg)
Draws the symbol at the specified coordinates using the x[] and y[] arrays. |
abstract String |
getName()
Return a localized name for this shape |
void |
resize(int size)
Method used for setting the size of the shape. |
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 BaseShape()
Method Detail |
public abstract String getName()
getName
in interface JCSymbolShape
public void resize(int size)
resize
in interface JCSymbolShape
size
- value to be assigned to size member variablepublic void draw(Graphics gc, int xorg, int yorg)
draw
in interface JCSymbolShape
gc
- graphics context to use for drawingxorg
- x origin pointyorg
- y origin point
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |