|
OFC Charts 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oxymel.ofc.charts.Chart | +--com.oxymel.ofc.charts.ExplodedPieChart
Field Summary | |
static int |
TAG_LABEL
The value to set if the tags to write are labels. |
static int |
TAG_VALUE
The value to set if the tags to write are values (default). |
Fields inherited from class com.oxymel.ofc.charts.Chart |
ROTATE_180_DEGREE, ROTATE_270_DEGREE, ROTATE_90_DEGREE, ROTATE_NONE |
Constructor Summary | |
ExplodedPieChart(int chartWidth,
int chartHeight,
ValueSeriesContainer valueSeriesContainer)
Constructor of the exploded pie chart. |
|
ExplodedPieChart(int chartWidth,
int chartHeight,
ValueSeriesContainer valueSeriesContainer,
double margin)
Constructor of the exploded pie chart. |
Method Summary | |
void |
set3D(boolean is3D)
If is3D is true, the pie chart is displayed on 3D. |
void |
set3Dprofondeur(int prof)
Sets the value of the 3D effect. |
void |
setCategoryValueSeriesContainer(ValueSeriesContainer valueSeriesContainer)
Changes the data used to draw chart. |
void |
setCircular(boolean isCircular)
If isCircular is true, the pie chart is displayed as circular Pie. |
void |
setIsHalfPie(boolean isHalfPie)
If isHalfPie is true, the pie chart is displayed as an half pie (0-180°). |
void |
setMargin(int margin)
Change margin value. |
void |
setMinPercentToDisplayTag(int minPercentToDisplayTag)
Allows to fix the minimum percent value to display tag (by default minPercentToDisplayTag = 2). |
void |
setPieWithTags(boolean isPieWithTags)
If isPieWithTags is true, each arc of the pie chart has a legend tag. |
void |
setTagLabelToCut(boolean toCut)
Allows to cut the long labels on the graphic's sections if toCut is true. |
void |
setTagOnPieWidth(int longTag)
To set the external graphic legend margin (default value = 0). Allows to extend the line between the graphic and the legend. |
void |
setTypeOfTag(int type)
Sets the type of legend on the tags. Possibles value are : ExplodedPieChart.TAG_VALUES (default) ExplodedPieChart.TAG_LABEL |
void |
setVerticalEllipse(boolean verticalEllipse)
If verticalEllipse is true, the pie chart is displayed as a vertical Ellipse. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TAG_LABEL
public static final int TAG_VALUE
Constructor Detail |
public ExplodedPieChart(int chartWidth, int chartHeight, ValueSeriesContainer valueSeriesContainer)
chartWidth
- Width of pie chartchartHeight
- Height of pie chartvalueSeriesContainer
- ValueSeriesContainer - All series of couple category-valuepublic ExplodedPieChart(int chartWidth, int chartHeight, ValueSeriesContainer valueSeriesContainer, double margin)
chartWidth
- intchartHeight
- intvalueSeriesContainer
- ValueSeriesContainer - All series of couple category-valuemargin
- double (default value = 0.02 corresponding to 20% of the image size)Method Detail |
public void setMargin(int margin)
margin
- new margin valuepublic void setTagOnPieWidth(int longTag)
longTag
- intpublic void set3D(boolean is3D)
is3D
- booleanpublic void set3Dprofondeur(int prof)
profondeur
- intpublic void setCircular(boolean isCircular)
isCircular
- booleanpublic void setVerticalEllipse(boolean verticalEllipse)
verticalEllipse
- booleanpublic void setPieWithTags(boolean isPieWithTags)
isPieWithTags
- booleanpublic void setTypeOfTag(int type)
type
- intpublic void setIsHalfPie(boolean isHalfPie)
isHalfPie
- booleanpublic void setTagLabelToCut(boolean toCut)
toCut
- booleanpublic void setMinPercentToDisplayTag(int minPercentToDisplayTag)
minPercentToDisplayTag
- intpublic void setCategoryValueSeriesContainer(ValueSeriesContainer valueSeriesContainer)
categoryValueSeriesContainer
- ValueSeriesContainer - All series of couple category-value
|
OFC Charts 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |