Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » renderer » xy » [javadoc | source]
org.jfree.chart.renderer.xy
public class: XYBarRenderer [javadoc | source]
java.lang.Object
   org.jfree.chart.renderer.AbstractRenderer
      org.jfree.chart.renderer.xy.AbstractXYItemRenderer
         org.jfree.chart.renderer.xy.XYBarRenderer

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, XYItemRenderer

Direct Known Subclasses:
    ClusteredXYBarRenderer, StackedXYBarRenderer

A renderer that draws bars on an XYPlot (requires an IntervalXYDataset ).
Nested Class Summary:
protected class  XYBarRenderer.XYBarRendererState  The state class used by this renderer. 
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 XYBarRenderer() 
 public XYBarRenderer(double margin) 
Method from org.jfree.chart.renderer.xy.XYBarRenderer Summary:
clone,   drawItem,   drawItemLabel,   equals,   findDomainBounds,   getBase,   getGradientPaintTransformer,   getLegendBar,   getLegendItem,   getMargin,   getNegativeItemLabelPositionFallback,   getPositiveItemLabelPositionFallback,   getUseYInterval,   initialise,   isDrawBarOutline,   setBase,   setDrawBarOutline,   setGradientPaintTransformer,   setLegendBar,   setMargin,   setNegativeItemLabelPositionFallback,   setPositiveItemLabelPositionFallback,   setUseYInterval
Methods from org.jfree.chart.renderer.xy.AbstractXYItemRenderer:
addAnnotation,   addAnnotation,   addEntity,   calculateDomainMarkerTextAnchorPoint,   clone,   drawAnnotations,   drawDomainGridLine,   drawDomainLine,   drawDomainMarker,   drawItemLabel,   drawRangeLine,   drawRangeMarker,   equals,   fillDomainGridBand,   fillRangeGridBand,   findDomainBounds,   findRangeBounds,   getBaseItemLabelGenerator,   getBaseToolTipGenerator,   getDefaultEntityRadius,   getDrawingSupplier,   getItemLabelGenerator,   getItemLabelGenerator,   getLegendItem,   getLegendItemLabelGenerator,   getLegendItemToolTipGenerator,   getLegendItemURLGenerator,   getLegendItems,   getPassCount,   getPlot,   getSeriesItemLabelGenerator,   getSeriesToolTipGenerator,   getToolTipGenerator,   getToolTipGenerator,   getURLGenerator,   initialise,   isPointInRect,   removeAnnotation,   removeAnnotations,   setBaseItemLabelGenerator,   setBaseToolTipGenerator,   setDefaultEntityRadius,   setItemLabelGenerator,   setLegendItemLabelGenerator,   setLegendItemToolTipGenerator,   setLegendItemURLGenerator,   setPlot,   setSeriesItemLabelGenerator,   setSeriesToolTipGenerator,   setToolTipGenerator,   setURLGenerator,   updateCrosshairValues,   updateCrosshairValues
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.xy.XYBarRenderer Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the renderer.
 public  void drawItem(Graphics2D g2,
    XYItemRendererState state,
    Rectangle2D dataArea,
    PlotRenderingInfo info,
    XYPlot plot,
    ValueAxis domainAxis,
    ValueAxis rangeAxis,
    XYDataset dataset,
    int series,
    int item,
    CrosshairState crosshairState,
    int pass) 
    Draws the visual representation of a single data item.
 protected  void drawItemLabel(Graphics2D g2,
    XYDataset dataset,
    int series,
    int item,
    XYPlot plot,
    XYItemLabelGenerator generator,
    Rectangle2D bar,
    boolean negative) 
 public boolean equals(Object obj) 
    Tests this renderer for equality with an arbitrary object.
 public Range findDomainBounds(XYDataset dataset) 
    Returns the lower and upper bounds (range) of the x-values in the specified dataset. Since this renderer uses the x-interval in the dataset, this is taken into account for the range.
 public double getBase() 
    Returns the base value for the bars.
 public GradientPaintTransformer getGradientPaintTransformer() 
    Returns the gradient paint transformer (an object used to transform gradient paint objects to fit each bar).
 public Shape getLegendBar() 
    Returns the shape used to represent bars in each legend item.
 public LegendItem getLegendItem(int datasetIndex,
    int series) 
    Returns a default legend item for the specified series. Subclasses should override this method to generate customised items.
 public double getMargin() 
    Returns the margin which is a percentage amount by which the bars are trimmed.
 public ItemLabelPosition getNegativeItemLabelPositionFallback() 
    Returns the fallback position for negative item labels that don't fit within a bar.
 public ItemLabelPosition getPositiveItemLabelPositionFallback() 
    Returns the fallback position for positive item labels that don't fit within a bar.
 public boolean getUseYInterval() 
    Returns a flag that determines whether the y-interval from the dataset is used to calculate the length of each bar.
 public XYItemRendererState initialise(Graphics2D g2,
    Rectangle2D dataArea,
    XYPlot plot,
    XYDataset dataset,
    PlotRenderingInfo info) 
    Initialises the renderer and returns a state object that should be passed to all subsequent calls to the drawItem() method. Here we calculate the Java2D y-coordinate for zero, since all the bars have their bases fixed at zero.
 public boolean isDrawBarOutline() 
    Returns a flag that controls whether or not bar outlines are drawn.
 public  void setBase(double base) 
    Sets the base value for the bars and sends a RendererChangeEvent to all registered listeners. The base value is not used if the dataset's y-interval is being used to determine the bar length.
 public  void setDrawBarOutline(boolean draw) 
    Sets the flag that controls whether or not bar outlines are drawn and sends a RendererChangeEvent to all registered listeners.
 public  void setGradientPaintTransformer(GradientPaintTransformer transformer) 
    Sets the gradient paint transformer and sends a RendererChangeEvent to all registered listeners.
 public  void setLegendBar(Shape bar) 
    Sets the shape used to represent bars in each legend item and sends a RendererChangeEvent to all registered listeners.
 public  void setMargin(double margin) 
    Sets the percentage amount by which the bars are trimmed and sends a RendererChangeEvent to all registered listeners.
 public  void setNegativeItemLabelPositionFallback(ItemLabelPosition position) 
    Sets the fallback position for negative item labels that don't fit within a bar, and sends a RendererChangeEvent to all registered listeners.
 public  void setPositiveItemLabelPositionFallback(ItemLabelPosition position) 
    Sets the fallback position for positive item labels that don't fit within a bar, and sends a RendererChangeEvent to all registered listeners.
 public  void setUseYInterval(boolean use) 
    Sets the flag that determines whether the y-interval from the dataset is used to calculate the length of each bar, and sends a RendererChangeEvent to all registered listeners.