|
||||||||||
| 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
com.steema.teechart.styles.CustomPolar
public class CustomPolar
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-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 |
iMaxValuesCount
|
protected SeriesPointer |
iPointer
|
protected TreatNullsStyle |
treatnulls
|
| Fields inherited from class com.steema.teechart.styles.Circular |
|---|
circleHeight, circleWidth, iAdjustCircleForMarks, iCircleXCenter, iCircleYCenter, iXRadius, iYRadius, PIDEGREE, rCircleRect, 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 | |
|---|---|
CustomPolar()
|
|
CustomPolar(IBaseChart c)
|
|
| Method Summary | |
|---|---|
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(java.awt.Point p,
java.awt.Point tmp,
java.awt.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. |
java.awt.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)
|
| Methods inherited from class com.steema.teechart.TeeBase |
|---|
getChart, invalidate, setBooleanProperty, setColorProperty, 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 |
|---|
protected SeriesPointer iPointer
protected int iMaxValuesCount
protected TreatNullsStyle treatnulls
| Constructor Detail |
|---|
public CustomPolar()
public CustomPolar(IBaseChart c)
| Method Detail |
|---|
public void setPointerStyleResolver(PointerStyleResolver resolver)
public void removePointerStyleResolver()
public ChartFont getCircleLabelsFont()
public java.awt.Point getCircleCenter()
protected boolean clickedSegment(java.awt.Point p,
java.awt.Point tmp,
java.awt.Point old)
public int clicked(int x,
int y)
clicked in interface ISeriesclicked in class Seriesx - inty - int
protected double getXValue(int valueIndex)
public double getAngleIncrement()
public ValueList getAngleValues()
public ValueList getRadiusValues()
protected void doAfterDrawValues()
doAfterDrawValues in class Seriesprotected void doBeforeDrawValues()
doBeforeDrawValues in class Circular
protected PointerStyle onGetPointerStyle(int valueIndex,
PointerStyle style)
protected void draw()
draw in class Series
protected void drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
drawLegendShape in class Series
protected void drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position)
drawMark in class Series
protected void internalDrawValue(int valueIndex,
int x,
int y)
public void drawValue(int valueIndex)
drawValue in interface ISeriesdrawValue in class SeriesvalueIndex - int
protected java.lang.String getCircleLabel(double angle,
int index)
public void prepareForGallery(boolean isEnabled)
prepareForGallery in class Seriespublic void setChart(IBaseChart c)
TeeBase
setChart in interface ISeriessetChart in class Circularc - IBaseChartpublic void setColor(Color c)
Series
setColor in class Seriesc - ColorSeries.getColorEach()public int calcXPos(int valueIndex)
calcXPos in class SeriesvalueIndex - int
public int calcYPos(int valueIndex)
calcYPos in class SeriesvalueIndex - int
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 - double
TeeChartException
ChartExceptionpublic int getTransparency()
public void setTransparency(int value)
value - intpublic TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||