public class Polygon extends TeeBase
Modifier and Type | Field and Description |
---|---|
Map |
parentSeries |
chart, InternalUse
Constructor and Description |
---|
Polygon(IBaseChart chart) |
Polygon(PolygonList collection,
IBaseChart chart) |
Modifier and Type | Method and Description |
---|---|
int |
add(double x,
double y)
Adds a boundary coordinate to the polygon.
The polygon will be drawn in sequential order of the coordinates. |
int |
add(Point p)
Adds a boundary coordinate to the polygon.
The polygon will be drawn in sequential order of the coordinates. |
void |
calcPoints(int xoffset,
int yoffset) |
void |
draw(IGraphics3D g,
int valueIndex) |
Rectangle |
getBounds()
Returns the rectangle in pixels that corresponds to the maximum
space used by the polygon.
|
ChartBrush |
getBrush()
Determines the kind of brush used to fill the polygon interior.
|
boolean |
getClosed()
When true, the polygon is displayed and filled using the polygon
Pen and Brush methods.
|
Color |
getColor(int index)
The Color used to fill the polygon.
Or that used to draw the Brush pattern. |
Gradient |
getGradient()
Determines the kind of polygon's interior gradient effect.
|
int |
getIndex() |
boolean |
getParentBrush()
The polygon uses the same Brush as its parentseries (Map Series)
when true.
If false, the polygon uses its own Brush property. |
boolean |
getParentPen()
The polygon uses the same Pen as its Parentseries, when true.
If false, the polygon uses its own Pen. |
ChartPen |
getPen()
Specifies the Pen used to draw the border of the polygon.
|
PolygonSeries |
getPoints()
Accesses the co-ordinates PointList which determine the boundary of
the polygon.
|
Point[] |
getPolygonPoints()
The coordinates of all Points of the Polygon.
|
java.lang.String |
getText()
Specifies the text string that labels the polygon
|
int |
getTransparency()
Amount of opacity used to fill the polygon interior.
100 means fully transparent, 0 means fully opaque. |
double |
getZ()
Specifies the position on the Z-axis of the 3D Map Series.
In Chart terms, this will set a Z plane position, a lower value of Z will be drawn in front of a higher Z value. Map Series is intended to be viewed in 2D and the Z value is provided to be used as a value for a Polygon (ie. |
void |
setClosed(boolean value)
When true, the polygon is displayed and filled using the polygon
Pen and Brush methods.
|
void |
setColor(Color value)
Sets Color used to fill the polygon.
Or that used to draw the Brush pattern. |
void |
setIndex(int value) |
void |
setParentBrush(boolean value)
The polygon uses the same Brush as its parentseries (Map Series)
when true.
|
void |
setParentPen(boolean value)
The polygon uses the same Pen as its Parentseries, when true.
If false, the polygon uses its own Pen. |
void |
setPoints(PolygonSeries value)
Accesses the co-ordinates PointList which determine the boundary of
the polygon.
|
void |
setText(java.lang.String value)
Specifies the text string that labels the polygon
|
void |
setTransparency(int value)
Amount of opacity used to fill the polygon interior.
100 means fully transparent, 0 means fully opaque. |
void |
setZ(double value)
Specifies the position on the Z-axis of the 3D Map Series.
|
boolean |
visible()
Returns true if the polygon fits inside the available Chart
ChartRect rectangle.
|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public Map parentSeries
public Polygon(IBaseChart chart)
public Polygon(PolygonList collection, IBaseChart chart)
public int getIndex()
public void setIndex(int value)
public boolean visible()
public void draw(IGraphics3D g, int valueIndex)
public Rectangle getBounds()
public PolygonSeries getPoints()
public void setPoints(PolygonSeries value)
value
- PolygonSeriespublic void calcPoints(int xoffset, int yoffset)
public Point[] getPolygonPoints()
public ChartBrush getBrush()
public boolean getClosed()
public void setClosed(boolean value)
value
- booleanpublic boolean getParentPen()
public void setParentPen(boolean value)
value
- booleanpublic Color getColor(int index)
index
- intpublic void setColor(Color value)
value
- Colorpublic Gradient getGradient()
public boolean getParentBrush()
public void setParentBrush(boolean value)
value
- booleanpublic double getZ()
public void setZ(double value)
value
- doublepublic int add(Point p)
p
- Pointpublic int add(double x, double y)
x
- doubley
- doublepublic java.lang.String getText()
public void setText(java.lang.String value)
value
- Stringpublic ChartPen getPen()
public int getTransparency()
public void setTransparency(int value)
value
- int