public class CustomPolar extends Circular
Title: CustomPolar class
Description: CustomPolar Series.
Example:
series = new com.steema.teechart.styles.Polar(myChart.getChart()); series.fillSampleValues(10); series.setCircleLabels(true); series.setCircleLabelsInside(true); series.setClockWiseLabels(true); series.setCircled(true); series.setCircleBackColor(Color.EMPTY); series.getCircleLabelsFont().setColor(Color.NAVY); series.setTransparency(35); series.getBrush().setColor(Color.WHITE); series.getBrush().setSolid(true); series.getBrush().loadImage(ChartSamplePanel.class.getResource(URL_BRUSHPATTERN)); series.getBrush().setImageMode(ImageMode.TILE);
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 |
iMaxValuesCount |
protected SeriesPointer |
iPointer |
protected TreatNullsStyle |
treatnulls |
circleHeight, circleWidth, iAdjustCircleForMarks, iCircleXCenter, iCircleYCenter, iXRadius, iYRadius, PIDEGREE, rCircleRect, 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 |
---|
CustomPolar() |
CustomPolar(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
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. |
int |
calcXPos(int valueIndex)
Returns the pixel Screen Horizontal coordinate of the ValueIndex Series
value.
|
int |
calcYPos(int valueIndex)
Returns the pixel Screen Vertical coordinate of the ValueIndex Series
value.
This coordinate is calculated using the Series associated Vertical Axis. |
int |
clicked(int x,
int y)
The ValueIndex of the "clicked" point in the Series.
|
protected boolean |
clickedSegment(Point p,
Point tmp,
Point old) |
protected void |
doAfterDrawValues() |
protected void |
doBeforeDrawValues() |
protected void |
draw() |
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect) |
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position) |
void |
drawRing(double value,
int z) |
void |
drawValue(int valueIndex)
Called internally.
|
void |
drawZone(double min,
double max,
int z) |
double |
getAngleIncrement()
The Bottom Axis is used as Angle axis.
Gets angle in degrees used to draw the dividing grid lines in anti-clockwise direction. The 0 starting angle is located at rightmost Polar coordinate. |
ValueList |
getAngleValues()
Gets list of angle values for each polar point.
It is a TList object that stores each Polar point Angle value. |
ChartBrush |
getBrush()
Sets Polar Back Brush.
|
Point |
getCircleCenter() |
protected java.lang.String |
getCircleLabel(double angle,
int index) |
boolean |
getCircleLabels()
Sets CicleLabel properties.
Default value: false |
ChartFont |
getCircleLabelsFont()
The Font characteristics for the labels of a circular TeeChart.
|
boolean |
getCircleLabelsInside()
Enables/disables the display of the axis labels inside the circle area.
|
boolean |
getCircleLabelsRotated()
Places Circle Labels at an angle in line with the Radar/Polar circle at
each Label point when true.
|
ChartPen |
getCirclePen()
Determines the pen used to draw the outmost circle of all CustomPolar
series derived Series.
|
boolean |
getClockWiseLabels()
Displays the circle labels in a clockwise direction.
Default value: false |
boolean |
getCloseCircle()
Draws a Line between the last and first PolarSeries point coordinates.
|
ChartFont |
getFont()
The label font characteristics.
|
ChartPen |
getPen()
Determines Pen used to draw the Line connecting PolarSeries points.
Points can be displayed by setting Pointer.Visible to true. |
SeriesPointer |
getPointer()
Pointer contains several properties to control the formatting
attributes of Points like Pen, Brush, Draw3D, Visible, etc.
It is a subclass of Points series, Line series and all other derived Points series classes like Bubble series, Polar series and Candle series. |
double |
getRadiusIncrement()
Determines the increment used to draw the ring grid lines.
It is the same as accessing Chart.Axes.Left.Increment when using Polar series. |
ValueList |
getRadiusValues()
Gets list of radius values for each polar point.
It is a TList object that stores each Polar point Radius value. |
int |
getTransparency()
The Transparency level from 0 to 100%.
Default value: 0 |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
protected double |
getXValue(int valueIndex) |
protected void |
internalDrawValue(int valueIndex,
int x,
int y) |
protected PointerStyle |
onGetPointerStyle(int valueIndex,
PointerStyle style) |
void |
prepareForGallery(boolean isEnabled) |
void |
removePointerStyleResolver() |
void |
setAngleIncrement(double value)
Displays labels in 15,30,45 or 90 degree increments.
|
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setCircleLabels(boolean value)
Sets CicleLabel properties.
Default value: false |
void |
setCircleLabelsInside(boolean value)
Enables/disables the display of the axis labels inside the circle area.
|
void |
setCircleLabelsRotated(boolean value)
Places Circle Labels at an angle in line with the Radar/Polar circle at
each Label point when true.
|
void |
setClockWiseLabels(boolean value)
Displays the circle labels in a clockwise direction when true.
Default value: false |
void |
setCloseCircle(boolean value)
Draws a Line between the last and first PolarSeries point coordinates.
|
void |
setColor(Color c)
Default color for all points.
Default value: Color.Empty |
void |
setPointerStyleResolver(PointerStyleResolver resolver) |
void |
setRadiusIncrement(double value)
Sets the increment used to draw the ring grid lines.
|
void |
setTransparency(int value)
Sets Transparency level from 0 to 100%.
Default value: 0 |
void |
setTreatNulls(TreatNullsStyle value) |
adjustCircleRect, angleToPos, associatedToAxis, calcCircleBackColor, calcCircleGradient, calcRadius, getAutoPenColor, getCircleBackColor, getCircled, getCircleGradient, getCircleHeight, getCircleRect, getCircleWidth, getCircleXCenter, getCircleYCenter, getCustomXRadius, getCustomYRadius, getRotationAngle, getUniqueCustomRadius, getXRadius, getYRadius, onDisposing, pointToAngle, pointToRadius, prepareLegendCanvas, readResolve, reCalcCircleRect, rotate, setActive, setAutoPenColor, setCircleBackColor, setCircled, setCustomXRadius, setCustomYRadius, setParentProperties, setRotationAngle, setUniqueCustomRadius, 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, calcXPosValue, calcXSizeValue, 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, doBeforeDrawChart, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, 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, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, 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
protected SeriesPointer iPointer
protected int iMaxValuesCount
protected TreatNullsStyle treatnulls
public CustomPolar()
public CustomPolar(IBaseChart c)
public void assign(Series source)
Series
public void setPointerStyleResolver(PointerStyleResolver resolver)
public void removePointerStyleResolver()
public ChartFont getCircleLabelsFont()
public Point getCircleCenter()
public int clicked(int x, int y)
protected double getXValue(int valueIndex)
public double getAngleIncrement()
public ValueList getAngleValues()
public ValueList getRadiusValues()
protected void doAfterDrawValues()
doAfterDrawValues
in class Series
protected void doBeforeDrawValues()
doBeforeDrawValues
in class Circular
protected PointerStyle onGetPointerStyle(int valueIndex, PointerStyle style)
protected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape
in class Series
protected void drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition position)
protected void internalDrawValue(int valueIndex, int x, int y)
public void drawValue(int valueIndex)
protected java.lang.String getCircleLabel(double angle, int index)
public void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public void setChart(IBaseChart c)
TeeBase
public void setColor(Color c)
Series
setColor
in class Series
c
- ColorSeries.getColorEach()
public int calcXPos(int valueIndex)
public int calcYPos(int valueIndex)
public void drawZone(double min, double max, int z)
public void drawRing(double value, int z)
public void setAngleIncrement(double value)
Example:
series1.setAngleIncrement(15);
value
- doublepublic ChartBrush getBrush()
public boolean getCircleLabels()
public void setCircleLabels(boolean value)
value
- booleanpublic ChartFont getFont()
public boolean getCircleLabelsInside()
public void setCircleLabelsInside(boolean value)
Example:
series.setCircleLabelsInside(true);
value
- booleanpublic boolean getCircleLabelsRotated()
public void setCircleLabelsRotated(boolean value)
value
- booleanpublic ChartPen getCirclePen()
public boolean getClockWiseLabels()
public void setClockWiseLabels(boolean value)
Example:
series.setClockWiseLabels(true);
value
- booleanpublic boolean getCloseCircle()
public void setCloseCircle(boolean value)
value
- booleanpublic ChartPen getPen()
public SeriesPointer getPointer()
public double getRadiusIncrement()
public void setRadiusIncrement(double value) throws ChartException
value
- doubleTeeChartException
ChartException
public int getTransparency()
public void setTransparency(int value)
value
- intpublic TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)