JIDE 3.5.15

com.jidesoft.chart.render
Class CandlestickPointRenderer

java.lang.Object
  extended by com.jidesoft.chart.render.AbstractRenderer
      extended by com.jidesoft.chart.render.AbstractPointRenderer
          extended by com.jidesoft.chart.render.CandlestickPointRenderer
All Implemented Interfaces:
PointRenderer

public class CandlestickPointRenderer
extends AbstractPointRenderer

Renderer for a candlestick chart


Field Summary
static String PROPERTY_CANDLESTICK_TYPE
           
 
Fields inherited from class com.jidesoft.chart.render.AbstractRenderer
alwaysShowOutlines, PROPERTY_OUTLINE_WIDTH, ROLLOVER_INTENSITY, support
 
Constructor Summary
CandlestickPointRenderer()
          Zero argument constructor
CandlestickPointRenderer(CandlestickChartType candlestickType)
          Creates a Candlestick renderer and simultaneously sets the style of rendering
 
Method Summary
 CandlestickChartType getCandlestickType()
           
 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
 void setCandlestickType(CandlestickChartType candlestickType)
          Specify the style of rendering used for candlesticks
 
Methods inherited from class com.jidesoft.chart.render.AbstractPointRenderer
getStyle
 
Methods inherited from class com.jidesoft.chart.render.AbstractRenderer
addPropertyChangeListener, getOutlineColor, getOutlineWidth, getSelectionColor, isAlwaysShowOutlines, removePropertyChangeListener, setAlwaysShowOutlines, setOutlineColor, setOutlineWidth, setSelectionColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_CANDLESTICK_TYPE

public static final String PROPERTY_CANDLESTICK_TYPE
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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 point
chart - the Chart object
m - the model from which the point derives
point - the Chartable object to paint
isSelected - whether the point is currently selected
hasRollover - whether the point is currently in a rollover state
hasFocus - whether the point currently has editing focus
x - the x coordinate (in pixels) for the location of the point
y - the y coordinate (in pixels) for the location of the point
Returns:
the rendered shape

JIDE 3.5.15