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-2018 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
Description: List to hold percents of exploding effect, one per each
Pie slice.
|
class |
Pie.PieOtherSlice
Title: PieOtherSlice class
Description: Pie series uses this class in its Pie.OtherSlice.
|
class |
Pie.PieShadow
Title: PieShadow class
Description: Pie series uses this class in its Pie.Shadow.
|
class |
Pie.SliceValueList
Title: SliceValueList class
Description: List to hold percents of height for each Pie slice.
|
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, 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 |
---|
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.
|
boolean |
belongsToOtherSlice(int valueIndex)
Returns true if indexed Slice belongs to the Otherslice.
|
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.
|
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.
|
boolean |
getAutoMarkPosition()
If true, marks will be displayed trying to not overlap one to each
other.
|
int |
getBevelPercent() |
ChartBrush |
getBrush()
Brush fill for PieSeries.
|
boolean |
getColorEach()
Draws points with different preset Colors.
|
int |
getCountLegendItems() |
boolean |
getDark3D()
Darkens side of 3D pie section to add depth.
|
boolean |
getDarkPen()
Darkens pie slice borders.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
EdgeStyle |
getEdgeStyle() |
int |
getExplodeBiggest()
Displaces the biggest slice from centre by value set.
|
Pie.ExplodedSliceList |
getExplodedSlice()
Accesses the properties for exploding any Pie slice.
|
boolean |
getForceCenter()
If true, the pie will be centered even when totalAngle is smaller than 360 degrees.
|
PieMarks |
getMarksPie() |
MultiPies |
getMultiPie()
Gets the MultiPie value.
|
Pie.PieOtherSlice |
getOtherSlice()
Accesses the OtherSlice properties.
|
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%.
|
boolean |
getUsePatterns()
Fills Pie Sectors with different Brush pattern styles.
|
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.
|
void |
setAutoMarkPosition(boolean value)
If true, marks will be displayed trying to not overlap one to each
other.
|
void |
setBevelPercent(int value) |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setColorEach(boolean value)
Draws points with different preset Colors.
|
void |
setDark3D(boolean value)
Darkens side of 3D pie section to add depth.
|
void |
setDarkPen(boolean value)
Darkens pie slice borders.
|
protected void |
setDonutPercent(int value) |
void |
setEdgeStyle(EdgeStyle value) |
void |
setExplodeBiggest(int value)
Displaces the biggest slice from centre by value set.
|
void |
setForceCenter(boolean value)
If true, the pie will be centered even when totalAngle is smaller than 360 degrees.
|
void |
setMarksPie(PieMarks value) |
void |
setMultiPie(MultiPies value)
Sets the MultiPie 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%.
|
void |
setUsePatterns(boolean value)
Fills Pie Sectors with different Brush pattern styles.
|
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, 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, 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, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
public 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)
Series
public ValueList getPieValues()
public void setChart(IBaseChart c)
TeeBase
protected void setDonutPercent(int value)
public boolean getColorEach()
getColorEach
in interface ISeries
getColorEach
in class Series
public void setColorEach(boolean value)
setColorEach
in class Series
value
- 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 MultiPies getMultiPie()
public void setMultiPie(MultiPies value)
value
- MultiPiespublic boolean getForceCenter()
public void setForceCenter(boolean value)
value
- booleanpublic void galleryChanged3D(boolean is3D)
galleryChanged3D
in class Series
protected void swapValueIndex(int a, int b)
Series
swapValueIndex
in class Series
a
- int index of first point to exchange.b
- int index of second point to exchange.protected void addSampleValues(int numValues)
addSampleValues
in class Series
protected Point calcExplodedRadius(int valueIndex)
protected void clearLists()
clearLists
in class Series
public void doBeforeDrawChart()
doBeforeDrawChart
in class Series
protected void doBeforeDrawValues()
doBeforeDrawValues
in class Circular
protected void doAfterDrawValues()
doAfterDrawValues
in class Series
public boolean drawMarksSeries(Series s, boolean ActiveRegion)
drawMarksSeries
in class Series
protected 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 Series
public void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public int legendToValueIndex(int legendIndex)
legendToValueIndex
in interface ISeries
legendToValueIndex
in class Series
protected void prepareLegendCanvas(IGraphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
prepareLegendCanvas
in class Circular
public boolean belongsToOtherSlice(int valueIndex)
valueIndex
- intpublic int calcXPos(int valueIndex)
public int clicked(int x, int y)
Series
public int getCountLegendItems()
getCountLegendItems
in interface ISeries
getCountLegendItems
in class Series
public void createSubGallery(Gallery addSubChart)
createSubGallery
in class Series
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Series
index
- intpublic Pie.ExplodedSliceList getExplodedSlice()
public Pie.SliceValueList SliceHeight()
public java.lang.String getDescription()
getDescription
in class Series