public interface IPiePropertySet
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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%.
|
int getRotationAngle()
void setRotationAngle(int angle)
Associated QbChart property: PIE_ROTATEANGLE
angle
- The anticlockwise rotation angle in degrees.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.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.boolean isExplodeUsingSectorGap()
void setExplodeUsingSectorGap(boolean b)
b
- set to true if slice should be exploded using sector gap, false otherwise.float getExplodeRadialPos()
void setExplodeRadialPos(float x)
Associated QbChart property: PIE_SLICEDISTANCE
x
- The explode distance in terms of the radius (0 to 2).ILabel gethLabel(int sliceId)
sliceId
- The id of the slice (position in category column).ILabel
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).ILabel
float getLabelRadialPos()
getExplodeRadialPos()
void setLabelRadialPos(float pos)
pos
- The distance from origin at which labels should be drawn (0 to 2).setExplodeRadialPos(float)
ILabel gethValueLabel(int sliceId)
sliceId
- The id of the slice (position in category column).ILabel
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).ILabel
ILabel gethPercentLabel(int sliceId)
sliceId
- The id of the slice (position in category column).ILabel
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).ILabel
ILabel gethCategoryLabel(int pieId)
pieId
- The id of the pie (position in category column).ILabel
int getSectorCount()
void setSectorCount(int numSectors)
Associated QbChart property: PIE_SECTORS
numSectors
- The sector count.boolean isPercentVisibleInLegend()
void setPercentVisibleInLegend(boolean b)
Associated QbChart property: PIE_PERCENTLEGEND
b
- The boolean state for percentages in the legend.boolean isValueVisibleInLegend()
void setValueVisibleInLegend(boolean b)
Associated QbChart property: PIE_VALUELEGEND
b
- The boolean state for values in the legend.boolean isRadialBorderDrawnForZero()
void setRadialBorderDrawnForZero(boolean b)
b
- The boolean state for radial borders, true by default.boolean isZeroLabelsVisible()
void setZeroLabelsVisible(boolean b)
b
- The boolean state for visible zero labels, true by default.char getSepSymbol()
void setSepSymbol(char c)
c
- the new symbol to be used.java.awt.Color getBorderColor()
void setBorderColor(java.awt.Color color)
boolean isExtendLineDrawn()
void setExtendLineDrawn(boolean drawn)
boolean isPieLabelAtTheSide()
void setPieLabelAtTheSide(boolean atTheSide)
void setPiePerRow(int nPie)
int getPiePerRow()
void setDrawLinearly(boolean b)
boolean isDrawLinearly()
void setBestFit(boolean b)
boolean isBestFit(boolean b)
void setGapRatioBetweenPies(double ratio)
double getGapRatioBetweenPies()
void setOthersThresholdPercentage(double threshold)
double getOthersThresholdPercentage()
void setDisplayNameForOthers(java.lang.String name)
java.lang.String getDisplayNameForOthers()
double getColorThresholdForPie()
void setColorThresholdForPie(double i)
java.awt.Color[] getColorArrayForPieThreshold()
void setColorArrayForPieThreshold(java.awt.Color[] colors)