Class AbstractXYChart

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, RMShapeSelfInit, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
TimeseriesChart, XYChart

public abstract class AbstractXYChart extends ScriptableChart implements RMShapeSelfInit
Created by carl.gould on 7/14/2015.
  • Field Details

    • rpg

      protected boolean rpg
    • rpgParentData

      protected List rpgParentData
    • pens

      protected List<Pen> pens
    • axes

      protected List<ArchivableAxis> axes
    • datasetKey

      protected String datasetKey
    • domainKey

      protected String domainKey
    • axisLabelFont

      protected Font axisLabelFont
    • axisTickLabelFont

      protected Font axisTickLabelFont
    • plotBackground

      protected Color plotBackground
    • noDataMessage

      protected String noDataMessage
    • legend

      protected boolean legend
    • showXAxis

      protected boolean showXAxis
    • xAxisLabel

      protected String xAxisLabel
    • barWidth

      protected double barWidth
    • gapThreshold

      protected double gapThreshold
    • sampleDataCache

      protected final com.google.common.cache.LoadingCache<List<Pen>,org.jfree.data.xy.XYDataset> sampleDataCache
  • Constructor Details

    • AbstractXYChart

      protected AbstractXYChart(String serializationKey)
  • Method Details

    • selfInit

      public void selfInit()
      Specified by:
      selfInit in interface RMShapeSelfInit
    • rpgShape

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

      protected abstract com.google.common.cache.CacheLoader<List<Pen>,org.jfree.data.xy.XYDataset> createSampleDataCache()
    • createDomainAxis

      protected abstract org.jfree.chart.axis.ValueAxis createDomainAxis()
    • 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
    • getPens

      public List<Pen> getPens()
    • setPens

      public void setPens(List<Pen> pens)
    • getAxes

      public List<ArchivableAxis> getAxes()
    • setAxes

      public void setAxes(List<ArchivableAxis> axes)
    • 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)
    • getAxisLabelFont

      public Font getAxisLabelFont()
    • setAxisLabelFont

      public void setAxisLabelFont(Font axisLabelFont)
    • getAxisTickLabelFont

      public Font getAxisTickLabelFont()
    • setAxisTickLabelFont

      public void setAxisTickLabelFont(Font axisTickLabelFont)
    • getBarWidth

      public double getBarWidth()
    • setBarWidth

      public void setBarWidth(double barWidth)
    • getDomainKey

      public String getDomainKey()
    • setDomainKey

      public void setDomainKey(String domainKey)
    • getNoDataMessage

      public String getNoDataMessage()
    • setNoDataMessage

      public void setNoDataMessage(String noDataMessage)
    • getPlotBackground

      public Color getPlotBackground()
    • setPlotBackground

      public void setPlotBackground(Color plotBackground)
    • isLegend

      public boolean isLegend()
    • setLegend

      public void setLegend(boolean legend)
    • isShowXAxis

      public boolean isShowXAxis()
    • setShowXAxis

      public void setShowXAxis(boolean showXAxis)
    • getXAxisLabel

      public String getXAxisLabel()
    • setXAxisLabel

      public void setXAxisLabel(String xAxisLabel)
    • getGapThreshold

      public double getGapThreshold()
    • setGapThreshold

      public void setGapThreshold(double gapThreshold)
    • 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