Class CustomXYStackedAreaRenderer

java.lang.Object
org.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.XYAreaRenderer2
org.jfree.chart.renderer.xy.StackedXYAreaRenderer2
com.jfreechartextensions.renderers.ExtendedXYStackedAreaRenderer2
com.illumon.iris.db.plot.builders.jfreechart.renderers.CustomXYStackedAreaRenderer
All Implemented Interfaces:
CustomRenderer, CustomXYRenderer, com.jfreechartextensions.renderers.ExtendedXYItemRenderer, Serializable, Cloneable, EventListener, org.jfree.chart.event.AnnotationChangeListener, org.jfree.chart.LegendItemSource, org.jfree.chart.renderer.xy.XYItemRenderer, org.jfree.util.PublicCloneable

public class CustomXYStackedAreaRenderer extends com.jfreechartextensions.renderers.ExtendedXYStackedAreaRenderer2 implements CustomXYRenderer
Renders stacked area plots for continuous data.
See Also:
  • Field Summary

    Fields inherited from class org.jfree.chart.renderer.AbstractRenderer

    DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a CustomXYStackedAreaRenderer instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawItem(Graphics2D g2, org.jfree.chart.renderer.xy.XYItemRendererState state, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo info, org.jfree.chart.plot.XYPlot plot, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.xy.XYDataset dataset, int series, int item, org.jfree.chart.plot.CrosshairState crosshairState, int pass)
     
    org.jfree.data.Range
    findRangeBounds(org.jfree.data.xy.XYDataset dataset)
     
    getItemPaint(int row, int col)
     
    getItemShape(int row, int col)
     
    org.jfree.chart.LegendItem
    getLegendItem(int datasetIndex, int series)
     
    Series visibility as toggled on the plot's legend.
    Series visibility as toggled with a OneClick.
    org.jfree.chart.labels.XYToolTipGenerator
     
    org.jfree.chart.labels.XYToolTipGenerator
    getToolTipGenerator(int series, int item)
     
    boolean
    isSeriesVisible(int series)
     
    boolean
     
    void
    resetMapOfLegendItems(int datasetIndex)
    Our implementations cache legendItem names.
    void
    set(int seriesIndex, CustomXYPlot plot)
    Sets this renderer's CustomXYPlot.
    void
    setLegendLabelColor(Paint legendLabelColor)
     

    Methods inherited from class com.jfreechartextensions.renderers.ExtendedXYStackedAreaRenderer2

    initialise

    Methods inherited from class org.jfree.chart.renderer.xy.StackedXYAreaRenderer2

    clone, equals, getPassCount, getRoundXCoordinates, setRoundXCoordinates

    Methods inherited from class org.jfree.chart.renderer.xy.XYAreaRenderer2

    getLegendArea, getPlotLines, isOutline, setLegendArea, setOutline

    Methods inherited from class org.jfree.chart.renderer.xy.AbstractXYItemRenderer

    addAnnotation, addAnnotation, addEntity, annotationChanged, beginElementGroup, calculateDomainMarkerTextAnchorPoint, drawAnnotations, drawDomainGridLine, drawDomainLine, drawDomainMarker, drawItemLabel, drawRangeLine, drawRangeMarker, fillDomainGridBand, fillRangeGridBand, findDomainBounds, findDomainBounds, findRangeBounds, getAnnotations, getBaseItemLabelGenerator, getBaseToolTipGenerator, getDrawingSupplier, getItemLabelGenerator, getItemLabelGenerator, getLegendItemLabelGenerator, getLegendItems, getLegendItemToolTipGenerator, getLegendItemURLGenerator, getPlot, getSeriesItemLabelGenerator, getToolTipGenerator, getURLGenerator, isPointInRect, lineTo, moveTo, removeAnnotation, removeAnnotations, setBaseItemLabelGenerator, setBaseToolTipGenerator, setItemLabelGenerator, setLegendItemLabelGenerator, setLegendItemToolTipGenerator, setLegendItemURLGenerator, setPlot, setSeriesItemLabelGenerator, setSeriesToolTipGenerator, setToolTipGenerator, setURLGenerator, updateCrosshairValues

    Methods inherited from class org.jfree.chart.renderer.AbstractRenderer

    addChangeListener, beginElementGroup, calculateLabelAnchorPoint, clearSeriesPaints, clearSeriesStrokes, endElementGroup, fireChangeEvent, getAutoPopulateSeriesFillPaint, getAutoPopulateSeriesOutlinePaint, getAutoPopulateSeriesOutlineStroke, getAutoPopulateSeriesPaint, getAutoPopulateSeriesShape, getAutoPopulateSeriesStroke, getBaseCreateEntities, getBaseFillPaint, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseLegendShape, getBaseLegendTextFont, getBaseLegendTextPaint, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getCreateEntities, getDataBoundsIncludesVisibleSeriesOnly, getDefaultEntityRadius, getItemCreateEntity, getItemFillPaint, getItemLabelAnchorOffset, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemStroke, getItemVisible, getLegendShape, getLegendTextFont, getLegendTextPaint, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesCreateEntities, getSeriesFillPaint, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, getTreatLegendShapeAsLine, hashCode, hasListener, isItemLabelVisible, isSeriesItemLabelsVisible, lookupLegendShape, lookupLegendTextFont, lookupLegendTextPaint, lookupSeriesFillPaint, lookupSeriesOutlinePaint, lookupSeriesOutlineStroke, lookupSeriesPaint, lookupSeriesShape, lookupSeriesStroke, notifyListeners, removeChangeListener, setAutoPopulateSeriesFillPaint, setAutoPopulateSeriesOutlinePaint, setAutoPopulateSeriesOutlineStroke, setAutoPopulateSeriesPaint, setAutoPopulateSeriesShape, setAutoPopulateSeriesStroke, setBaseCreateEntities, setBaseCreateEntities, setBaseFillPaint, setBaseFillPaint, setBaseItemLabelFont, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseLegendShape, setBaseLegendTextFont, setBaseLegendTextPaint, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlinePaint, setBaseOutlineStroke, setBaseOutlineStroke, setBasePaint, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseShape, setBaseStroke, setBaseStroke, setCreateEntities, setCreateEntities, setDataBoundsIncludesVisibleSeriesOnly, setDefaultEntityRadius, setFillPaint, setFillPaint, setItemLabelAnchorOffset, setItemLabelFont, setItemLabelFont, setItemLabelPaint, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setLegendShape, setLegendTextFont, setLegendTextPaint, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlinePaint, setOutlineStroke, setOutlineStroke, setPaint, setPaint, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesCreateEntities, setSeriesCreateEntities, setSeriesFillPaint, setSeriesFillPaint, setSeriesItemLabelFont, setSeriesItemLabelFont, setSeriesItemLabelPaint, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesOutlineStroke, setSeriesPaint, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesShape, setSeriesStroke, setSeriesStroke, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setShape, setStroke, setStroke, setTreatLegendShapeAsLine

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.illumon.iris.db.plot.builders.jfreechart.renderers.CustomRenderer

    isSeriesVisibleAux

    Methods inherited from interface com.illumon.iris.db.plot.builders.jfreechart.renderers.CustomXYRenderer

    drawErrorBars, errorBarColor, findXRange, findYRange, triggerRedraw

    Methods inherited from interface com.jfreechartextensions.renderers.ExtendedXYItemRenderer

    drawErrorBars

    Methods inherited from interface org.jfree.chart.LegendItemSource

    getLegendItems

    Methods inherited from interface org.jfree.chart.renderer.xy.XYItemRenderer

    addAnnotation, addAnnotation, addChangeListener, drawAnnotations, drawDomainGridLine, drawDomainMarker, drawRangeLine, drawRangeMarker, fillDomainGridBand, fillRangeGridBand, findDomainBounds, getBaseItemLabelFont, getBaseItemLabelGenerator, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getBaseToolTipGenerator, getItemLabelFont, getItemLabelFont, getItemLabelGenerator, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemStroke, getItemVisible, getLegendItemLabelGenerator, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPassCount, getPlot, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesItemLabelFont, getSeriesItemLabelGenerator, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, getURLGenerator, initialise, isItemLabelVisible, isSeriesItemLabelsVisible, removeAnnotation, removeAnnotations, removeChangeListener, setBaseItemLabelFont, setBaseItemLabelGenerator, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlineStroke, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseStroke, setBaseToolTipGenerator, setItemLabelFont, setItemLabelGenerator, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setLegendItemLabelGenerator, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlineStroke, setPaint, setPlot, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesItemLabelFont, setSeriesItemLabelGenerator, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesStroke, setSeriesToolTipGenerator, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setStroke, setToolTipGenerator, setURLGenerator
  • Constructor Details

    • CustomXYStackedAreaRenderer

      public CustomXYStackedAreaRenderer(AxisFormat xAxisFormat, AxisFormat yAxisFormat)
      Creates a CustomXYStackedAreaRenderer instance.
      Parameters:
      xAxisFormat - format of the x-axis labels
      yAxisFormat - format of the y-axis labels
  • Method Details

    • set

      public void set(int seriesIndex, CustomXYPlot plot)
      Description copied from interface: CustomXYRenderer
      Sets this renderer's CustomXYPlot.
      Specified by:
      set in interface CustomXYRenderer
      Parameters:
      seriesIndex - data set index in plot
      plot - xyplot
    • getLegendSeriesVisibilityMap

      public Map<Integer,Boolean> getLegendSeriesVisibilityMap()
      Description copied from interface: CustomRenderer
      Series visibility as toggled on the plot's legend. Map from series ID to visibility.
      Specified by:
      getLegendSeriesVisibilityMap in interface CustomRenderer
    • getOneClickSeriesVisibilityMap

      public Map<Integer,Boolean> getOneClickSeriesVisibilityMap()
      Description copied from interface: CustomRenderer
      Series visibility as toggled with a OneClick. Map from AxisLevelVisibility ID to visibility.
      Specified by:
      getOneClickSeriesVisibilityMap in interface CustomRenderer
    • setLegendLabelColor

      public void setLegendLabelColor(Paint legendLabelColor)
      Specified by:
      setLegendLabelColor in interface CustomRenderer
    • getToolTipGenerator

      public org.jfree.chart.labels.XYToolTipGenerator getToolTipGenerator(int series, int item)
      Specified by:
      getToolTipGenerator in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      getToolTipGenerator in class org.jfree.chart.renderer.xy.AbstractXYItemRenderer
    • getSeriesToolTipGenerator

      public org.jfree.chart.labels.XYToolTipGenerator getSeriesToolTipGenerator(int series)
      Specified by:
      getSeriesToolTipGenerator in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      getSeriesToolTipGenerator in class org.jfree.chart.renderer.xy.AbstractXYItemRenderer
    • getItemPaint

      public Paint getItemPaint(int row, int col)
      Specified by:
      getItemPaint in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      getItemPaint in class org.jfree.chart.renderer.AbstractRenderer
    • getItemShape

      public Shape getItemShape(int row, int col)
      Specified by:
      getItemShape in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      getItemShape in class org.jfree.chart.renderer.AbstractRenderer
    • drawItem

      public void drawItem(Graphics2D g2, org.jfree.chart.renderer.xy.XYItemRendererState state, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo info, org.jfree.chart.plot.XYPlot plot, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.xy.XYDataset dataset, int series, int item, org.jfree.chart.plot.CrosshairState crosshairState, int pass)
      Specified by:
      drawItem in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      drawItem in class com.jfreechartextensions.renderers.ExtendedXYStackedAreaRenderer2
    • findRangeBounds

      public org.jfree.data.Range findRangeBounds(org.jfree.data.xy.XYDataset dataset)
      Specified by:
      findRangeBounds in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      findRangeBounds in class org.jfree.chart.renderer.xy.StackedXYAreaRenderer2
    • resetMapOfLegendItems

      public void resetMapOfLegendItems(int datasetIndex)
      Description copied from interface: CustomXYRenderer
      Our implementations cache legendItem names. When the series' are changed, this method permits the cache to be cleared, so that the correct "new" items may be cached/used
      Specified by:
      resetMapOfLegendItems in interface CustomXYRenderer
      Parameters:
      datasetIndex - the datasetId/seriesId/axesId which shall have any potential legend-cache cleared
    • getLegendItem

      public org.jfree.chart.LegendItem getLegendItem(int datasetIndex, int series)
      Specified by:
      getLegendItem in interface CustomRenderer
      Specified by:
      getLegendItem in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      getLegendItem in class org.jfree.chart.renderer.xy.XYAreaRenderer2
    • isSeriesVisible

      public boolean isSeriesVisible(int series)
      Specified by:
      isSeriesVisible in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      isSeriesVisible in class org.jfree.chart.renderer.AbstractRenderer
    • isSeriesVisibleInLegend

      public boolean isSeriesVisibleInLegend(int series)
      Specified by:
      isSeriesVisibleInLegend in interface org.jfree.chart.renderer.xy.XYItemRenderer
      Overrides:
      isSeriesVisibleInLegend in class org.jfree.chart.renderer.AbstractRenderer