|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.plot.ItemShape
public class ItemShape
This class defines the shapes which used in the chart.
| Field Summary | |
|---|---|
static double |
DEFAULT_SHAPE_SIZE
The default shape size. |
static int |
TYPE_CIRCLE_SHAPE
The chart use only circle shapes. |
static int |
TYPE_DEFAULT_SHAPE
The chart use a shapes sequence. |
static int |
TYPE_DIAMOND_SHAPE
The chart use only diamond shapes. |
static int |
TYPE_RECTANGLE_SHAPE
The chart use only rectangle shapes. |
static int |
TYPE_TRIANGLE_SHAPE
The chart use only triangle shapes. |
| Constructor Summary | |
|---|---|
ItemShape()
Creates a item shape with default type and size. |
|
ItemShape(int type,
double size)
Creates a item shape. |
|
| Method Summary | |
|---|---|
ItemShape |
copy()
Returns a copy of this item shape. |
boolean |
equals(java.lang.Object obj)
|
double |
getShapeSize()
Returns the shape size. |
int |
getShapeType()
Returns the shape form. |
int |
hashCode()
|
void |
setShapeSize(double shapeSize)
Sets the shape size. |
void |
setShapeType(int shapeType)
Sets the shape form. |
| Field Detail |
|---|
public static final double DEFAULT_SHAPE_SIZE
public static final int TYPE_DEFAULT_SHAPE
public static final int TYPE_RECTANGLE_SHAPE
public static final int TYPE_CIRCLE_SHAPE
public static final int TYPE_DIAMOND_SHAPE
public static final int TYPE_TRIANGLE_SHAPE
| Constructor Detail |
|---|
public ItemShape()
TYPE_DEFAULT_SHAPE,
DEFAULT_SHAPE_SIZE
public ItemShape(int type,
double size)
type - the shape typesize - the shape size
java.lang.IllegalArgumentException - by illegal shape type or negative shape size.TYPE_DEFAULT_SHAPE,
DEFAULT_SHAPE_SIZE| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getShapeType()
setShapeType(int)public void setShapeType(int shapeType)
shapeType - the type
java.lang.IllegalArgumentException - by unsupported shape type.getShapeType(),
TYPE_DEFAULT_SHAPE,
TYPE_CIRCLE_SHAPE,
TYPE_DIAMOND_SHAPE,
TYPE_RECTANGLE_SHAPE,
TYPE_TRIANGLE_SHAPEpublic double getShapeSize()
setShapeSize(double),
DEFAULT_SHAPE_SIZEpublic void setShapeSize(double shapeSize)
shapeSize - the shape size to set
java.lang.IllegalArgumentException - if shape size is less than zero.getShapeSize(),
DEFAULT_SHAPE_SIZEpublic ItemShape copy()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||