JIDE 3.5.15

com.jidesoft.chart.render
Interface BarRenderer

All Known Subinterfaces:
BarRenderer2D
All Known Implementing Classes:
AbstractBarRenderer, Bar3DRenderer, CylinderBarRenderer, DefaultBarRenderer, RaisedBarRenderer

public interface BarRenderer

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


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

Method Detail

getMinimumBreadth

int getMinimumBreadth()

renderBar

Shape renderBar(Graphics g,
                Chart chart,
                ChartModel m,
                Chartable p,
                boolean isSelected,
                boolean hasRollover,
                boolean hasFocus,
                int x,
                int y,
                int width,
                int 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