|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.HighLowRenderer
public class HighLowRenderer
A renderer that draws high/low/open/close markers on an XYPlot
(requires a OHLCDataset
). This renderer does not include code to
calculate the crosshair point for the plot.
Field Summary |
---|
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
---|
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
Constructor Summary | |
---|---|
HighLowRenderer()
The default constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of the renderer. |
void |
drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the visual representation of a single data item. |
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object. |
java.awt.Paint |
getCloseTickPaint()
Returns the paint used to draw the ticks for the close values. |
boolean |
getDrawCloseTicks()
Returns the flag that controls whether close ticks are drawn. |
boolean |
getDrawOpenTicks()
Returns the flag that controls whether open ticks are drawn. |
java.awt.Paint |
getOpenTickPaint()
Returns the paint used to draw the ticks for the open values. |
void |
setCloseTickPaint(java.awt.Paint paint)
Sets the paint used to draw the ticks for the close values and sends a RendererChangeEvent to all registered listeners. |
void |
setDrawCloseTicks(boolean draw)
Sets the flag that controls whether close ticks are drawn, and sends a RendererChangeEvent to all registered listeners. |
void |
setDrawOpenTicks(boolean draw)
Sets the flag that controls whether open ticks are drawn, and sends a RendererChangeEvent to all registered listeners. |
void |
setOpenTickPaint(java.awt.Paint paint)
Sets the paint used to draw the ticks for the open values and sends a RendererChangeEvent to all registered listeners. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.chart.LegendItemSource |
---|
getLegendItems |
Constructor Detail |
---|
public HighLowRenderer()
Method Detail |
---|
public boolean getDrawOpenTicks()
public void setDrawOpenTicks(boolean draw)
RendererChangeEvent
to all registered listeners.
draw
- the flag.public boolean getDrawCloseTicks()
public void setDrawCloseTicks(boolean draw)
RendererChangeEvent
to all registered listeners.
draw
- the flag.public java.awt.Paint getOpenTickPaint()
null
).public void setOpenTickPaint(java.awt.Paint paint)
RendererChangeEvent
to all registered listeners. If you set
this to null
(the default), the series paint is used
instead.
paint
- the paint (null
permitted).public java.awt.Paint getCloseTickPaint()
null
).public void setCloseTickPaint(java.awt.Paint paint)
RendererChangeEvent
to all registered listeners. If you set
this to null
(the default), the series paint is used
instead.
paint
- the paint (null
permitted).public void drawItem(java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)
drawItem
in interface XYItemRenderer
g2
- the graphics device.state
- the renderer state.dataArea
- the area within which the plot is being drawn.info
- collects information about the drawing.plot
- the plot (can be used to obtain standard color
information etc).domainAxis
- the domain axis.rangeAxis
- the range axis.dataset
- the dataset.series
- the series index (zero-based).item
- the item index (zero-based).crosshairState
- crosshair information for the plot
(null
permitted).pass
- the pass index.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractXYItemRenderer
java.lang.CloneNotSupportedException
- if the renderer cannot be cloned.public boolean equals(java.lang.Object obj)
equals
in class AbstractXYItemRenderer
obj
- the object (null
permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |