Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

org::jfree::chart::renderer::xy::CandlestickRenderer Class Reference

Inheritance diagram for org::jfree::chart::renderer::xy::CandlestickRenderer:

org::jfree::chart::renderer::xy::AbstractXYItemRenderer org::jfree::chart::renderer::xy::XYItemRenderer org::jfree::chart::renderer::AbstractRenderer org::jfree::chart::renderer::xy::XYItemRenderer org::jfree::chart::LegendItemSource org::jfree::chart::LegendItemSource

List of all members.


Detailed Description

A renderer that draws candlesticks on an XYPlot (requires a OHLCDataset).

This renderer does not include code to calculate the crosshair point for the plot.

Definition at line 127 of file CandlestickRenderer.java.


Public Member Functions

void addAnnotation (XYAnnotation annotation, Layer layer)
void addAnnotation (XYAnnotation annotation)
void addChangeListener (RendererChangeListener listener)
void addChangeListener (RendererChangeListener listener)
 CandlestickRenderer (double candleWidth, boolean drawVolume, XYToolTipGenerator toolTipGenerator)
 CandlestickRenderer (double candleWidth)
 CandlestickRenderer ()
Object clone () throws CloneNotSupportedException
void drawAnnotations (Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)
void drawDomainGridLine (Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)
void drawDomainLine (Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
void drawDomainMarker (Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)
void drawItem (Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)
void drawRangeLine (Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
void drawRangeMarker (Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)
boolean drawVolume ()
boolean equals (Object obj)
void fillDomainGridBand (Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
void fillRangeGridBand (Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
Range findDomainBounds (XYDataset dataset)
Range findRangeBounds (XYDataset dataset)
boolean getAutoPopulateSeriesFillPaint ()
boolean getAutoPopulateSeriesOutlinePaint ()
boolean getAutoPopulateSeriesOutlineStroke ()
boolean getAutoPopulateSeriesPaint ()
boolean getAutoPopulateSeriesShape ()
boolean getAutoPopulateSeriesStroke ()
double getAutoWidthFactor ()
double getAutoWidthGap ()
int getAutoWidthMethod ()
boolean getBaseCreateEntities ()
Paint getBaseFillPaint ()
Font getBaseItemLabelFont ()
Font getBaseItemLabelFont ()
XYItemLabelGenerator getBaseItemLabelGenerator ()
Paint getBaseItemLabelPaint ()
Paint getBaseItemLabelPaint ()
Boolean getBaseItemLabelsVisible ()
Boolean getBaseItemLabelsVisible ()
ItemLabelPosition getBaseNegativeItemLabelPosition ()
ItemLabelPosition getBaseNegativeItemLabelPosition ()
Paint getBaseOutlinePaint ()
Paint getBaseOutlinePaint ()
Stroke getBaseOutlineStroke ()
Stroke getBaseOutlineStroke ()
Paint getBasePaint ()
Paint getBasePaint ()
ItemLabelPosition getBasePositiveItemLabelPosition ()
ItemLabelPosition getBasePositiveItemLabelPosition ()
boolean getBaseSeriesVisible ()
boolean getBaseSeriesVisible ()
boolean getBaseSeriesVisibleInLegend ()
boolean getBaseSeriesVisibleInLegend ()
Shape getBaseShape ()
Shape getBaseShape ()
Stroke getBaseStroke ()
Stroke getBaseStroke ()
XYToolTipGenerator getBaseToolTipGenerator ()
double getCandleWidth ()
Boolean getCreateEntities ()
int getDefaultEntityRadius ()
Paint getDownPaint ()
DrawingSupplier getDrawingSupplier ()
boolean getDrawVolume ()
boolean getItemCreateEntity (int series, int item)
Paint getItemFillPaint (int row, int column)
double getItemLabelAnchorOffset ()
Font getItemLabelFont ()
Font getItemLabelFont (int row, int column)
Font getItemLabelFont ()
Font getItemLabelFont (int row, int column)
XYItemLabelGenerator getItemLabelGenerator ()
XYItemLabelGenerator getItemLabelGenerator (int series, int item)
Paint getItemLabelPaint ()
Paint getItemLabelPaint (int row, int column)
Paint getItemLabelPaint ()
Paint getItemLabelPaint (int row, int column)
Paint getItemOutlinePaint (int row, int column)
Paint getItemOutlinePaint (int row, int column)
Stroke getItemOutlineStroke (int row, int column)
Stroke getItemOutlineStroke (int row, int column)
Paint getItemPaint (int row, int column)
Paint getItemPaint (int row, int column)
Shape getItemShape (int row, int column)
Shape getItemShape (int row, int column)
Stroke getItemStroke (int row, int column)
Stroke getItemStroke (int row, int column)
boolean getItemVisible (int series, int item)
boolean getItemVisible (int series, int item)
LegendItem getLegendItem (int datasetIndex, int series)
XYSeriesLabelGenerator getLegendItemLabelGenerator ()
LegendItemCollection getLegendItems ()
XYSeriesLabelGenerator getLegendItemToolTipGenerator ()
XYSeriesLabelGenerator getLegendItemURLGenerator ()
double getMaxCandleWidthInMilliseconds ()
ItemLabelPosition getNegativeItemLabelPosition ()
ItemLabelPosition getNegativeItemLabelPosition (int row, int column)
ItemLabelPosition getNegativeItemLabelPosition ()
ItemLabelPosition getNegativeItemLabelPosition (int row, int column)
int getPassCount ()
XYPlot getPlot ()
ItemLabelPosition getPositiveItemLabelPosition ()
ItemLabelPosition getPositiveItemLabelPosition (int row, int column)
ItemLabelPosition getPositiveItemLabelPosition ()
ItemLabelPosition getPositiveItemLabelPosition (int row, int column)
Boolean getSeriesCreateEntities (int series)
Paint getSeriesFillPaint (int series)
Font getSeriesItemLabelFont (int series)
Font getSeriesItemLabelFont (int series)
XYItemLabelGenerator getSeriesItemLabelGenerator (int series)
Paint getSeriesItemLabelPaint (int series)
Paint getSeriesItemLabelPaint (int series)
ItemLabelPosition getSeriesNegativeItemLabelPosition (int series)
ItemLabelPosition getSeriesNegativeItemLabelPosition (int series)
Paint getSeriesOutlinePaint (int series)
Paint getSeriesOutlinePaint (int series)
Stroke getSeriesOutlineStroke (int series)
Stroke getSeriesOutlineStroke (int series)
Paint getSeriesPaint (int series)
Paint getSeriesPaint (int series)
ItemLabelPosition getSeriesPositiveItemLabelPosition (int series)
ItemLabelPosition getSeriesPositiveItemLabelPosition (int series)
Shape getSeriesShape (int series)
Shape getSeriesShape (int series)
Stroke getSeriesStroke (int series)
Stroke getSeriesStroke (int series)
XYToolTipGenerator getSeriesToolTipGenerator (int series)
Boolean getSeriesVisible (int series)
Boolean getSeriesVisible ()
Boolean getSeriesVisible (int series)
Boolean getSeriesVisible ()
Boolean getSeriesVisibleInLegend (int series)
Boolean getSeriesVisibleInLegend ()
Boolean getSeriesVisibleInLegend (int series)
Boolean getSeriesVisibleInLegend ()
XYToolTipGenerator getToolTipGenerator ()
XYToolTipGenerator getToolTipGenerator (int series, int item)
Paint getUpPaint ()
XYURLGenerator getURLGenerator ()
boolean getUseOutlinePaint ()
Paint getVolumePaint ()
int hashCode ()
boolean hasListener (EventListener listener)
XYItemRendererState initialise (Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info)
boolean isItemLabelVisible (int row, int column)
boolean isItemLabelVisible (int row, int column)
boolean isSeriesItemLabelsVisible (int series)
boolean isSeriesItemLabelsVisible (int series)
boolean isSeriesVisible (int series)
boolean isSeriesVisible (int series)
boolean isSeriesVisibleInLegend (int series)
boolean isSeriesVisibleInLegend (int series)
Paint lookupSeriesFillPaint (int series)
Paint lookupSeriesOutlinePaint (int series)
Stroke lookupSeriesOutlineStroke (int series)
Paint lookupSeriesPaint (int series)
Shape lookupSeriesShape (int series)
Stroke lookupSeriesStroke (int series)
void notifyListeners (RendererChangeEvent event)
boolean removeAnnotation (XYAnnotation annotation)
void removeAnnotations ()
void removeChangeListener (RendererChangeListener listener)
void removeChangeListener (RendererChangeListener listener)
void setAutoPopulateSeriesFillPaint (boolean auto)
void setAutoPopulateSeriesOutlinePaint (boolean auto)
void setAutoPopulateSeriesOutlineStroke (boolean auto)
void setAutoPopulateSeriesPaint (boolean auto)
void setAutoPopulateSeriesShape (boolean auto)
void setAutoPopulateSeriesStroke (boolean auto)
void setAutoWidthFactor (double autoWidthFactor)
void setAutoWidthGap (double autoWidthGap)
void setAutoWidthMethod (int autoWidthMethod)
void setBaseCreateEntities (boolean create, boolean notify)
void setBaseCreateEntities (boolean create)
void setBaseFillPaint (Paint paint, boolean notify)
void setBaseFillPaint (Paint paint)
void setBaseItemLabelFont (Font font)
void setBaseItemLabelFont (Font font, boolean notify)
void setBaseItemLabelFont (Font font)
void setBaseItemLabelGenerator (XYItemLabelGenerator generator)
void setBaseItemLabelPaint (Paint paint)
void setBaseItemLabelPaint (Paint paint, boolean notify)
void setBaseItemLabelPaint (Paint paint)
void setBaseItemLabelsVisible (Boolean visible, boolean notify)
void setBaseItemLabelsVisible (Boolean visible)
void setBaseItemLabelsVisible (boolean visible)
void setBaseItemLabelsVisible (Boolean visible, boolean notify)
void setBaseItemLabelsVisible (Boolean visible)
void setBaseItemLabelsVisible (boolean visible)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBaseNegativeItemLabelPosition (ItemLabelPosition position)
void setBaseOutlinePaint (Paint paint)
void setBaseOutlinePaint (Paint paint, boolean notify)
void setBaseOutlinePaint (Paint paint)
void setBaseOutlineStroke (Stroke stroke)
void setBaseOutlineStroke (Stroke stroke, boolean notify)
void setBaseOutlineStroke (Stroke stroke)
void setBasePaint (Paint paint)
void setBasePaint (Paint paint, boolean notify)
void setBasePaint (Paint paint)
void setBasePositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBasePositiveItemLabelPosition (ItemLabelPosition position)
void setBasePositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setBasePositiveItemLabelPosition (ItemLabelPosition position)
void setBaseSeriesVisible (boolean visible, boolean notify)
void setBaseSeriesVisible (boolean visible)
void setBaseSeriesVisible (boolean visible, boolean notify)
void setBaseSeriesVisible (boolean visible)
void setBaseSeriesVisibleInLegend (boolean visible, boolean notify)
void setBaseSeriesVisibleInLegend (boolean visible)
void setBaseSeriesVisibleInLegend (boolean visible, boolean notify)
void setBaseSeriesVisibleInLegend (boolean visible)
void setBaseShape (Shape shape)
void setBaseShape (Shape shape, boolean notify)
void setBaseShape (Shape shape)
void setBaseStroke (Stroke stroke)
void setBaseStroke (Stroke stroke, boolean notify)
void setBaseStroke (Stroke stroke)
void setBaseToolTipGenerator (XYToolTipGenerator generator)
void setCandleWidth (double width)
void setCreateEntities (Boolean create, boolean notify)
void setCreateEntities (Boolean create)
void setDefaultEntityRadius (int radius)
void setDownPaint (Paint paint)
void setDrawVolume (boolean flag)
void setFillPaint (Paint paint, boolean notify)
void setFillPaint (Paint paint)
void setItemLabelAnchorOffset (double offset)
void setItemLabelFont (Font font)
void setItemLabelFont (Font font, boolean notify)
void setItemLabelFont (Font font)
void setItemLabelGenerator (XYItemLabelGenerator generator)
void setItemLabelPaint (Paint paint)
void setItemLabelPaint (Paint paint, boolean notify)
void setItemLabelPaint (Paint paint)
void setItemLabelsVisible (Boolean visible, boolean notify)
void setItemLabelsVisible (Boolean visible)
void setItemLabelsVisible (boolean visible)
void setItemLabelsVisible (Boolean visible, boolean notify)
void setItemLabelsVisible (Boolean visible)
void setItemLabelsVisible (boolean visible)
void setLegendItemLabelGenerator (XYSeriesLabelGenerator generator)
void setLegendItemToolTipGenerator (XYSeriesLabelGenerator generator)
void setLegendItemURLGenerator (XYSeriesLabelGenerator generator)
void setMaxCandleWidthInMilliseconds (double millis)
void setNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setNegativeItemLabelPosition (ItemLabelPosition position)
void setNegativeItemLabelPosition (ItemLabelPosition position, boolean notify)
void setNegativeItemLabelPosition (ItemLabelPosition position)
void setOutlinePaint (Paint paint)
void setOutlinePaint (Paint paint, boolean notify)
void setOutlinePaint (Paint paint)
void setOutlineStroke (Stroke stroke)
void setOutlineStroke (Stroke stroke, boolean notify)
void setOutlineStroke (Stroke stroke)
void setPaint (Paint paint)
void setPaint (Paint paint, boolean notify)
void setPaint (Paint paint)
void setPlot (XYPlot plot)
void setPositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setPositiveItemLabelPosition (ItemLabelPosition position)
void setPositiveItemLabelPosition (ItemLabelPosition position, boolean notify)
void setPositiveItemLabelPosition (ItemLabelPosition position)
void setSeriesCreateEntities (int series, Boolean create, boolean notify)
void setSeriesCreateEntities (int series, Boolean create)
void setSeriesFillPaint (int series, Paint paint, boolean notify)
void setSeriesFillPaint (int series, Paint paint)
void setSeriesItemLabelFont (int series, Font font)
void setSeriesItemLabelFont (int series, Font font, boolean notify)
void setSeriesItemLabelFont (int series, Font font)
void setSeriesItemLabelGenerator (int series, XYItemLabelGenerator generator)
void setSeriesItemLabelPaint (int series, Paint paint)
void setSeriesItemLabelPaint (int series, Paint paint, boolean notify)
void setSeriesItemLabelPaint (int series, Paint paint)
void setSeriesItemLabelsVisible (int series, Boolean visible, boolean notify)
void setSeriesItemLabelsVisible (int series, Boolean visible)
void setSeriesItemLabelsVisible (int series, boolean visible)
void setSeriesItemLabelsVisible (int series, Boolean visible, boolean notify)
void setSeriesItemLabelsVisible (int series, Boolean visible)
void setSeriesItemLabelsVisible (int series, boolean visible)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesOutlinePaint (int series, Paint paint)
void setSeriesOutlinePaint (int series, Paint paint, boolean notify)
void setSeriesOutlinePaint (int series, Paint paint)
void setSeriesOutlineStroke (int series, Stroke stroke)
void setSeriesOutlineStroke (int series, Stroke stroke, boolean notify)
void setSeriesOutlineStroke (int series, Stroke stroke)
void setSeriesPaint (int series, Paint paint)
void setSeriesPaint (int series, Paint paint, boolean notify)
void setSeriesPaint (int series, Paint paint)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position, boolean notify)
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position)
void setSeriesShape (int series, Shape shape)
void setSeriesShape (int series, Shape shape, boolean notify)
void setSeriesShape (int series, Shape shape)
void setSeriesStroke (int series, Stroke stroke)
void setSeriesStroke (int series, Stroke stroke, boolean notify)
void setSeriesStroke (int series, Stroke stroke)
void setSeriesToolTipGenerator (int series, XYToolTipGenerator generator)
void setSeriesVisible (int series, Boolean visible, boolean notify)
void setSeriesVisible (int series, Boolean visible)
void setSeriesVisible (Boolean visible, boolean notify)
void setSeriesVisible (Boolean visible)
void setSeriesVisible (int series, Boolean visible, boolean notify)
void setSeriesVisible (int series, Boolean visible)
void setSeriesVisible (Boolean visible, boolean notify)
void setSeriesVisible (Boolean visible)
void setSeriesVisibleInLegend (int series, Boolean visible, boolean notify)
void setSeriesVisibleInLegend (int series, Boolean visible)
void setSeriesVisibleInLegend (Boolean visible, boolean notify)
void setSeriesVisibleInLegend (Boolean visible)
void setSeriesVisibleInLegend (int series, Boolean visible, boolean notify)
void setSeriesVisibleInLegend (int series, Boolean visible)
void setSeriesVisibleInLegend (Boolean visible, boolean notify)
void setSeriesVisibleInLegend (Boolean visible)
void setShape (Shape shape)
void setShape (Shape shape, boolean notify)
void setShape (Shape shape)
void setStroke (Stroke stroke)
void setStroke (Stroke stroke, boolean notify)
void setStroke (Stroke stroke)
void setToolTipGenerator (XYToolTipGenerator generator)
void setUpPaint (Paint paint)
void setURLGenerator (XYURLGenerator urlGenerator)
void setUseOutlinePaint (boolean use)
void setVolumePaint (Paint paint)

Static Public Member Functions

static boolean isPointInRect (Rectangle2D rect, double x, double y)

Static Public Attributes

static final Paint DEFAULT_OUTLINE_PAINT = Color.gray
static final Stroke DEFAULT_OUTLINE_STROKE = new BasicStroke(1.0f)
static final Paint DEFAULT_PAINT = Color.blue
static final Shape DEFAULT_SHAPE = new Rectangle2D.Double(-3.0, -3.0, 6.0, 6.0)
static final Stroke DEFAULT_STROKE = new BasicStroke(1.0f)
static final Font DEFAULT_VALUE_LABEL_FONT = new Font("SansSerif", Font.PLAIN, 10)
static final Paint DEFAULT_VALUE_LABEL_PAINT = Color.black
static final int WIDTHMETHOD_AVERAGE = 0
static final int WIDTHMETHOD_INTERVALDATA = 2
static final int WIDTHMETHOD_SMALLEST = 1
static final Double ZERO = new Double(0.0)

Protected Member Functions

void addEntity (EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)
Point2D calculateDomainMarkerTextAnchorPoint (Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)
Point2D calculateLabelAnchorPoint (ItemLabelAnchor anchor, double x, double y, PlotOrientation orientation)
void drawItemLabel (Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)
void fireChangeEvent ()
void updateCrosshairValues (CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)
void updateCrosshairValues (CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)

Private Member Functions

void readObject (ObjectInputStream stream) throws IOException, ClassNotFoundException
void writeObject (ObjectOutputStream stream) throws IOException

Private Attributes

double autoWidthFactor = 4.5 / 7
double autoWidthGap = 0.0
int autoWidthMethod = WIDTHMETHOD_AVERAGE
double candleWidth
transient Paint downPaint
boolean drawVolume
double maxCandleWidth
double maxCandleWidthInMilliseconds = 1000.0 * 60.0 * 60.0 * 20.0
transient double maxVolume
transient Paint upPaint
boolean useOutlinePaint
transient Paint volumePaint

Static Private Attributes

static final long serialVersionUID = 50390395841817121L

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index