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. |
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 drawnchart
- the chart objectm
- the chart model from which the bar/point comesp
- the point of the model corresponding to the barisSelected
- whether the bar is currently selectedhasRollover
- whether the bar currently is under the mouse cursorhasFocus
- whether the bar currently has focus (not yet supported)x
- the x pixel coordinate for the top left of the bary
- the y pixel coordinate for the top left of the barwidth
- the width of the bar in pixelsheight
- the height of the bar in pixels