public class Circular extends Series
Title: Circular class
Description: Circled Series.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver
Modifier and Type | Field and Description |
---|---|
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 |
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, oldDataSource, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
chart, InternalUse
Constructor and Description |
---|
Circular() |
Circular(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
assign(Series source)
Copies all properties from one Series component to another.
Only the common properties shared by both source and destination Series are copied. |
boolean |
associatedToAxis(Axis a) |
protected Color |
calcCircleBackColor() |
protected Gradient |
calcCircleGradient() |
protected void |
calcRadius() |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
Clicked means the X and Y coordinates are in the point screen region bounds. |
protected void |
doBeforeDrawValues() |
boolean |
getAutoPenColor()
When true TeeChart will calculate colour from slice colour.
|
Color |
getCircleBackColor()
Determines the color to fill the ellipse.
Setting it to Color.EMPTY indicates the CircledSeries to use to tChart.getPanel().getColor() color. |
boolean |
getCircled()
The CirleSeries as elliptical or circular.
Default value: false |
Gradient |
getCircleGradient()
Determines the Gradient which fills the ellipse.
Default value: null |
int |
getCircleHeight()
Returns the height of the bounding Circle.
|
Rectangle |
getCircleRect()
Returns the rectangle that bounds the circle.
eg. |
int |
getCircleWidth()
Returns the width of the bounding Circle.
|
int |
getCircleXCenter()
Returns the exact horizontal position of ellipse's center in pixels.
Run-time and read only. |
int |
getCircleYCenter()
Returns the exact vertical position of the ellipse's center in pixels.
|
int |
getCustomXRadius()
The ellipse's horizontal radius in pixels.
Default value: 0 |
int |
getCustomYRadius()
The ellipse's vertical radius in pixels.
Default value: 0 |
int |
getRotationAngle()
The angle of Chart rotation.
The RotationAngle can be a valid integer number between 0 and 359. This angle can be changed by code to rotate the Pie (or Polar). |
java.lang.Boolean |
getUniqueCustomRadius() |
int |
getXRadius()
Returns the exact horizontal size of the ellipse's radius in pixels.
The ellipse XRadius can be set to a fixed number of pixels by using this method. |
int |
getYRadius()
Returns the exact vertical size of the ellipse's radius in pixels.
The ellipse YRadius can be set to a fixed number of pixels by using this method. |
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.
It can be changed both at design time or runtime. |
void |
setAutoPenColor(boolean value)
When true TeeChart will calculate colour from slice colour.
|
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.
Default value: false |
void |
setCustomXRadius(int value)
Sets ellipse's horizontal radius in pixels.
Default value: 0 |
void |
setCustomYRadius(int value)
Sets ellipse's vertical radius in pixels.
Default value: 0 |
protected void |
setParentProperties(boolean enableParentProps) |
void |
setRotationAngle(int value)
Sets angle of Chart rotation.
Default value: 0 |
void |
setUniqueCustomRadius(java.lang.Boolean value) |
protected boolean |
shouldSerializeCircleBackColor() |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addChartValue, added, addedValue, addNull, addNullXY, addSampleValues, addSeriesMouseListener, addSeriesPaintListener, addValues, assignDispose, assignValues, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doClick, doClickPointer, doDoubleClick, draw, drawHiddenValue, drawLegend, drawLegend, drawLegendShape, drawMark, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getDescription, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxXValue, getMaxYValue, getMaxZValue, getMiddleZ, getMinXValue, getMinYValue, getMinZValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, prepareForGallery, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setColor, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDefaultNullValue, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, setNull, setNull, setPercentFormat, setSeriesColor, setShowInLegend, setStartZ, setSubGallery, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
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
public Circular()
public Circular(IBaseChart c)
public void assign(Series source)
Series
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
public int clicked(int x, int y)
Series
protected void prepareLegendCanvas(IGraphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
prepareLegendCanvas
in class Series
public void setActive(boolean value)
Series
public void onDisposing()
onDisposing
in interface ISeries
onDisposing
in class Series
public void setChart(IBaseChart value)
TeeBase
protected 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
- doublepublic boolean associatedToAxis(Axis a)
associatedToAxis
in interface ISeries
associatedToAxis
in class Series
public double pointToAngle(int x, int y)
x
- inty
- intpublic double pointToRadius(int x, int y)
x
- inty
- intpublic 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()
public boolean getAutoPenColor()
public void setAutoPenColor(boolean value)
value
- booleanprotected 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
- intpublic java.lang.Boolean getUniqueCustomRadius()
public void setUniqueCustomRadius(java.lang.Boolean value)