Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

org::jfree::chart::renderer::category::WaterfallBarRenderer Class Reference

Inheritance diagram for org::jfree::chart::renderer::category::WaterfallBarRenderer:

org::jfree::chart::renderer::category::BarRenderer org::jfree::chart::renderer::category::AbstractCategoryItemRenderer org::jfree::chart::renderer::AbstractRenderer org::jfree::chart::renderer::category::CategoryItemRenderer org::jfree::chart::LegendItemSource

List of all members.


Detailed Description

A renderer that handles the drawing of waterfall bar charts, for use with the CategoryPlot class. Some quirks to note:

Definition at line 95 of file WaterfallBarRenderer.java.


Public Member Functions

void addChangeListener (RendererChangeListener listener)
void addChangeListener (RendererChangeListener listener)
Object clone () throws CloneNotSupportedException
void drawBackground (Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)
void drawDomainGridline (Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, double value)
void drawDomainMarker (Graphics2D g2, CategoryPlot plot, CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea)
void drawItem (Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)
void drawOutline (Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)
void drawRangeGridline (Graphics2D g2, CategoryPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)
void drawRangeMarker (Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)
boolean equals (Object obj)
Range findRangeBounds (CategoryDataset dataset)
boolean getAutoPopulateSeriesFillPaint ()
boolean getAutoPopulateSeriesOutlinePaint ()
boolean getAutoPopulateSeriesOutlineStroke ()
boolean getAutoPopulateSeriesPaint ()
boolean getAutoPopulateSeriesShape ()
boolean getAutoPopulateSeriesStroke ()
double getBase ()
boolean getBaseCreateEntities ()
Paint getBaseFillPaint ()
Font getBaseItemLabelFont ()
Font getBaseItemLabelFont ()
CategoryItemLabelGenerator getBaseItemLabelGenerator ()
Paint getBaseItemLabelPaint ()
Paint getBaseItemLabelPaint ()
Boolean getBaseItemLabelsVisible ()
Boolean getBaseItemLabelsVisible ()
CategoryURLGenerator getBaseItemURLGenerator ()
ItemLabelPosition getBaseNegativeItemLabelPosition ()
ItemLabelPosition getBaseNegativeItemLabelPosition ()
Paint getBaseOutlinePaint ()
Paint getBaseOutlinePaint ()
Stroke getBaseOutlineStroke ()
Stroke getBaseOutlineStroke ()
Paint getBasePaint ()
Paint getBasePaint ()
ItemLabelPosition getBasePositiveItemLabelPosition ()
ItemLabelPosition getBasePositiveItemLabelPosition ()
boolean getBaseSeriesVisible ()
boolean getBaseSeriesVisible ()
boolean getBaseSeriesVisibleInLegend ()
boolean getBaseSeriesVisibleInLegend ()
Shape getBaseShape ()
Shape getBaseShape ()
Stroke getBaseStroke ()
Stroke getBaseStroke ()
CategoryToolTipGenerator getBaseToolTipGenerator ()
int getColumnCount ()
Boolean getCreateEntities ()
DrawingSupplier getDrawingSupplier ()
Paint getFirstBarPaint ()
GradientPaintTransformer getGradientPaintTransformer ()
boolean getIncludeBaseInRange ()
boolean getItemCreateEntity (int series, int item)
Paint getItemFillPaint (int row, int column)
double getItemLabelAnchorOffset ()
Font getItemLabelFont ()
Font getItemLabelFont (int row, int column)
Font getItemLabelFont ()
Font getItemLabelFont (int row, int column)
CategoryItemLabelGenerator getItemLabelGenerator (int row, int column)
Paint getItemLabelPaint ()
Paint getItemLabelPaint (int row, int column)
Paint getItemLabelPaint ()
Paint getItemLabelPaint (int row, int column)
double getItemMargin ()
Paint getItemOutlinePaint (int row, int column)
Paint getItemOutlinePaint (int row, int column)
Stroke getItemOutlineStroke (int row, int column)
Stroke getItemOutlineStroke (int row, int column)
Paint getItemPaint (int row, int column)
Paint getItemPaint (int row, int column)
Shape getItemShape (int row, int column)
Shape getItemShape (int row, int column)
Stroke getItemStroke (int row, int column)
Stroke getItemStroke (int row, int column)
CategoryURLGenerator getItemURLGenerator (int row, int column)
boolean getItemVisible (int series, int item)
boolean getItemVisible (int series, int item)
Paint getLastBarPaint ()
LegendItem getLegendItem (int datasetIndex, int series)
CategorySeriesLabelGenerator getLegendItemLabelGenerator ()
LegendItemCollection getLegendItems ()
CategorySeriesLabelGenerator getLegendItemToolTipGenerator ()
CategorySeriesLabelGenerator getLegendItemURLGenerator ()
double getLowerClip ()
double getMaximumBarWidth ()
double getMinimumBarLength ()
Paint getNegativeBarPaint ()
ItemLabelPosition getNegativeItemLabelPosition ()
ItemLabelPosition getNegativeItemLabelPosition (int row, int column)
ItemLabelPosition getNegativeItemLabelPosition ()
ItemLabelPosition getNegativeItemLabelPosition (int row, int column)
ItemLabelPosition getNegativeItemLabelPositionFallback ()
int getPassCount ()
CategoryPlot getPlot ()
Paint getPositiveBarPaint ()
ItemLabelPosition getPositiveItemLabelPosition ()
ItemLabelPosition getPositiveItemLabelPosition (int row, int column)
ItemLabelPosition getPositiveItemLabelPosition ()
ItemLabelPosition getPositiveItemLabelPosition (int row, int column)
ItemLabelPosition getPositiveItemLabelPositionFallback ()
int getRowCount ()
Boolean getSeriesCreateEntities (int series)
Paint getSeriesFillPaint (int series)
Font getSeriesItemLabelFont (int series)
Font getSeriesItemLabelFont (int series)
CategoryItemLabelGenerator getSeriesItemLabelGenerator (int series)
Paint getSeriesItemLabelPaint (int series)
Paint getSeriesItemLabelPaint (int series)
CategoryURLGenerator getSeriesItemURLGenerator (int series)
ItemLabelPosition getSeriesNegativeItemLabelPosition (int series)
ItemLabelPosition getSeriesNegativeItemLabelPosition (int series)
Paint getSeriesOutlinePaint (int series)
Paint getSeriesOutlinePaint (int series)
Stroke getSeriesOutlineStroke (int series)
Stroke getSeriesOutlineStroke (int series)
Paint getSeriesPaint (int series)
Paint getSeriesPaint (int series)
ItemLabelPosition getSeriesPositiveItemLabelPosition (int series)
ItemLabelPosition getSeriesPositiveItemLabelPosition (int series)
Shape getSeriesShape (int series)
Shape getSeriesShape (int series)
Stroke getSeriesStroke (int series)
Stroke getSeriesStroke (int series)
CategoryToolTipGenerator getSeriesToolTipGenerator (int series)
Boolean getSeriesVisible (int series)
Boolean getSeriesVisible ()
Boolean getSeriesVisible (int series)
Boolean getSeriesVisible ()
Boolean getSeriesVisibleInLegend (int series)
Boolean getSeriesVisibleInLegend ()
Boolean getSeriesVisibleInLegend (int series)
Boolean getSeriesVisibleInLegend ()
CategoryToolTipGenerator getToolTipGenerator ()
CategoryToolTipGenerator getToolTipGenerator (int row, int column)
double getUpperClip ()
int hashCode ()
boolean hasListener (EventListener listener)
CategoryItemRendererState initialise (Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)
boolean isDrawBarOutline ()
boolean isItemLabelVisible (int row, int column)
boolean isItemLabelVisible (int row, int column)
boolean isSeriesItemLabelsVisible (int series)
boolean isSeriesItemLabelsVisible (int series)
boolean isSeriesVisible (int series)
boolean isSeriesVisible (int series)
boolean isSeriesVisibleInLegend (int series)
boolean isSeriesVisibleInLegend (int series)
Paint lookupSeriesFillPaint (int series)
Paint lookupSeriesOutlinePaint (int series)
Stroke lookupSeriesOutlineStroke (int series)
Paint lookupSeriesPaint (int series)
Shape lookupSeriesShape (int series)
Stroke lookupSeriesStroke (int series)
void notifyListeners (RendererChangeEvent event)
void removeChangeListener (RendererChangeListener listener)
void removeChangeListener (RendererChangeListener listener)
void setAutoPopulateSeriesFillPaint (boolean auto)
void setAutoPopulateSeriesOutlinePaint (boolean auto)
void setAutoPopulateSeriesOutlineStroke (boolean auto)
void setAutoPopulateSeriesPaint (boolean auto)
void setAutoPopulateSeriesShape (boolean auto)
void setAutoPopulateSeriesStroke (boolean auto)
void setBase (double base)
void setBaseCreateEntities (boolean create, boolean notify)
void setBaseCreateEntities (boolean create)
void setBaseFillPaint (Paint paint, boolean notify)
void setBaseFillPaint (Paint paint)
void setBaseItemLabelFont (Font font)
void setBaseItemLabelFont (Font font, boolean notify)
void setBaseItemLabelFont (Font font)
void setBaseItemLabelGenerator (CategoryItemLabelGenerator generator)
void setBaseItemLabelPaint (Paint paint)
void setBaseItemLabelPaint (Paint paint, boolean notify)
void setBaseItemLabelPaint (Paint paint)
void setBaseItemLabelsVisible (Boolean visible, boolean notify)
void setBaseItemLabelsVisible (Boolean visible)
void setBaseItemLabelsVisible (boolean visible)
void setBaseItemLabelsVisible (Boolean visible, boolean notify)
void setBaseItemLabelsVisible (Boolean visible)
void setBaseItemLabelsVisible (boolean visible)
void setBaseItemURLGenerator (CategoryURLGenerator generator)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position)
void setBaseOutlinePaint (Paint paint)
void setBaseOutlinePaint (Paint paint, boolean notify)
void setBaseOutlinePaint (Paint paint)
void setBaseOutlineStroke (Stroke stroke)
void setBaseOutlineStroke (Stroke stroke, boolean notify)
void setBaseOutlineStroke (Stroke stroke)
void setBasePaint (Paint paint)
void setBasePaint (Paint paint, boolean notify)
void setBasePaint (Paint paint)
void setBasePositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBasePositiveItemLabelPosition (ItemLabelPosition position)
void setBasePositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBasePositiveItemLabelPosition (ItemLabelPosition position)
void setBaseSeriesVisible (boolean visible, boolean notify)
void setBaseSeriesVisible (boolean visible)
void setBaseSeriesVisible (boolean visible, boolean notify)
void setBaseSeriesVisible (boolean visible)
void setBaseSeriesVisibleInLegend (boolean visible, boolean notify)
void setBaseSeriesVisibleInLegend (boolean visible)
void setBaseSeriesVisibleInLegend (boolean visible, boolean notify)
void setBaseSeriesVisibleInLegend (boolean visible)
void setBaseShape (Shape shape)
void setBaseShape (Shape shape, boolean notify)
void setBaseShape (Shape shape)
void setBaseStroke (Stroke stroke)
void setBaseStroke (Stroke stroke, boolean notify)
void setBaseStroke (Stroke stroke)
void setBaseToolTipGenerator (CategoryToolTipGenerator generator)
void setCreateEntities (Boolean create, boolean notify)
void setCreateEntities (Boolean create)
void setDrawBarOutline (boolean draw)
void setFillPaint (Paint paint, boolean notify)
void setFillPaint (Paint paint)
void setFirstBarPaint (Paint paint)
void setGradientPaintTransformer (GradientPaintTransformer transformer)
void setIncludeBaseInRange (boolean include)
void setItemLabelAnchorOffset (double offset)
void setItemLabelFont (Font font)
void setItemLabelFont (Font font, boolean notify)
void setItemLabelFont (Font font)
void setItemLabelGenerator (CategoryItemLabelGenerator generator)
void setItemLabelPaint (Paint paint)
void setItemLabelPaint (Paint paint, boolean notify)
void setItemLabelPaint (Paint paint)
void setItemLabelsVisible (Boolean visible, boolean notify)
void setItemLabelsVisible (Boolean visible)
void setItemLabelsVisible (boolean visible)
void setItemLabelsVisible (Boolean visible, boolean notify)
void setItemLabelsVisible (Boolean visible)
void setItemLabelsVisible (boolean visible)
void setItemMargin (double percent)
void setItemURLGenerator (CategoryURLGenerator generator)
void setLastBarPaint (Paint paint)
void setLegendItemLabelGenerator (CategorySeriesLabelGenerator generator)
void setLegendItemToolTipGenerator (CategorySeriesLabelGenerator generator)
void setLegendItemURLGenerator (CategorySeriesLabelGenerator generator)
void setMaximumBarWidth (double percent)
void setMinimumBarLength (double min)
void setNegativeBarPaint (Paint paint)
void setNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setNegativeItemLabelPosition (ItemLabelPosition position)
void setNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setNegativeItemLabelPosition (ItemLabelPosition position)
void setNegativeItemLabelPositionFallback (ItemLabelPosition position)
void setOutlinePaint (Paint paint)
void setOutlinePaint (Paint paint, boolean notify)
void setOutlinePaint (Paint paint)
void setOutlineStroke (Stroke stroke)
void setOutlineStroke (Stroke stroke, boolean notify)
void setOutlineStroke (Stroke stroke)
void setPaint (Paint paint)
void setPaint (Paint paint, boolean notify)
void setPaint (Paint paint)
void setPlot (CategoryPlot plot)
void setPositiveBarPaint (Paint paint)
void setPositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setPositiveItemLabelPosition (ItemLabelPosition position)
void setPositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setPositiveItemLabelPosition (ItemLabelPosition position)
void setPositiveItemLabelPositionFallback (ItemLabelPosition position)
void setSeriesCreateEntities (int series, Boolean create, boolean notify)
void setSeriesCreateEntities (int series, Boolean create)
void setSeriesFillPaint (int series, Paint paint, boolean notify)
void setSeriesFillPaint (int series, Paint paint)
void setSeriesItemLabelFont (int series, Font font)
void setSeriesItemLabelFont (int series, Font font, boolean notify)
void setSeriesItemLabelFont (int series, Font font)
void setSeriesItemLabelGenerator (int series, CategoryItemLabelGenerator generator)
void setSeriesItemLabelPaint (int series, Paint paint)
void setSeriesItemLabelPaint (int series, Paint paint, boolean notify)
void setSeriesItemLabelPaint (int series, Paint paint)
void setSeriesItemLabelsVisible (int series, Boolean visible, boolean notify)
void setSeriesItemLabelsVisible (int series, Boolean visible)
void setSeriesItemLabelsVisible (int series, boolean visible)
void setSeriesItemLabelsVisible (int series, Boolean visible, boolean notify)
void setSeriesItemLabelsVisible (int series, Boolean visible)
void setSeriesItemLabelsVisible (int series, boolean visible)
void setSeriesItemURLGenerator (int series, CategoryURLGenerator generator)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesOutlinePaint (int series, Paint paint)
void setSeriesOutlinePaint (int series, Paint paint, boolean notify)
void setSeriesOutlinePaint (int series, Paint paint)
void setSeriesOutlineStroke (int series, Stroke stroke)
void setSeriesOutlineStroke (int series, Stroke stroke, boolean notify)
void setSeriesOutlineStroke (int series, Stroke stroke)
void setSeriesPaint (int series, Paint paint)
void setSeriesPaint (int series, Paint paint, boolean notify)
void setSeriesPaint (int series, Paint paint)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesShape (int series, Shape shape)
void setSeriesShape (int series, Shape shape, boolean notify)
void setSeriesShape (int series, Shape shape)
void setSeriesStroke (int series, Stroke stroke)
void setSeriesStroke (int series, Stroke stroke, boolean notify)
void setSeriesStroke (int series, Stroke stroke)
void setSeriesToolTipGenerator (int series, CategoryToolTipGenerator generator)
void setSeriesVisible (int series, Boolean visible, boolean notify)
void setSeriesVisible (int series, Boolean visible)
void setSeriesVisible (Boolean visible, boolean notify)
void setSeriesVisible (Boolean visible)
void setSeriesVisible (int series, Boolean visible, boolean notify)
void setSeriesVisible (int series, Boolean visible)
void setSeriesVisible (Boolean visible, boolean notify)
void setSeriesVisible (Boolean visible)
void setSeriesVisibleInLegend (int series, Boolean visible, boolean notify)
void setSeriesVisibleInLegend (int series, Boolean visible)
void setSeriesVisibleInLegend (Boolean visible, boolean notify)
void setSeriesVisibleInLegend (Boolean visible)
void setSeriesVisibleInLegend (int series, Boolean visible, boolean notify)
void setSeriesVisibleInLegend (int series, Boolean visible)
void setSeriesVisibleInLegend (Boolean visible, boolean notify)
void setSeriesVisibleInLegend (Boolean visible)
void setShape (Shape shape)
void setShape (Shape shape, boolean notify)
void setShape (Shape shape)
void setStroke (Stroke stroke)
void setStroke (Stroke stroke, boolean notify)
void setStroke (Stroke stroke)
void setToolTipGenerator (CategoryToolTipGenerator generator)
 WaterfallBarRenderer (Paint firstBarPaint, Paint positiveBarPaint, Paint negativeBarPaint, Paint lastBarPaint)
 WaterfallBarRenderer ()

