Package com.strategyquant.tradinglib
Class AbstractChart
java.lang.Object
com.strategyquant.tradinglib.AbstractChart
- Direct Known Subclasses:
com.strategyquant.tradinglib.charts.AbstractXYChart,PieChart,TimeSeriesScatterChart
The Class AbstractChart.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanThe category axis.booleanThe show legend.The title.The type.booleanThe x axis ticks duration in MS.booleanThe y axis ticks memory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectGets the options.abstract org.json.JSONObjecttoJSON()To JSON.
-
Field Details
-
type
The type. -
title
The title. -
showLegend
public boolean showLegendThe show legend. -
xAxisTicksDurationInMS
public boolean xAxisTicksDurationInMSThe x axis ticks duration in MS. -
yAxisTicksMemory
public boolean yAxisTicksMemoryThe y axis ticks memory. -
categoryAxis
public boolean categoryAxisThe category axis.
-
-
Constructor Details
-
AbstractChart
Instantiates a new abstract chart.- Parameters:
type- the type
-
-
Method Details
-
toJSON
public abstract org.json.JSONObject toJSON()To JSON.- Returns:
- the JSON object
-
getOptions
public org.json.JSONObject getOptions()Gets the options.- Returns:
- the options
-