com.jidesoft.chart.render
Class CandlestickPointRenderer
java.lang.Object
com.jidesoft.chart.render.AbstractRenderer
com.jidesoft.chart.render.AbstractPointRenderer
com.jidesoft.chart.render.CandlestickPointRenderer
- All Implemented Interfaces:
- PointRenderer
public class CandlestickPointRenderer
- extends AbstractPointRenderer
Renderer for a candlestick chart
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_CANDLESTICK_TYPE
public static final String PROPERTY_CANDLESTICK_TYPE
- See Also:
- Constant Field Values
CandlestickPointRenderer
public CandlestickPointRenderer()
- Zero argument constructor
CandlestickPointRenderer
public CandlestickPointRenderer(CandlestickChartType candlestickType)
- Creates a Candlestick renderer and simultaneously sets the style of rendering
- Parameters:
candlestickType - the new style of rendering to use
getCandlestickType
public CandlestickChartType getCandlestickType()
- Returns:
- the style of candlestick currently rendered by this object
setCandlestickType
public void setCandlestickType(CandlestickChartType candlestickType)
- Specify the style of rendering used for candlesticks
- Parameters:
candlestickType - the style of rendering to use
renderPoint
public Shape renderPoint(Graphics g,
Chart chart,
ChartModel m,
Chartable point,
boolean isSelected,
boolean hasRollover,
boolean hasFocus,
int x,
int y)
- 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