com.jidesoft.chart.render
Class RectangularPointRenderer
java.lang.Object
com.jidesoft.chart.render.AbstractRenderer
com.jidesoft.chart.render.AbstractPointRenderer
com.jidesoft.chart.render.RectangularPointRenderer
- All Implemented Interfaces:
- PointRenderer
public class RectangularPointRenderer
- extends AbstractPointRenderer
A point renderer that draws a rectangle for each of its points. For this renderer, the width and height of each
rectangle is taken from the 3rd and 4th dimension of the chart point (a ChartableND) of the ChartModel. In other
words you can easily configure the size of each point individually.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RectangularPointRenderer
public RectangularPointRenderer()
renderPoint
public Shape renderPoint(Graphics g,
Chart chart,
ChartModel m,
Chartable point,
boolean isSelected,
boolean hasRollover,
boolean hasFocus,
int x,
int y)
- Description copied from interface:
PointRenderer
- Render the point at the given x,y coordinates
- Parameters:
g
- the Graphics context for rendering the pointchart
- the Chart objectm
- the model from which the point derivespoint
- the Chartable object to paintisSelected
- whether the point is currently selectedhasRollover
- whether the point is currently in a rollover statehasFocus
- whether the point currently has editing focusx
- the x coordinate (in pixels) for the location of the pointy
- the y coordinate (in pixels) for the location of the point
- Returns:
- the rendered shape