public class ItemShape
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ItemShape()
Creates a item shape with default type and size.
|
ItemShape(int type,
double size)
Creates a item shape.
|
Modifier and Type | Method and Description |
---|---|
ItemShape |
copy()
Returns a copy of this item shape.
|
double |
getShapeSize()
Returns the shape size.
|
int |
getShapeType()
Returns the shape form.
|
void |
setShapeSize(double shapeSize)
Sets the shape size.
|
void |
setShapeType(int shapeType)
Sets the shape form.
|
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
public ItemShape()
TYPE_DEFAULT_SHAPE
,
DEFAULT_SHAPE_SIZE
public ItemShape(int type, double size)
type
- the shape typesize
- the shape sizejava.lang.IllegalArgumentException
- by illegal shape type or negative shape size.TYPE_DEFAULT_SHAPE
,
DEFAULT_SHAPE_SIZE
public int getShapeType()
setShapeType(int)
public void setShapeType(int shapeType)
shapeType
- the typejava.lang.IllegalArgumentException
- by unsupported shape type.getShapeType()
,
TYPE_DEFAULT_SHAPE
,
TYPE_CIRCLE_SHAPE
,
TYPE_DIAMOND_SHAPE
,
TYPE_RECTANGLE_SHAPE
,
TYPE_TRIANGLE_SHAPE
public double getShapeSize()
setShapeSize(double)
,
DEFAULT_SHAPE_SIZE
public void setShapeSize(double shapeSize)
shapeSize
- the shape size to setjava.lang.IllegalArgumentException
- if shape size is less than zero.getShapeSize()
,
DEFAULT_SHAPE_SIZE
public ItemShape copy()
Copyright © 1999-2020 by i-net software GmbH