Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » renderer » category » [javadoc | source]
org.jfree.chart.renderer.category
public class: WaterfallBarRenderer [javadoc | source]
java.lang.Object
   org.jfree.chart.renderer.AbstractRenderer
      org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
         org.jfree.chart.renderer.category.BarRenderer
            org.jfree.chart.renderer.category.WaterfallBarRenderer

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, CategoryItemRenderer

A renderer that handles the drawing of waterfall bar charts, for use with the CategoryPlot class. Some quirks to note:
Fields inherited from org.jfree.chart.renderer.category.BarRenderer:
DEFAULT_ITEM_MARGIN,  BAR_OUTLINE_WIDTH_THRESHOLD
Fields inherited from org.jfree.chart.renderer.AbstractRenderer:
ZERO,  DEFAULT_PAINT,  DEFAULT_OUTLINE_PAINT,  DEFAULT_STROKE,  DEFAULT_OUTLINE_STROKE,  DEFAULT_SHAPE,  DEFAULT_VALUE_LABEL_FONT,  DEFAULT_VALUE_LABEL_PAINT
Constructor:
 public WaterfallBarRenderer() 
 public WaterfallBarRenderer(Paint firstBarPaint,
    Paint positiveBarPaint,
    Paint negativeBarPaint,
    Paint lastBarPaint) 
    Constructs a new waterfall renderer.
    Parameters:
    firstBarPaint - the color of the first bar (null not permitted).
    positiveBarPaint - the color for bars with positive values (null not permitted).
    negativeBarPaint - the color for bars with negative values (null not permitted).
    lastBarPaint - the color of the last bar (null not permitted).
