com.klg.jclass.chart3d.shape
Class Diamond
java.lang.Object
|
+--com.klg.jclass.chart3d.shape.BaseShape
|
+--com.klg.jclass.chart3d.shape.Diamond
- All Implemented Interfaces:
- JCSymbolShape, Serializable
- Direct Known Subclasses:
- Tetrahedron
- public class Diamond
- extends BaseShape
- implements Serializable
An extension of the class that draws a diamond for a point. Used inside
JClass Chart3d for com.klg.jclass.chart3d.JCSymbolStyle.DIAMOND
.
- See Also:
BaseShape
,
JCSymbolShape
,
JCSymbolStyle
,
Serialized Form
Fields inherited from class com.klg.jclass.chart3d.shape.BaseShape |
size, x, y |
Constructor Summary |
Diamond()
Default constructor (required). |
Method Summary |
String |
getName()
Return a localized name for this shape |
void |
resize(int size)
Overrides BaseShape.resize() . |
Methods inherited from class com.klg.jclass.chart3d.shape.BaseShape |
draw |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Diamond
public Diamond()
- Default constructor (required).
getName
public String getName()
- Return a localized name for this shape
- Specified by:
getName
in interface JCSymbolShape
- Specified by:
getName
in class BaseShape
- Returns:
- The name of this shape
resize
public void resize(int size)
- Overrides
BaseShape.resize()
. Creates an array of points that
will draw a diamond.
- Specified by:
resize
in interface JCSymbolShape
- Overrides:
resize
in class BaseShape
- Parameters:
size
- The size of the diamond