|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.styles.Series
com.steema.teechart.styles.Circular
public class Circular
Title: Circular class
Description: Circled Series.
Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
---|
Series.MarkTextResolver |
Field Summary | |
---|---|
protected int |
circleHeight
|
protected int |
circleWidth
|
protected boolean |
iAdjustCircleForMarks
|
protected int |
iCircleXCenter
|
protected int |
iCircleYCenter
|
protected int |
iXRadius
|
protected int |
iYRadius
|
static double |
PIDEGREE
Represents the static finalant pi / 180. |
protected Rectangle |
rCircleRect
|
protected double |
rotDegree
|
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, InternalUse, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart |
Constructor Summary | |
---|---|
Circular()
|
|
Circular(IBaseChart c)
|
Method Summary | |
---|---|
protected void |
adjustCircleRect()
|
Point |
angleToPos(double angle,
double aXRadius,
double aYRadius)
Returns the exact Screen position for a given pair of Angle and Radius values. |
boolean |
associatedToAxis(Axis a)
|
protected Color |
calcCircleBackColor()
|
protected Gradient |
calcCircleGradient()
|
protected void |
calcRadius()
|
protected void |
doBeforeDrawValues()
|
Color |
getCircleBackColor()
Determines the color to fill the ellipse. |
boolean |
getCircled()
The CirleSeries as elliptical or circular. |
Gradient |
getCircleGradient()
Determines the Gradient which fills the ellipse. |
int |
getCircleHeight()
Returns the height of the bounding Circle. |
Rectangle |
getCircleRect()
Returns the rectangle that bounds the circle. |
int |
getCircleWidth()
Returns the width of the bounding Circle. |
int |
getCircleXCenter()
Returns the exact horizontal position of ellipse's center in pixels. |
int |
getCircleYCenter()
Returns the exact vertical position of the ellipse's center in pixels. |
int |
getCustomXRadius()
The ellipse's horizontal radius in pixels. |
int |
getCustomYRadius()
The ellipse's vertical radius in pixels. |
int |
getRotationAngle()
The angle of Chart rotation. |
int |
getXRadius()
Returns the exact horizontal size of the ellipse's radius in pixels. |
int |
getYRadius()
Returns the exact vertical size of the ellipse's radius in pixels. |
void |
onDisposing()
|
double |
pointToAngle(int x,
int y)
Returns the angle from the XY point parameter to the circle center. |
double |
pointToRadius(int x,
int y)
Returns the radius from XY point to the circle center. |
protected void |
prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush)
|
protected java.lang.Object |
readResolve()
|
protected void |
reCalcCircleRect()
|
void |
rotate(int angle)
Returns the angle by which the Chart is rotated. |
void |
setActive(boolean value)
Shows or hides this series. |
void |
setChart(IBaseChart value)
Chart associated with this object. |
void |
setCircleBackColor(Color value)
Determines the color to fill the ellipse. |
void |
setCircled(boolean value)
Sets CirleSeries as elliptical or circular. |
void |
setCustomXRadius(int value)
Sets ellipse's horizontal radius in pixels. |
void |
setCustomYRadius(int value)
Sets ellipse's vertical radius in pixels. |
protected void |
setParentProperties(boolean enableParentProps)
|
void |
setRotationAngle(int value)
Sets angle of Chart rotation. |
protected boolean |
shouldSerializeCircleBackColor()
|
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.steema.teechart.styles.ISeries |
---|
getChart, invalidate |
Field Detail |
---|
public static final double PIDEGREE
protected int circleWidth
protected int circleHeight
protected int iXRadius
protected int iYRadius
protected int iCircleXCenter
protected int iCircleYCenter
protected Rectangle rCircleRect
protected double rotDegree
protected boolean iAdjustCircleForMarks
Constructor Detail |
---|
public Circular()
public Circular(IBaseChart c)
Method Detail |
---|
protected java.lang.Object readResolve()
readResolve
in class Series
protected void adjustCircleRect()
protected void reCalcCircleRect()
protected Color calcCircleBackColor()
protected Gradient calcCircleGradient()
protected void calcRadius()
protected void doBeforeDrawValues()
doBeforeDrawValues
in class Series
protected void prepareLegendCanvas(IGraphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
prepareLegendCanvas
in class Series
public void setActive(boolean value)
Series
setActive
in interface ISeries
setActive
in class Series
value
- booleanpublic void onDisposing()
onDisposing
in interface ISeries
onDisposing
in class Series
public void setChart(IBaseChart value)
TeeBase
setChart
in interface ISeries
setChart
in class Series
value
- IBaseChartprotected void setParentProperties(boolean enableParentProps)
public int getRotationAngle()
public void setRotationAngle(int value)
Example:
pieSeries = new com.steema.teechart.styles.Pie(myChart.getChart()); pieSeries.getMarks().setVisible(true); pieSeries.getMarks().setStyle(MarksStyle.LABELPERCENT); pieSeries.fillSampleValues(5); pieSeries.setAngleSize(180); pieSeries.setRotationAngle(90);
value
- intpublic Point angleToPos(double angle, double aXRadius, double aYRadius)
angle
- doubleaXRadius
- doubleaYRadius
- double
public boolean associatedToAxis(Axis a)
associatedToAxis
in interface ISeries
associatedToAxis
in class Series
public double pointToAngle(int x, int y)
x
- inty
- int
public double pointToRadius(int x, int y)
x
- inty
- int
public void rotate(int angle)
angle
- intpublic int getXRadius()
public int getYRadius()
public int getCircleXCenter()
public int getCircleYCenter()
public int getCircleWidth()
public int getCircleHeight()
public Rectangle getCircleRect()
protected boolean shouldSerializeCircleBackColor()
public Color getCircleBackColor()
public void setCircleBackColor(Color value)
value
- Colorpublic Gradient getCircleGradient()
Example:
series = new com.steema.teechart.styles.Polar(myChart.getChart()); series.fillSampleValues(20); series.setCircled(true); series.getCircleGradient().setDirection(GradientDirection.RADIAL); series.getCircleGradient().setStartColor(Color.WHITE); series.getCircleGradient().setEndColor(Color.DARK_GRAY); series.getCircleGradient().setRadialX(100); series.getCircleGradient().setRadialY(-100); series.getCircleGradient().setVisible(true); series.getCirclePen().setColor(Color.NAVY); series.getCirclePen().setStyle(DashStyle.DOT); series.getCirclePen().setWidth(2);
public boolean getCircled()
public void setCircled(boolean value)
value
- booleanpublic int getCustomXRadius()
public void setCustomXRadius(int value)
value
- intpublic int getCustomYRadius()
public void setCustomYRadius(int value)
value
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |