Class CategoryChart

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

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

    • ARCHIVE_NAME

      public static final String ARCHIVE_NAME
      See Also:
    • CATEGORY_LABEL_POSITIONS

      public static final org.jfree.chart.axis.CategoryLabelPositions[] CATEGORY_LABEL_POSITIONS
    • RENDER_BAR

      public static final int RENDER_BAR
      See Also:
    • RENDER_STACKED

      public static final int RENDER_STACKED
      See Also:
    • RENDER_LAYERED

      public static final int RENDER_LAYERED
      See Also:
  • Constructor Details

    • CategoryChart

      public CategoryChart()
  • 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)
    • getExtractOrder

      public int getExtractOrder()
    • setExtractOrder

      public void setExtractOrder(int extractOrder)
    • getStyle

      public int getStyle()
    • setStyle

      public void setStyle(int style)
    • getCategoryLabelPosition

      public int getCategoryLabelPosition()
    • setCategoryLabelPosition

      public void setCategoryLabelPosition(int categoryLabelPosition)
    • isRender3d

      public boolean isRender3d()
    • setRender3d

      public void setRender3d(boolean render3d)
    • isPareto

      public boolean isPareto()
    • setPareto

      public void setPareto(boolean pareto)
    • getParetoLabel

      public String getParetoLabel()
    • setParetoLabel

      public void setParetoLabel(String paretoLabel)
    • getParetoColor

      public Color getParetoColor()
    • setParetoColor

      public void setParetoColor(Color paretoColor)
    • isPareto80Pct

      public boolean isPareto80Pct()
    • setPareto80Pct

      public void setPareto80Pct(boolean pareto80Pct)
    • getAxisLabel

      public String getAxisLabel()
    • setAxisLabel

      public void setAxisLabel(String axisLabel)
    • getAxisFont

      public Font getAxisFont()
    • setAxisFont

      public void setAxisFont(Font axisFont)
    • getAxisFormat

      public String getAxisFormat()
    • setAxisFormat

      public void setAxisFormat(String axisFormat)
    • isAutoRange

      public boolean isAutoRange()
    • setAutoRange

      public void setAutoRange(boolean autoRange)
    • getLowerBound

      public double getLowerBound()
    • setLowerBound

      public void setLowerBound(double lowerBound)
    • getUpperBound

      public double getUpperBound()
    • setUpperBound

      public void setUpperBound(double upperBound)
    • isLegend

      public boolean isLegend()
    • setLegend

      public void setLegend(boolean legend)
    • getLegendFont

      public Font getLegendFont()
    • setLegendFont

      public void setLegendFont(Font legendFont)
    • getItemMargin

      public double getItemMargin()
    • setItemMargin

      public void setItemMargin(double itemMargin)
    • getCategoryMargin

      public double getCategoryMargin()
    • setCategoryMargin

      public void setCategoryMargin(double categoryMargin)
    • isVertical

      public boolean isVertical()
    • setVertical

      public void setVertical(boolean vertical)
    • isLabels

      public boolean isLabels()
    • setLabels

      public void setLabels(boolean labels)
    • getLabelFont

      public Font getLabelFont()
    • setLabelFont

      public void setLabelFont(Font labelFont)
    • getLabelColor

      public Color getLabelColor()
    • setLabelColor

      public void setLabelColor(Color labelColor)
    • getLabelOffset

      public float getLabelOffset()
    • setLabelOffset

      public void setLabelOffset(float labelOffset)
    • 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