Method from org.jfree.chart.renderer.category.WaterfallBarRenderer Summary:
drawItem,   equals,   findRangeBounds,   getFirstBarPaint,   getLastBarPaint,   getNegativeBarPaint,   getPositiveBarPaint,   setFirstBarPaint,   setLastBarPaint,   setNegativeBarPaint,   setPositiveBarPaint
Methods from org.jfree.chart.renderer.category.BarRenderer:
calculateBarL0L1,   calculateBarW0,   calculateBarWidth,   calculateSeriesWidth,   drawItem,   drawItemLabel,   equals,   findRangeBounds,   getBase,   getGradientPaintTransformer,   getIncludeBaseInRange,   getItemMargin,   getLegendItem,   getLowerClip,   getMaximumBarWidth,   getMinimumBarLength,   getNegativeItemLabelPositionFallback,   getPositiveItemLabelPositionFallback,   getUpperClip,   initialise,   isDrawBarOutline,   setBase,   setDrawBarOutline,   setGradientPaintTransformer,   setIncludeBaseInRange,   setItemMargin,   setMaximumBarWidth,   setMinimumBarLength,   setNegativeItemLabelPositionFallback,   setPositiveItemLabelPositionFallback
Methods from org.jfree.chart.renderer.category.AbstractCategoryItemRenderer:
addItemEntity,   calculateDomainMarkerTextAnchorPoint,   calculateRangeMarkerTextAnchorPoint,   clone,   createState,   drawBackground,   drawDomainGridline,   drawDomainMarker,   drawItemLabel,   drawOutline,   drawRangeGridline,   drawRangeMarker,   equals,   findRangeBounds,   getBaseItemLabelGenerator,   getBaseItemURLGenerator,   getBaseToolTipGenerator,   getColumnCount,   getDomainAxis,   getDrawingSupplier,   getItemLabelGenerator,   getItemURLGenerator,   getLegendItem,   getLegendItemLabelGenerator,   getLegendItemToolTipGenerator,   getLegendItemURLGenerator,   getLegendItems,   getPassCount,   getPlot,   getRangeAxis,   getRowCount,   getSeriesItemLabelGenerator,   getSeriesItemURLGenerator,   getSeriesToolTipGenerator,   getToolTipGenerator,   getToolTipGenerator,   hashCode,   initialise,   setBaseItemLabelGenerator,   setBaseItemURLGenerator,   setBaseToolTipGenerator,   setItemLabelGenerator,   setItemURLGenerator,   setLegendItemLabelGenerator,   setLegendItemToolTipGenerator,   setLegendItemURLGenerator,   setPlot,   setSeriesItemLabelGenerator,   setSeriesItemURLGenerator,   setSeriesToolTipGenerator,   setToolTipGenerator
Methods from org.jfree.chart.renderer.AbstractRenderer:
addChangeListener,   calculateLabelAnchorPoint,   clone,   equals,   fireChangeEvent,   getAutoPopulateSeriesFillPaint,   getAutoPopulateSeriesOutlinePaint,   getAutoPopulateSeriesOutlineStroke,   getAutoPopulateSeriesPaint,   getAutoPopulateSeriesShape,   getAutoPopulateSeriesStroke,   getBaseCreateEntities,   getBaseFillPaint,   getBaseItemLabelFont,   getBaseItemLabelPaint,   getBaseItemLabelsVisible,   getBaseNegativeItemLabelPosition,   getBaseOutlinePaint,   getBaseOutlineStroke,   getBasePaint,   getBasePositiveItemLabelPosition,   getBaseSeriesVisible,   getBaseSeriesVisibleInLegend,   getBaseShape,   getBaseStroke,   getCreateEntities,   getDrawingSupplier,   getItemCreateEntity,   getItemFillPaint,   getItemLabelAnchorOffset,   getItemLabelFont,   getItemLabelFont,   getItemLabelPaint,   getItemLabelPaint,   getItemOutlinePaint,   getItemOutlineStroke,   getItemPaint,   getItemShape,   getItemStroke,   getItemVisible,   getNegativeItemLabelPosition,   getNegativeItemLabelPosition,   getPositiveItemLabelPosition,   getPositiveItemLabelPosition,   getSeriesCreateEntities,   getSeriesFillPaint,   getSeriesItemLabelFont,   getSeriesItemLabelPaint,   getSeriesNegativeItemLabelPosition,   getSeriesOutlinePaint,   getSeriesOutlineStroke,   getSeriesPaint,   getSeriesPositiveItemLabelPosition,   getSeriesShape,   getSeriesStroke,   getSeriesVisible,   getSeriesVisible,   getSeriesVisibleInLegend,   getSeriesVisibleInLegend,   hasListener,   hashCode,   isItemLabelVisible,   isSeriesItemLabelsVisible,   isSeriesVisible,   isSeriesVisibleInLegend,   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,   setBaseNegativeItemLabelPosition,   setBaseNegativeItemLabelPosition,   setBaseOutlinePaint,   setBaseOutlinePaint,   setBaseOutlineStroke,   setBaseOutlineStroke,   setBasePaint,   setBasePaint,   setBasePositiveItemLabelPosition,   setBasePositiveItemLabelPosition,   setBaseSeriesVisible,   setBaseSeriesVisible,   setBaseSeriesVisibleInLegend,   setBaseSeriesVisibleInLegend,   setBaseShape,   setBaseShape,   setBaseStroke,   setBaseStroke,   setCreateEntities,   setCreateEntities,   setFillPaint,   setFillPaint,   setItemLabelAnchorOffset,   setItemLabelFont,   setItemLabelFont,   setItemLabelPaint,   setItemLabelPaint,   setItemLabelsVisible,   setItemLabelsVisible,   setItemLabelsVisible,   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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.renderer.category.WaterfallBarRenderer Detail:
 public  void drawItem(Graphics2D g2,
    CategoryItemRendererState state,
    Rectangle2D dataArea,
    CategoryPlot plot,
    CategoryAxis domainAxis,
    ValueAxis rangeAxis,
    CategoryDataset dataset,
    int row,
    int column,
    int pass) 
    Draws the bar for a single (series, category) data item.
 public boolean equals(Object obj) 
    Tests an object for equality with this instance.
 public Range findRangeBounds(CategoryDataset dataset) 
    Returns the range of values the renderer requires to display all the items from the specified dataset.
 public Paint getFirstBarPaint() 
    Returns the paint used to draw the first bar.
 public Paint getLastBarPaint() 
    Returns the paint used to draw the last bar.
 public Paint getNegativeBarPaint() 
    Returns the paint used to draw bars with negative values.
 public Paint getPositiveBarPaint() 
    Returns the paint used to draw bars with positive values.
 public  void setFirstBarPaint(Paint paint) 
    Sets the paint that will be used to draw the first bar and sends a RendererChangeEvent to all registered listeners.
 public  void setLastBarPaint(Paint paint) 
    Sets the paint that will be used to draw the last bar and sends a RendererChangeEvent to all registered listeners.
 public  void setNegativeBarPaint(Paint paint) 
    Sets the paint that will be used to draw bars having negative values, and sends a RendererChangeEvent to all registered listeners.
 public  void setPositiveBarPaint(Paint paint) 
    Sets the paint that will be used to draw bars having positive values.