Package jadex.tools.comanalyzer.chart
Class ChartMultiplePiePlot
- java.lang.Object
- 
- org.jfree.chart.plot.Plot
- 
- org.jfree.chart.plot.MultiplePiePlot
- 
- jadex.tools.comanalyzer.chart.ChartMultiplePiePlot
 
 
 
- 
- 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 ChartMultiplePiePlot extends org.jfree.chart.plot.MultiplePiePlotSubclass that implements the use of the paint maps for providing the predefined shared colors for all tooltabs by overriding serveral methods. In addition the use of label generators was introduced, cause the superclass dont support that facility.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.jfree.chart.plot.DrawingSupplierdrawingSupplierJFreeChart Sandard DrawingSupplier (Not used)protected PaintMapspaintMapsSupplies stored paint maps for the other distributions (e.g.protected intpaintModeThe type of distribution currently usedprotected java.util.MapsectionPaintsStored paintMaps for sections.
 - 
Constructor SummaryConstructors Constructor Description ChartMultiplePiePlot(org.jfree.data.category.CategoryDataset dataset, PaintMaps paintMaps)Creates a new plot with a given dataset and paint maps.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.awt.geom.Point2D anchor, org.jfree.chart.plot.PlotState parentState, org.jfree.chart.plot.PlotRenderingInfo info)Draws the plot on a Java 2D graphics device (such as the screen or a printer).org.jfree.chart.labels.CategoryItemLabelGeneratorgetBaseItemLabelGenerator()org.jfree.chart.urls.CategoryURLGeneratorgetBaseItemURLGenerator()org.jfree.chart.labels.CategoryToolTipGeneratorgetBaseToolTipGenerator()org.jfree.chart.labels.CategoryItemLabelGeneratorgetLegendItemLabelGenerator()org.jfree.chart.LegendItemCollectiongetLegendItems()Returns a collection of legend items for the pie chart.intgetPaintMode()org.jfree.chart.plot.PiePlotgetPiePlot()protected java.awt.PaintlookupSectionPaint(java.lang.Comparable key)Returns the paint for the specified key from the paint maps.voidsetBaseItemLabelGenerator(org.jfree.chart.labels.CategoryItemLabelGenerator baseItemLabelGenerator)voidsetBaseItemURLGenerator(org.jfree.chart.urls.CategoryURLGenerator baseItemURLGenerator)voidsetBaseToolTipGenerator(org.jfree.chart.labels.CategoryToolTipGenerator baseToolTipGenerator)voidsetLegendItemLabelGenerator(org.jfree.chart.labels.CategoryItemLabelGenerator legendItemLabelGenerator)voidsetPaintMode(int paintMode)- 
Methods inherited from class org.jfree.chart.plot.MultiplePiePlotclone, equals, getAggregatedItemsKey, getAggregatedItemsPaint, getDataExtractOrder, getDataset, getLegendItemShape, getLimit, getPieChart, getPlotType, setAggregatedItemsKey, setAggregatedItemsPaint, setDataExtractOrder, setDataset, setLegendItemShape, setLimit, setPieChart
 - 
Methods inherited from class org.jfree.chart.plot.PlotaddChangeListener, 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
 
- 
 
- 
- 
- 
Field Detail- 
drawingSupplierprotected org.jfree.chart.plot.DrawingSupplier drawingSupplier JFreeChart Sandard DrawingSupplier (Not used)
 - 
paintMapsprotected PaintMaps paintMaps Supplies stored paint maps for the other distributions (e.g. performativ)
 - 
paintModeprotected int paintMode The type of distribution currently used
 - 
sectionPaintsprotected java.util.Map sectionPaints Stored paintMaps for sections.
 
- 
 - 
Constructor Detail- 
ChartMultiplePiePlotpublic ChartMultiplePiePlot(org.jfree.data.category.CategoryDataset dataset, PaintMaps paintMaps)Creates a new plot with a given dataset and paint maps.- Parameters:
- dataset- The dataset.
- paintMaps- The paint maps..
 
 
- 
 - 
Method Detail- 
drawpublic void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.awt.geom.Point2D anchor, org.jfree.chart.plot.PlotState parentState, org.jfree.chart.plot.PlotRenderingInfo info)Draws the plot on a Java 2D graphics device (such as the screen or a printer).- Overrides:
- drawin class- org.jfree.chart.plot.MultiplePiePlot
- Parameters:
- g2- the graphics device.
- area- the area within which the plot should be drawn.
- anchor- the anchor point (- nullpermitted).
- parentState- the state from the parent plot, if there is one.
- info- collects info about the drawing.
 
 - 
getLegendItemspublic org.jfree.chart.LegendItemCollection getLegendItems() Returns a collection of legend items for the pie chart. The text for the labels is generated by the provided label generators- Specified by:
- getLegendItemsin interface- org.jfree.chart.LegendItemSource
- Overrides:
- getLegendItemsin class- org.jfree.chart.plot.MultiplePiePlot
- Returns:
- The legend items.
 
 - 
lookupSectionPaintprotected java.awt.Paint lookupSectionPaint(java.lang.Comparable key) Returns the paint for the specified key from the paint maps.- Parameters:
- key- The key.
- Returns:
- The paint.
 
 - 
getPiePlotpublic org.jfree.chart.plot.PiePlot getPiePlot() - Returns:
- The pieplot from the piechart.
 
 - 
getPaintModepublic int getPaintMode() - Returns:
- The paint mode.
 
 - 
setPaintModepublic void setPaintMode(int paintMode) - Parameters:
- paintMode- The paint mode to set.
 
 - 
getBaseItemLabelGeneratorpublic org.jfree.chart.labels.CategoryItemLabelGenerator getBaseItemLabelGenerator() - Returns:
- The BaseItemLabelGenerator.
 
 - 
setBaseItemLabelGeneratorpublic void setBaseItemLabelGenerator(org.jfree.chart.labels.CategoryItemLabelGenerator baseItemLabelGenerator) - Parameters:
- baseItemLabelGenerator- The BaseItemLabelGenerator to set.
 
 - 
getBaseItemURLGeneratorpublic org.jfree.chart.urls.CategoryURLGenerator getBaseItemURLGenerator() - Returns:
- The BaseItemURLGenerator.
 
 - 
setBaseItemURLGeneratorpublic void setBaseItemURLGenerator(org.jfree.chart.urls.CategoryURLGenerator baseItemURLGenerator) - Parameters:
- baseItemURLGenerator- The BaseItemURLGenerator to set.
 
 - 
getBaseToolTipGeneratorpublic org.jfree.chart.labels.CategoryToolTipGenerator getBaseToolTipGenerator() - Returns:
- The BaseToolTipGenerator.
 
 - 
setBaseToolTipGeneratorpublic void setBaseToolTipGenerator(org.jfree.chart.labels.CategoryToolTipGenerator baseToolTipGenerator) - Parameters:
- baseToolTipGenerator- The BaseToolTipGenerator to set.
 
 - 
getLegendItemLabelGeneratorpublic org.jfree.chart.labels.CategoryItemLabelGenerator getLegendItemLabelGenerator() - Returns:
- The LegendItemLabelGenerator.
 
 - 
setLegendItemLabelGeneratorpublic void setLegendItemLabelGenerator(org.jfree.chart.labels.CategoryItemLabelGenerator legendItemLabelGenerator) - Parameters:
- legendItemLabelGenerator- The LegendItemLabelGenerator to set.
 
 
- 
 
-