Package com.jfcbuilder.builders
Class CandlestickRendererBuilder
java.lang.Object
com.jfcbuilder.builders.CandlestickRendererBuilder
Builder for creating configured CandlestickRenderer instances.
-
Method Summary
Modifier and TypeMethodDescriptionorg.jfree.chart.renderer.xy.CandlestickRendererbuild()Builds the renderer using all configured settings.Gets the configured close-down candle color.Sets the close-down candle color to be used when rendering candles.static CandlestickRendererBuilderget()Factory method for obtaining new instances of this class.org.jfree.chart.labels.XYToolTipGeneratorGets the configured tooltip generator.toolTipGenerator(org.jfree.chart.labels.XYToolTipGenerator toolTipGenerator) Sets the tooltip generator to use.upColor()Gets the configured close-up candle color.Sets the close-up candle color to be used when rendering candles.
-
Method Details
-
get
Factory method for obtaining new instances of this class.- Returns:
- New instance of this class
-
upColor
Sets the close-up candle color to be used when rendering candles.- Parameters:
c- TheColorto use- Returns:
- Reference to this builder for chaining method calls
-
upColor
Gets the configured close-up candle color.- Returns:
- The color
-
downColor
Sets the close-down candle color to be used when rendering candles.- Parameters:
c- TheColorto use- Returns:
- Reference to this builder for chaining method calls
-
downColor
Gets the configured close-down candle color.- Returns:
- The color
-
toolTipGenerator
public org.jfree.chart.labels.XYToolTipGenerator toolTipGenerator()Gets the configured tooltip generator.- Returns:
- The tooltip generator instance if one was set. Null otherwise.
-
toolTipGenerator
public CandlestickRendererBuilder toolTipGenerator(org.jfree.chart.labels.XYToolTipGenerator toolTipGenerator) Sets the tooltip generator to use. If this method is not invoked theCandlestickRendererdefault is used.- Parameters:
toolTipGenerator- The tooltip generator that should be used.
-
build
public org.jfree.chart.renderer.xy.CandlestickRenderer build()Builds the renderer using all configured settings.- Returns:
- New instance of a CandlestickRenderer corresponding to all configured settings
-