All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class PieChart extends ScriptableChart
This shape is used as the pie chart component for the reporting module. It renders using a JFreeChart pie plot.
  • Field Details

  • Constructor Details

    • PieChart

      public PieChart()
  • Method Details

    • rpgShape

      protected RMShape rpgShape(ReportOwner owner, RMShape aParent)
      Description copied from class: RMShape
      Generate report with report owner.
      Overrides:
      rpgShape in class RMShape
    • render

      protected void render(Graphics2D g, int width, int height)
      Description copied from class: AbstractJ2DShape
      This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.
      Specified by:
      render in class AbstractJ2DShape
    • getColors

      public Color[] getColors()
    • setColors

      public void setColors(Color[] colors)
    • getDatasetKey

      public String getDatasetKey()
      Description copied from class: RMShape
      Returns the dataset key associated with this shape.
      Overrides:
      getDatasetKey in class RMShape
    • setDatasetKey

      public void setDatasetKey(String key)
    • getLabelKey

      public String getLabelKey()
    • setLabelKey

      public void setLabelKey(String labelKey)
    • getValueKey

      public String getValueKey()
    • setValueKey

      public void setValueKey(String valueKey)
    • getSort

      public int getSort()
    • setSort

      public void setSort(int sort)
      Set to @NonKeyMappable because key mapping isn't working.
    • getStyle

      public int getStyle()
    • setStyle

      public void setStyle(int style)
    • isLegend

      public boolean isLegend()
    • setLegend

      public void setLegend(boolean legend)
    • getLabelStyle

      public int getLabelStyle()
    • setLabelStyle

      public void setLabelStyle(int labelStyle)
    • getLabelFormat

      public String getLabelFormat()
    • setLabelFormat

      public void setLabelFormat(String labelFormat)
    • getLabelFont

      public Font getLabelFont()
    • setLabelFont

      public void setLabelFont(Font labelFont)
    • getLegendFont

      public Font getLegendFont()
    • setLegendFont

      public void setLegendFont(Font legendFont)
    • getSectionOutline

      public Color getSectionOutline()
    • setSectionOutline

      public void setSectionOutline(Color outline)
    • isChartShadowVisible

      public boolean isChartShadowVisible()
    • setChartShadowVisible

      public void setChartShadowVisible(boolean chartShadowVisible)
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class ScriptableChart
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement e)
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class ScriptableChart