JIDE 3.5.15

com.jidesoft.chart.render
Interface BarRenderer2D

All Superinterfaces:
BarRenderer
All Known Implementing Classes:
Bar3DRenderer, CylinderBarRenderer, DefaultBarRenderer, RaisedBarRenderer

public interface BarRenderer2D
extends BarRenderer

An interface implemented by classes that can be used to render the bars of a bar chart


Method Summary
 int getMinimumBreadth()
           
 Shape renderBar(Graphics2D g, Chart chart, ChartModel m, Chartable p, boolean isSelected, boolean hasRollover, boolean hasFocus, double x, double y, double width, double height)
          There is one call to this method for each bar to be rendered in a bar chart.
 
Methods inherited from interface com.jidesoft.chart.render.BarRenderer
renderBar
 

Method Detail

getMinimumBreadth

int getMinimumBreadth()
Specified by:
getMinimumBreadth in interface BarRenderer

renderBar

Shape renderBar(Graphics2D g,
                Chart chart,
                ChartModel m,
                Chartable p,
                boolean isSelected,
                boolean hasRollover,
                boolean hasFocus,
                double x,
                double y,
                double width,
                double height)
There is one call to this method for each bar to be rendered in a bar chart.

Parameters:
g - the graphics context onto which the bar is drawn
chart - the chart object
m - the chart model from which the bar/point comes
p - the point of the model corresponding to the bar
isSelected - whether the bar is currently selected
hasRollover - whether the bar currently is under the mouse cursor
hasFocus - whether the bar currently has focus (not yet supported)
x - the x pixel coordinate for the top left of the bar
y - the y pixel coordinate for the top left of the bar
width - the width of the bar in pixels
height - the height of the bar in pixels

JIDE 3.5.15