public class Pie extends Circular
Title: Pie class
Description: Pie Series.
Example:
pieSeries = new com.steema.teechart.styles.Pie(myChart.getChart());
pieSeries.getMarks().setVisible(true);
pieSeries.getShadow().setVisible(true);
pieSeries.getShadow().setHorizSize(20);
pieSeries.getShadow().setVertSize(20);
pieSeries.fillSampleValues(8);
myChart.getHeader().setVisible(true);
myChart.setText("Pie");
myChart.getAspect().setElevation(315);
myChart.getAspect().setOrthogonal(false);
myChart.getAspect().setPerspective(0);
myChart.getAspect().setRotation(360);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Modifier and Type | Class and Description |
|---|---|
protected class |
Pie.CompareSlice |
class |
Pie.ExplodedSliceList
Title: ExplodedSliceList class
|
class |
Pie.PieOtherSlice
Title: PieOtherSlice class
|
class |
Pie.PieShadow
Title: PieShadow class
|
class |
Pie.SliceValueList
Title: SliceValueList class
|
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
PieAngle[] |
angles |
static int |
BelongsToOther |
protected int |
iDonutPercent |
protected int |
iniX |
protected int |
iniY |
circleHeight, circleWidth, iAdjustCircleForMarks, iCircleXCenter, iCircleYCenter, iXRadius, iYRadius, PIDEGREE, rCircleRect, rotDegreeAUTODEPTH, 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, yMandatorychart, InternalUse| Constructor and Description |
|---|
Pie() |
Pie(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSampleValues(int numValues) |
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 |
belongsToOtherSlice(int valueIndex)
Returns true if indexed Slice belongs to the Otherslice.
The "other" slice is controlled by the OtherSlice method, and is used to join several small slices into a single bigger one. |
protected Point |
calcExplodedRadius(int valueIndex) |
int |
calcXPos(int valueIndex)
Returns the pixel Screen Horizontal coordinate of the ValueIndex Series value.
|
protected void |
clearLists() |
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. |
void |
createSubGallery(Gallery addSubChart) |
protected void |
doAfterDrawValues() |
void |
doBeforeDrawChart() |
protected void |
doBeforeDrawValues() |
protected void |
draw() |
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position) |
boolean |
drawMarksSeries(Series s,
boolean ActiveRegion) |
void |
drawOutlineSlice(int valueIndex) |
void |
drawPie(int valueIndex,
boolean last) |
void |
drawValue(int valueIndex)
Called internally.
|
void |
galleryChanged3D(boolean is3D) |
int |
getAngleSize()
Total angle in degrees (0 to 360) for all slices.
Default value: 360 |
boolean |
getAutoMarkPosition()
If true, marks will be displayed trying to not overlap one to each
other.
Default value: true |
int |
getBevelPercent() |
ChartBrush |
getBrush()
Brush fill for PieSeries.
|
boolean |
getColorEach()
Draws points with different preset Colors.
Default value: true |
int |
getCountLegendItems() |
boolean |
getDark3D()
Darkens side of 3D pie section to add depth.
When true, it fills the Pie 3D effect screen areas with darker colors than their corresponding Pie sectors. |
boolean |
getDarkPen()
Darkens pie slice borders.
Default value: false |
java.lang.String |
getDescription()
Gets descriptive text.
|
EdgeStyle |
getEdgeStyle() |
int |
getExplodeBiggest()
Displaces the biggest slice from centre by value set.
Default value: 0 |
Pie.ExplodedSliceList |
getExplodedSlice()
Accesses the properties for exploding any Pie slice.
|
PieMarks |
getMarksPie() |
Pie.PieOtherSlice |
getOtherSlice()
Accesses the OtherSlice properties.
For example, you can use it to define the grouping size for the 'Other' slice of the Pie. Grouping may be expressed as a percentage or value. |
ChartPen |
getPen()
Line pen for Pie.
|
ValueList |
getPieValues()
Stores the Pie slice values.
|
Pie.PieShadow |
getShadow()
Defines the offset shadow of the PieSeries.
|
int |
getTransparency()
The Transparency level from 0 to 100%.
Transparency is a value between 0 and 100 which sets the transparency percentage with respect to foreground versus background. Default value: 0 |
boolean |
getUsePatterns()
Fills Pie Sectors with different Brush pattern styles.
Default value: false |
int |
legendToValueIndex(int legendIndex) |
protected int |
numSampleValues() |
void |
prepareForGallery(boolean isEnabled) |
protected void |
prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush) |
void |
setAngleSize(int value)
Total angle in degrees (0 to 360) for all slices.
Default value: 360 |
void |
setAutoMarkPosition(boolean value)
If true, marks will be displayed trying to not overlap one to each
other.
Default value: true |
void |
setBevelPercent(int value) |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setColorEach(boolean value)
Draws points with different preset Colors.
Default value: true |
void |
setDark3D(boolean value)
Darkens side of 3D pie section to add depth.
Default value: true |
void |
setDarkPen(boolean value)
Darkens pie slice borders.
Default value: false |
protected void |
setDonutPercent(int value) |
void |
setEdgeStyle(EdgeStyle value) |
void |
setExplodeBiggest(int value)
Displaces the biggest slice from centre by value set.
Default value: 0 |
void |
setMarksPie(PieMarks value) |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery
dialog.
|
void |
setTransparency(int value)
Sets Transparency level from 0 to 100%.
Default value: 0 |
void |
setUsePatterns(boolean value)
Fills Pie Sectors with different Brush pattern styles.
Default value: false |
Pie.SliceValueList |
SliceHeight()
Accesses the properties for setting any Pie slice height.
|
protected void |
swapValueIndex(int a,
int b)
Exchanges one point with another.
|
adjustCircleRect, angleToPos, associatedToAxis, calcCircleBackColor, calcCircleGradient, calcRadius, getAutoPenColor, getCircleBackColor, getCircled, getCircleGradient, getCircleHeight, getCircleRect, getCircleWidth, getCircleXCenter, getCircleYCenter, getCustomXRadius, getCustomYRadius, getRotationAngle, getUniqueCustomRadius, getXRadius, getYRadius, onDisposing, pointToAngle, pointToRadius, readResolve, reCalcCircleRect, rotate, setActive, setAutoPenColor, setCircleBackColor, setCircled, setCustomXRadius, setCustomYRadius, setParentProperties, setRotationAngle, setUniqueCustomRadius, shouldSerializeCircleBackColoradd, 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, addSeriesMouseListener, addSeriesPaintListener, addValues, assignDispose, assignValues, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawLegendShape, drawMarks, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorMember, getColors, getCount, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, 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, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setColor, 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, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidatepublic static final int BelongsToOther
protected int iDonutPercent
protected transient int iniX
protected transient int iniY
public transient PieAngle[] angles
public Pie()
public Pie(IBaseChart c)
public void assign(Series source)
Seriespublic ValueList getPieValues()
public void setChart(IBaseChart c)
TeeBaseprotected void setDonutPercent(int value)
public boolean getColorEach()
getColorEach in interface ISeriesgetColorEach in class Seriespublic void setColorEach(boolean value)
setColorEach in class Seriesvalue - booleanpublic int getAngleSize()
public void setAngleSize(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 boolean getDark3D()
public void setDark3D(boolean value)
value - booleanpublic int getTransparency()
public void setTransparency(int value)
value - intpublic EdgeStyle getEdgeStyle()
public void setEdgeStyle(EdgeStyle value)
public int getBevelPercent()
public void setBevelPercent(int value)
public boolean getDarkPen()
public void setDarkPen(boolean value)
value - booleanpublic int getExplodeBiggest()
public void setExplodeBiggest(int value)
value - intpublic Pie.PieOtherSlice getOtherSlice()
Example:
pieSeries.getOtherSlice().getLegend().setVisible(isSelected);
Pie.PieOtherSlice.getStyle()public ChartPen getPen()
public ChartBrush getBrush()
public Pie.PieShadow getShadow()
Example:
pieSeries = new com.steema.teechart.styles.Pie(myChart.getChart()); pieSeries.getMarks().setVisible(true); pieSeries.getShadow().setVisible(true); pieSeries.getShadow().setWidth(30); pieSeries.getShadow().setHeight(50); pieSeries.getShadow().setColor(Color.SILVER); pieSeries.fillSampleValues(9);
public boolean getUsePatterns()
public void setUsePatterns(boolean value)
value - booleanpublic boolean getAutoMarkPosition()
public void setAutoMarkPosition(boolean value)
value - booleanpublic void galleryChanged3D(boolean is3D)
galleryChanged3D in class Seriesprotected void swapValueIndex(int a,
int b)
SeriesswapValueIndex in class Seriesa - int index of first point to exchange.b - int index of second point to exchange.protected void addSampleValues(int numValues)
addSampleValues in class Seriesprotected Point calcExplodedRadius(int valueIndex)
protected void clearLists()
clearLists in class Seriespublic void doBeforeDrawChart()
doBeforeDrawChart in class Seriesprotected void doBeforeDrawValues()
doBeforeDrawValues in class Circularprotected void doAfterDrawValues()
doAfterDrawValues in class Seriespublic boolean drawMarksSeries(Series s, boolean ActiveRegion)
drawMarksSeries in class Seriesprotected void drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position)
public PieMarks getMarksPie()
public void setMarksPie(PieMarks value)
public void drawOutlineSlice(int valueIndex)
public void drawPie(int valueIndex,
boolean last)
public void drawValue(int valueIndex)
protected int numSampleValues()
numSampleValues in class Seriespublic void prepareForGallery(boolean isEnabled)
prepareForGallery in class Seriespublic int legendToValueIndex(int legendIndex)
legendToValueIndex in interface ISerieslegendToValueIndex in class Seriesprotected void prepareLegendCanvas(IGraphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
prepareLegendCanvas in class Circularpublic boolean belongsToOtherSlice(int valueIndex)
valueIndex - intpublic int calcXPos(int valueIndex)
public int clicked(int x,
int y)
Seriespublic int getCountLegendItems()
getCountLegendItems in interface ISeriesgetCountLegendItems in class Seriespublic void createSubGallery(Gallery addSubChart)
createSubGallery in class Seriespublic void setSubGallery(int index)
SeriessetSubGallery in interface ISeriessetSubGallery in class Seriesindex - intpublic Pie.ExplodedSliceList getExplodedSlice()
public Pie.SliceValueList SliceHeight()
public java.lang.String getDescription()
getDescription in class Series