|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is used to modify properties associated with a pie chart. A handle to an object that implements this interface can be obtained by calling the gethPieProperties method defined in QbChart.
| Method Summary | |
java.awt.Color |
getBorderColor()
Returns the color that is used for pie chart's outside & slice borders. |
java.awt.Color[] |
getColorArrayForPieThreshold()
|
double |
getColorThresholdForPie()
|
java.lang.String |
getDisplayNameForOthers()
get display name for "Others" |
float |
getExplodeRadialPos()
Returns the pie slice explode distance from the origin. |
double |
getGapRatioBetweenPies()
Returns the gap ratio between pies Default is 0.5 |
ILabel |
gethCategoryLabel(int pieId)
Used to get a handle to ILabel, which is used to set properties associated with the category label for pie. |
ILabel |
gethLabel(int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the label for a pie slice. |
ILabel |
gethLabel(int pieId,
int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the label for a pie slice. |
ILabel |
gethPercentLabel(int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the percent label for a pie slice. |
ILabel |
gethPercentLabel(int pieId,
int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the percent label for a pie slice. |
ILabel |
gethValueLabel(int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the value labels for a pie slice. |
ILabel |
gethValueLabel(int pieId,
int sliceId)
Used to get a handle to ILabel, which is used to set properties associated with the value labels for a pie slice. |
float |
getLabelRadialPos()
Returns the pie slice label's distance from the origin, in terms of the pie radius. |
double |
getOthersThresholdPercentage()
Get "others" % threshold it groups all the sectors which below threshold percent together |
int |
getPiePerRow()
Returns number of pies are drawn in one row Default is 1 |
int |
getRepeatArcCount()
Returns the number of draw arc repetitions. |
int |
getRotationAngle()
Gets the rotation angle of the pie chart in degrees. |
int |
getSectorCount()
Returns the total number of sectors drawn in the 3D chart. |
char |
getSepSymbol()
Returns the char that is used to separate the category & percentage value strings in the legend. |
boolean |
isBestFit(boolean b)
Returns whether pies are drawn in best fit format Default is true |
boolean |
isDrawLinearly()
Retruns whether pies are drawn linearly Default is false |
boolean |
isExploded(int sliceId)
Returns whether or not the particular pie-slice is exploded or not. |
boolean |
isExplodeUsingSectorGap()
Returns whether or not the particular pie-slice is exploded using sector gap or not. |
boolean |
isExtendLineDrawn()
Returns whether connecting line is drawn between individual pie slice & its own label. |
boolean |
isPercentVisibleInLegend()
Returns whether or not pie slice percentages are visible in the chart legend. |
boolean |
isPieLabelAtTheSide()
Returns whether align pie labels at the side Default is false |
boolean |
isRadialBorderDrawnForZero()
Returns whether or not pie slice radial borders are visible for slices that occupy either 0%, or 100%. |
boolean |
isValueVisibleInLegend()
Returns whether or not pie slice values are visible in the chart legend. |
boolean |
isZeroLabelsVisible()
Returns whether or not pie slice labels are visible for slices that occupy 0%. |
void |
setBestFit(boolean b)
Specifies whether pies are drawn in best fit format Default is true |
void |
setBorderColor(java.awt.Color color)
Specifies the color that is used for pie chart's outside & slice borders. |
void |
setColorArrayForPieThreshold(java.awt.Color[] colors)
|
void |
setColorThresholdForPie(double i)
|
void |
setDisplayNameForOthers(java.lang.String name)
set display name for "Others" |
void |
setDrawLinearly(boolean b)
Specifies whether pies are drawn linearly Default is false |
void |
setExploded(int sliceId,
boolean b)
Enables/Disables the explosion of the particular slice. |
void |
setExplodeRadialPos(float x)
Sets the pie slice explode distance from the origin. |
void |
setExplodeUsingSectorGap(boolean b)
Enables/Disables the explosion of the particular slice using sector gap. |
void |
setExtendLineDrawn(boolean drawn)
Specifies whether connecting line is drawn between individual pie slice & its own label. |
void |
setGapRatioBetweenPies(double ratio)
Specifies the gap ratio between pies Default is 0.5 |
void |
setLabelRadialPos(float pos)
Sets the pie label distance from the origin, in terms of the pie radius. |
void |
setOthersThresholdPercentage(double threshold)
Set "Others" % threshold it groups all the sectors which below threshold percent together |
void |
setPercentVisibleInLegend(boolean b)
Sets whether or not to display pie slice percentages in the chart legend. |
void |
setPieLabelAtTheSide(boolean atTheSide)
Specifies whether align pie labels at the side Default is false |
void |
setPiePerRow(int nPie)
Specifies number of pies are drawn in one row Default is 1 |
void |
setRadialBorderDrawnForZero(boolean b)
Specifies whether or not pie slice radial borders are visible for slices that occupy either 0%, or 100%. |
void |
setRepeatArcCount(int numRep)
Sets the number of repetitions of drawing the arc. |
void |
setRotationAngle(int angle)
Sets the pie rotation angle in degrees. |
void |
setSectorCount(int numSectors)
Sets the sector count for a 3D pie chart. |
void |
setSepSymbol(char c)
Specifies the char to be used to separate the category & percentage value strings in the legend. |
void |
setValueVisibleInLegend(boolean b)
Sets whether or not to display pie slice values in the chart legend. |
void |
setZeroLabelsVisible(boolean b)
Specifies whether or not pie slice labels are visible for slices that occupy 0%. |
| Method Detail |
public int getRotationAngle()
public void setRotationAngle(int angle)
Associated QbChart property: PIE_ROTATEANGLE
angle - The anticlockwise rotation angle in degrees.public boolean isExploded(int sliceId)
sliceId - The id(row number) of the slice being checked. The
id represents the position of the slice in the category column
array.
public void setExploded(int sliceId,
boolean b)
Associated QbChart property: PIE_SLICE
sliceId - The id of the slice being exploded/imploded.b - set to true if slice should be exploded, false otherwise.public boolean isExplodeUsingSectorGap()
public void setExplodeUsingSectorGap(boolean b)
b - set to true if slice should be exploded using sector gap, false otherwise.public float getExplodeRadialPos()
public void setExplodeRadialPos(float x)
Associated QbChart property: PIE_SLICEDISTANCE
x - The explode distance in terms of the radius (0 to 2).public ILabel gethLabel(int sliceId)
sliceId - The id of the slice (position in category column).ILabel
public ILabel gethLabel(int pieId,
int sliceId)
pieId - The id of the pie (position in category column).sliceId - The id of the slice (position in series column).ILabelpublic float getLabelRadialPos()
getExplodeRadialPos()public void setLabelRadialPos(float pos)
pos - The distance from origin at which labels should be drawn
(0 to 2).setExplodeRadialPos(float)public ILabel gethValueLabel(int sliceId)
sliceId - The id of the slice (position in category column).ILabel
public ILabel gethValueLabel(int pieId,
int sliceId)
pieId - The id of the pie (position in category column).sliceId - The id of the slice (position in series column).ILabelpublic ILabel gethPercentLabel(int sliceId)
sliceId - The id of the slice (position in category column).ILabel
public ILabel gethPercentLabel(int pieId,
int sliceId)
pieId - The id of the pie (position in category column).sliceId - The id of the slice (position in series column).ILabelpublic ILabel gethCategoryLabel(int pieId)
pieId - The id of the pie (position in category column).ILabelpublic int getSectorCount()
public void setSectorCount(int numSectors)
Associated QbChart property: PIE_SECTORS
numSectors - The sector count.public boolean isPercentVisibleInLegend()
public void setPercentVisibleInLegend(boolean b)
Associated QbChart property: PIE_PERCENTLEGEND
b - The boolean state for percentages in the legend.public boolean isValueVisibleInLegend()
public void setValueVisibleInLegend(boolean b)
Associated QbChart property: PIE_VALUELEGEND
b - The boolean state for values in the legend.public boolean isRadialBorderDrawnForZero()
public void setRadialBorderDrawnForZero(boolean b)
b - The boolean state for radial borders, true by default.public int getRepeatArcCount()
public void setRepeatArcCount(int numRep)
numRep - The repetitions count.public boolean isZeroLabelsVisible()
public void setZeroLabelsVisible(boolean b)
b - The boolean state for visible zero labels, true by default.public char getSepSymbol()
public void setSepSymbol(char c)
c - the new symbol to be used.public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color color)
public boolean isExtendLineDrawn()
public void setExtendLineDrawn(boolean drawn)
public boolean isPieLabelAtTheSide()
public void setPieLabelAtTheSide(boolean atTheSide)
public void setPiePerRow(int nPie)
public int getPiePerRow()
public void setDrawLinearly(boolean b)
public boolean isDrawLinearly()
public void setBestFit(boolean b)
public boolean isBestFit(boolean b)
public void setGapRatioBetweenPies(double ratio)
public double getGapRatioBetweenPies()
public void setOthersThresholdPercentage(double threshold)
public double getOthersThresholdPercentage()
public void setDisplayNameForOthers(java.lang.String name)
public java.lang.String getDisplayNameForOthers()
public double getColorThresholdForPie()
public void setColorThresholdForPie(double i)
public java.awt.Color[] getColorArrayForPieThreshold()
public void setColorArrayForPieThreshold(java.awt.Color[] colors)
|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||