OFC Charts 3.1


com.oxymel.ofc.charts
Class ExplodedPieChart

java.lang.Object
  |
  +--com.oxymel.ofc.charts.Chart
        |
        +--com.oxymel.ofc.charts.ExplodedPieChart

public class ExplodedPieChart
extends Chart


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 com.oxymel.ofc.charts.Chart
drawAnimateSVG, drawAnimateSVG, drawAnimateSVG, drawAnimateSVG, drawAnimateSVG, drawJPEG, drawJPEG, drawPNG, drawPNG, drawSVG, drawSVG, drawSVG, drawSVG, drawSVG, drawSVG, get3dEffectValue, getAllSeriesOrderByDisplayNumber, getBufferedImage, set3dEffectValue, setBackgroundColorVisible, setColorPalette, setGraphicBackgroundColor, setImageBackgroundColor, setLegendAlignMode, setLegendDisplayMode, setLegendFontSize, setNbPixelFreeArroundImageForPresentation, setRotateValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_LABEL

public static final int TAG_LABEL
The value to set if the tags to write are labels. Example :
  • pieChart.setTypeOfTag( ExplodedPieChart.TAG_LABEL );

  • TAG_VALUE

    public static final int TAG_VALUE
    The value to set if the tags to write are values (default). Example :
  • pieChart.setTypeOfTag( ExplodedPieChart.TAG_VALUE );
  • Constructor Detail

    ExplodedPieChart

    public ExplodedPieChart(int chartWidth,
                            int chartHeight,
                            ValueSeriesContainer valueSeriesContainer)
    Constructor of the exploded pie chart.
    Parameters:
    chartWidth - Width of pie chart
    chartHeight - Height of pie chart
    valueSeriesContainer - ValueSeriesContainer - All series of couple category-value

    ExplodedPieChart

    public ExplodedPieChart(int chartWidth,
                            int chartHeight,
                            ValueSeriesContainer valueSeriesContainer,
                            double margin)
    Constructor of the exploded pie chart.
    Parameters:
    chartWidth - int
    chartHeight - int
    valueSeriesContainer - ValueSeriesContainer - All series of couple category-value
    margin - double (default value = 0.02 corresponding to 20% of the image size)
    Method Detail

    setMargin

    public void setMargin(int margin)
    Change margin value.
    Parameters:
    margin - new margin value

    setTagOnPieWidth

    public 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.
    Parameters:
    longTag - int

    set3D

    public void set3D(boolean is3D)
    If is3D is true, the pie chart is displayed on 3D.
    Parameters:
    is3D - boolean

    set3Dprofondeur

    public void set3Dprofondeur(int prof)
    Sets the value of the 3D effect.
    Parameters:
    profondeur - int

    setCircular

    public void setCircular(boolean isCircular)
    If isCircular is true, the pie chart is displayed as circular Pie.
    Parameters:
    isCircular - boolean

    setVerticalEllipse

    public void setVerticalEllipse(boolean verticalEllipse)
    If verticalEllipse is true, the pie chart is displayed as a vertical Ellipse.
    Parameters:
    verticalEllipse - boolean

    setPieWithTags

    public void setPieWithTags(boolean isPieWithTags)
    If isPieWithTags is true, each arc of the pie chart has a legend tag.
    Parameters:
    isPieWithTags - boolean

    setTypeOfTag

    public void setTypeOfTag(int type)
    Sets the type of legend on the tags.
    Possibles value are :
    Parameters:
    type - int

    setIsHalfPie

    public void setIsHalfPie(boolean isHalfPie)
    If isHalfPie is true, the pie chart is displayed as an half pie (0-180°).
    Parameters:
    isHalfPie - boolean

    setTagLabelToCut

    public void setTagLabelToCut(boolean toCut)
    Allows to cut the long labels on the graphic's sections if toCut is true. If toCut is false, the long labels will be replaced by the value.
    Parameters:
    toCut - boolean

    setMinPercentToDisplayTag

    public void setMinPercentToDisplayTag(int minPercentToDisplayTag)
    Allows to fix the minimum percent value to display tag (by default minPercentToDisplayTag = 2).
    Parameters:
    minPercentToDisplayTag - int

    setCategoryValueSeriesContainer

    public void setCategoryValueSeriesContainer(ValueSeriesContainer valueSeriesContainer)
    Changes the data used to draw chart.
    Parameters:
    categoryValueSeriesContainer - ValueSeriesContainer - All series of couple category-value

    OFC Charts 3.1


    Copyright © 2005 Oxymel SA All Rights Reserved.