Static Public Attributes

static final double BAR_OUTLINE_WIDTH_THRESHOLD = 3.0
static final double DEFAULT_ITEM_MARGIN = 0.20
static final Paint DEFAULT_OUTLINE_PAINT = Color.gray
static final Stroke DEFAULT_OUTLINE_STROKE = new BasicStroke(1.0f)
static final Paint DEFAULT_PAINT = Color.blue
static final Shape DEFAULT_SHAPE = new Rectangle2D.Double(-3.0, -3.0, 6.0, 6.0)
static final Stroke DEFAULT_STROKE = new BasicStroke(1.0f)
static final Font DEFAULT_VALUE_LABEL_FONT = new Font("SansSerif", Font.PLAIN, 10)
static final Paint DEFAULT_VALUE_LABEL_PAINT = Color.black
static final Double ZERO = new Double(0.0)

Protected Member Functions

void addItemEntity (EntityCollection entities, CategoryDataset dataset, int row, int column, Shape hotspot)
double[] calculateBarL0L1 (double value)
double calculateBarW0 (CategoryPlot plot, PlotOrientation orientation, Rectangle2D dataArea, CategoryAxis domainAxis, CategoryItemRendererState state, int row, int column)
void calculateBarWidth (CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state)
Point2D calculateDomainMarkerTextAnchorPoint (Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)
Point2D calculateLabelAnchorPoint (ItemLabelAnchor anchor, double x, double y, PlotOrientation orientation)
Point2D calculateRangeMarkerTextAnchorPoint (Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)
double calculateSeriesWidth (double space, CategoryAxis axis, int categories, int series)
CategoryItemRendererState createState (PlotRenderingInfo info)
void drawItemLabel (Graphics2D g2, PlotOrientation orientation, CategoryDataset dataset, int row, int column, double x, double y, boolean negative)
void drawItemLabel (Graphics2D g2, CategoryDataset data, int row, int column, CategoryPlot plot, CategoryItemLabelGenerator generator, Rectangle2D bar, boolean negative)
void fireChangeEvent ()
CategoryAxis getDomainAxis (CategoryPlot plot, int index)
ValueAxis getRangeAxis (CategoryPlot plot, int index)

Private Member Functions

void readObject (ObjectInputStream stream) throws IOException, ClassNotFoundException
void writeObject (ObjectOutputStream stream) throws IOException

Private Attributes

transient Paint firstBarPaint
transient Paint lastBarPaint
transient Paint negativeBarPaint
transient Paint positiveBarPaint

Static Private Attributes

static final long serialVersionUID = -2482910643727230911L

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index