|
||||||||||
| 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.Pie
public class Pie
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-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Nested Class Summary | |
|---|---|
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. |
| Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
|---|
Series.MarkTextResolver |
| Field Summary | |
|---|---|
PieAngle[] |
angles
|
static int |
BelongsToOther
|
protected int |
iDonutPercent
|
protected int |
iniX
|
protected int |
iniY
|
| 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 | |
|---|---|
Pie()
|
|
Pie(IBaseChart c)
|
|
| Method Summary | |
|---|---|
protected void |
addSampleValues(int numValues)
|
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)
|
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. |
PieMarks |
getMarksPie()
|
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 |
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%. |
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. |
| Methods inherited from class com.steema.teechart.TeeBase |
|---|
getChart, invalidate, setBooleanProperty, 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 |
|---|
public static final int BelongsToOther
protected int iDonutPercent
protected transient int iniX
protected transient int iniY
public transient PieAngle[] angles
| Constructor Detail |
|---|
public Pie()
public Pie(IBaseChart c)
| Method Detail |
|---|
public ValueList getPieValues()
public void setChart(IBaseChart c)
TeeBase
setChart in interface ISeriessetChart in class Circularc - IBaseChartprotected 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()
getBrush in class Seriespublic 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 Series
protected void swapValueIndex(int a,
int b)
Series
swapValueIndex 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 Seriesprotected void draw()
draw in class Series
protected void drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position)
drawMark in class Seriespublic PieMarks getMarksPie()
public void setMarksPie(PieMarks value)
public void drawOutlineSlice(int valueIndex)
public void drawPie(int valueIndex,
boolean last)
public void drawValue(int valueIndex)
drawValue in interface ISeriesdrawValue in class SeriesvalueIndex - intprotected int numSampleValues()
numSampleValues in class Seriespublic void prepareForGallery(boolean isEnabled)
prepareForGallery in class Seriespublic int legendToValueIndex(int legendIndex)
legendToValueIndex in interface ISerieslegendToValueIndex in class Series
protected void prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush)
prepareLegendCanvas in class Circularpublic boolean belongsToOtherSlice(int valueIndex)
valueIndex - int
public int calcXPos(int valueIndex)
calcXPos in class SeriesvalueIndex - int
public int clicked(int x,
int y)
Series
clicked in interface ISeriesclicked in class Seriesx - inty - int
public int getCountLegendItems()
getCountLegendItems in interface ISeriesgetCountLegendItems in class Seriespublic void createSubGallery(Gallery addSubChart)
createSubGallery in class Seriespublic void setSubGallery(int index)
Series
setSubGallery in interface ISeriessetSubGallery in class Seriesindex - intpublic Pie.ExplodedSliceList getExplodedSlice()
public Pie.SliceValueList SliceHeight()
public java.lang.String getDescription()
getDescription in class Series
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||