public class ResultHighchart extends Object implements ComplexCalculationResult
Constructor and Description |
---|
ResultHighchart(Map<String,?> definition)
Not intended for public use.
|
Modifier and Type | Method and Description |
---|---|
ResultHighchart |
addModule(String... modules)
By default, only the modules required for the various Price Analyzer chart types are available.
|
ResultHighchart |
addResultMatrixTab(ResultMatrix matrix)
The automatically filled data tab can be replaced by customized ResultMatrix data.
|
Map<String,?> |
getChartDefinition()
Not intended for public use, required for JSON serialization.
|
List<String> |
getDataHeaders()
Not intended for public use, required for JSON serialization.
|
List<String> |
getModulesList()
Not intended for public use, required for JSON serialization.
|
List<ResultMatrix> |
getResultMatrixList()
Not intended for public use, required for JSON serialization.
|
String |
getResultType() |
boolean |
getShowDataTab()
Not intended for public use, required for JSON serialization.
|
ResultHighchart |
setDataHeaders(String... headers)
To override the default column headers of the data tab table.
|
ResultHighchart |
setResultMatrixTabs(ResultMatrix... matrices)
The automatically filled data tab can be replaced by customized ResultMatrix data.
|
ResultHighchart |
setShowDataTab(boolean show)
Show a tab set, with the chart in the first tab, and data grids in the other tabs.
|
ResultHighchart |
showDataTab()
Short for setShowDataTab(true)
|
public Map<String,?> getChartDefinition()
public ResultHighchart addModule(String... modules)
modules
- one or more Highcharts module names, without the path and without the ".js" extension.
e.g. "annotations", "funnel", "variwide"ResultHighchart
instance, for conveniencepublic List<String> getModulesList()
public ResultHighchart setShowDataTab(boolean show)
setDataHeaders()
,
or the whole grid can be provided in a ResultMatrix
instance via
setResultMatrixTabs()
.
Note that for convenience, calling setDataHeaders()
, setResultMatrixTabs()
,
or addResultMatrixTab()
will set this to true.show
- Data tab will be shown if set to true. Default is false.ResultHighchart
instance, for conveniencesetDataHeaders(java.lang.String...)
,
setResultMatrixTabs(net.pricefx.server.dto.calculation.ResultMatrix...)
,
addResultMatrixTab(net.pricefx.server.dto.calculation.ResultMatrix)
public ResultHighchart showDataTab()
ResultHighchart
instance, for conveniencepublic boolean getShowDataTab()
public ResultHighchart setDataHeaders(String... headers)
setShowDataTab(true)
headers
- One or more header labels, left to rightResultHighchart
instance, for conveniencepublic List<String> getDataHeaders()
public ResultHighchart setResultMatrixTabs(ResultMatrix... matrices)
ResultMatrix.setTitle()
as this will be used for the
tab label.
Note that:
ResultMatrix
setShowDataTab(true)
matrices
- One or more ResultMatrix instances to display in the tab setResultHighchart
instance, for conveniencesetShowDataTab(boolean)
,
ResultMatrix#setTitle()}
public ResultHighchart addResultMatrixTab(ResultMatrix matrix)
ResultMatrix.setTitle()
as this will be used for the
tab label.
Note that:
ResultMatrix
setShowDataTab(true)
matrices
- One or more ResultMatrix instances to display in the tab setResultHighchart
instance, for conveniencesetShowDataTab(boolean)
,
ResultMatrix#setTitle()}
public List<ResultMatrix> getResultMatrixList()
public String getResultType()
getResultType
in interface ComplexCalculationResult
Copyright © 2019. All rights reserved.