Class ChartPiePlot

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.EventListener, org.jfree.chart.event.AxisChangeListener, org.jfree.chart.event.MarkerChangeListener, org.jfree.chart.LegendItemSource, org.jfree.data.general.DatasetChangeListener, org.jfree.util.PublicCloneable

    public class ChartPiePlot
    extends org.jfree.chart.plot.PiePlot
    Subclass that implements the use of the paint maps for providing the predefined shared colors for all tooltabs by overriding serveral methods.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.jfree.chart.plot.DrawingSupplier drawingSupplier
      JFreeChart Sandard DrawingSupplier (Not used)
      protected PaintMaps paintMaps
      Supplies stored paint maps for the distributions (e.g. performativ)
      protected int paintMode
      The type of distribution currently used
      protected java.util.Map sectionPaints
      Stored paint maps for sections.
      • Fields inherited from class org.jfree.chart.plot.PiePlot

        DEFAULT_INTERIOR_GAP, DEFAULT_LABEL_BACKGROUND_PAINT, DEFAULT_LABEL_FONT, DEFAULT_LABEL_OUTLINE_PAINT, DEFAULT_LABEL_OUTLINE_STROKE, DEFAULT_LABEL_PAINT, DEFAULT_LABEL_SHADOW_PAINT, DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW, DEFAULT_START_ANGLE, localizationResources, MAX_INTERIOR_GAP
      • Fields inherited from class org.jfree.chart.plot.Plot

        DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
    • Constructor Summary

      Constructors 
      Constructor Description
      ChartPiePlot​(org.jfree.data.general.PieDataset dataset, PaintMaps paintMaps, int paintMode)
      Create a plot with given dataset, paint maps and paint mode.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPaintMode()  
      protected java.awt.Paint lookupSectionPaint​(java.lang.Comparable key, boolean autoPopulate)
      Returns the paint for the specified key.
      void setPaintMode​(int paintMode)  
      • Methods inherited from class org.jfree.chart.plot.PiePlot

        clearSectionOutlinePaints, clearSectionOutlineStrokes, clearSectionPaints, clone, draw, drawItem, drawLabels, drawLeftLabel, drawLeftLabels, drawPie, drawRightLabel, drawRightLabels, drawSimpleLabels, equals, getArcBounds, getAutoPopulateSectionOutlinePaint, getAutoPopulateSectionOutlineStroke, getAutoPopulateSectionPaint, getBaseSectionOutlinePaint, getBaseSectionOutlineStroke, getBaseSectionPaint, getDataset, getDirection, getExplodePercent, getExplodePercent, getIgnoreNullValues, getIgnoreZeroValues, getInteriorGap, getLabelBackgroundPaint, getLabelDistributor, getLabelFont, getLabelGap, getLabelGenerator, getLabelLinkDepth, getLabelLinkMargin, getLabelLinkPaint, getLabelLinkStroke, getLabelLinkStyle, getLabelLinksVisible, getLabelOutlinePaint, getLabelOutlineStroke, getLabelPadding, getLabelPaint, getLabelShadowPaint, getLegendItems, getLegendItemShape, getLegendLabelGenerator, getLegendLabelToolTipGenerator, getLegendLabelURLGenerator, getMaximumExplodePercent, getMaximumLabelWidth, getMinimumArcAngleToDraw, getPieIndex, getPlotType, getSectionKey, getSectionOutlinePaint, getSectionOutlinePaint, getSectionOutlinePaint, getSectionOutlineStroke, getSectionOutlineStroke, getSectionOutlineStroke, getSectionOutlinesVisible, getSectionPaint, getSectionPaint, getSectionPaint, getShadowPaint, getShadowXOffset, getShadowYOffset, getSimpleLabelOffset, getSimpleLabels, getStartAngle, getToolTipGenerator, getURLGenerator, initialise, isCircular, lookupSectionOutlinePaint, lookupSectionOutlinePaint, lookupSectionOutlineStroke, lookupSectionOutlineStroke, lookupSectionPaint, setAutoPopulateSectionOutlinePaint, setAutoPopulateSectionOutlineStroke, setAutoPopulateSectionPaint, setBaseSectionOutlinePaint, setBaseSectionOutlineStroke, setBaseSectionPaint, setCircular, setCircular, setDataset, setDirection, setExplodePercent, setExplodePercent, setIgnoreNullValues, setIgnoreZeroValues, setInteriorGap, setLabelBackgroundPaint, setLabelDistributor, setLabelFont, setLabelGap, setLabelGenerator, setLabelLinkMargin, setLabelLinkPaint, setLabelLinkStroke, setLabelLinkStyle, setLabelLinksVisible, setLabelOutlinePaint, setLabelOutlineStroke, setLabelPadding, setLabelPaint, setLabelShadowPaint, setLegendItemShape, setLegendLabelGenerator, setLegendLabelToolTipGenerator, setLegendLabelURLGenerator, setMaximumLabelWidth, setMinimumArcAngleToDraw, setPieIndex, setSectionOutlinePaint, setSectionOutlinePaint, setSectionOutlinePaint, setSectionOutlineStroke, setSectionOutlineStroke, setSectionOutlineStroke, setSectionOutlinesVisible, setSectionPaint, setSectionPaint, setSectionPaint, setShadowPaint, setShadowXOffset, setShadowYOffset, setSimpleLabelOffset, setSimpleLabels, setStartAngle, setToolTipGenerator, setURLGenerator
      • Methods inherited from class org.jfree.chart.plot.Plot

        addChangeListener, axisChanged, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • drawingSupplier

        protected org.jfree.chart.plot.DrawingSupplier drawingSupplier
        JFreeChart Sandard DrawingSupplier (Not used)
      • paintMaps

        protected PaintMaps paintMaps
        Supplies stored paint maps for the distributions (e.g. performativ)
      • paintMode

        protected int paintMode
        The type of distribution currently used
      • sectionPaints

        protected java.util.Map sectionPaints
        Stored paint maps for sections.
    • Constructor Detail

      • ChartPiePlot

        public ChartPiePlot​(org.jfree.data.general.PieDataset dataset,
                            PaintMaps paintMaps,
                            int paintMode)
        Create a plot with given dataset, paint maps and paint mode.
        Parameters:
        dataset - The datset.
        paintMaps - The paint maps.
        paintMode - The paint mode to use.
    • Method Detail

      • lookupSectionPaint

        protected java.awt.Paint lookupSectionPaint​(java.lang.Comparable key,
                                                    boolean autoPopulate)
        Returns the paint for the specified key.
        Overrides:
        lookupSectionPaint in class org.jfree.chart.plot.PiePlot
        Parameters:
        key - The key.
        autoPopulate - Not used.
        Returns:
        The paint.
      • getPaintMode

        public int getPaintMode()
        Returns:
        The paint mode.
      • setPaintMode

        public void setPaintMode​(int paintMode)
        Parameters:
        paintMode - The paint mode to set