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. |
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 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