Class OHLCChart02
java.lang.Object
org.knowm.xchart.demo.charts.ohlc.OHLCChart02
- All Implemented Interfaces:
ExampleChart<OHLCChart>
Demonstrates the following:
- Tooltips
- Candle render style green down, red up
- LegendPosition.OutsideS
- OHLCSeriesRenderStyle.HiLo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizePanel(XChartPanel<OHLCChart> panel) Optional hook for configuringXChartPanelinteraction features (tooltips, zoom, cursor) after the panel is created by the demo app.getChart()static void
-
Constructor Details
-
OHLCChart02
public OHLCChart02()
-
-
Method Details
-
main
-
getChart
- Specified by:
getChartin interfaceExampleChart<OHLCChart>
-
customizePanel
Description copied from interface:ExampleChartOptional hook for configuringXChartPanelinteraction features (tooltips, zoom, cursor) after the panel is created by the demo app. The default implementation does nothing. Override to enable hover tooltips, zoom, etc. for this example.- Specified by:
customizePanelin interfaceExampleChart<OHLCChart>- Parameters:
panel- the panel that was just created withExampleChart.getChart()
-
getExampleChartName
- Specified by:
getExampleChartNamein interfaceExampleChart<OHLCChart>
-