public abstract class AbstractChartFactory extends Object implements IChartFactory
Modifier and Type | Class and Description |
---|---|
static class |
AbstractChartFactory.MinMax |
Modifier and Type | Field and Description |
---|---|
protected Float |
alpha |
protected static String |
AXIS_COLOR_DEFAULT |
protected static String |
AXIS_GRID_COLOR_DEFAULT |
protected String |
baseURLTemplate |
protected static String |
CATEGORY_TYPE |
protected ofc4j.model.Chart |
chart |
protected org.dom4j.Node |
chartNode |
protected static String |
COLOR_NODE_LOC |
protected ArrayList<String> |
colors |
protected static String[] |
COLORS_DEFAULT |
String[] |
columnHeaders |
org.pentaho.commons.connection.IPentahoResultSet |
data |
protected String |
datasetType |
protected ArrayList<ofc4j.model.elements.Element> |
elements |
boolean |
hasColumnHeaders |
boolean |
hasRowHeaders |
protected static String |
HORIZONTAL_ORIENTATION |
protected String |
orientation |
protected static String |
ORIENTATION_DEFAULT |
protected static String |
RANGE_STEPS_NODE_LOC |
String[] |
rowHeaders |
protected String |
tooltipText |
protected static String |
VERTICAL_ORIENTATION |
protected static String |
XY_TYPE |
protected static String |
XYZ_TYPE |
Constructor and Description |
---|
AbstractChartFactory() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildCSSString(String fontfamily,
String fontsize,
String fontweight,
String fontstyle) |
protected String |
buildCSSStringFromNode(org.dom4j.Node n) |
String |
convertToJson()
generate ofc json
|
protected abstract void |
createElements() |
protected String |
getColor(int i) |
protected int |
getColumnCount() |
protected String |
getColumnHeader(int c) |
static String |
getNodeValue(org.dom4j.Node parent,
String node) |
AbstractChartFactory.MinMax |
getRangeMinMax() |
protected int |
getRowCount() |
protected String |
getRowHeader(int r) |
static String |
getValue(org.dom4j.Node n) |
protected Object |
getValueAt(int r,
int c) |
void |
setChartNode(org.dom4j.Node chartNode)
set the xml chart definition
|
void |
setData(org.pentaho.commons.connection.IPentahoResultSet data)
set the result set to render
|
void |
setLog(org.apache.commons.logging.Log log)
set the logger
|
protected void |
setupColors()
Setup colors for the series and also background
|
ofc4j.model.axis.Axis |
setupDomain() |
void |
setupOnclick() |
ofc4j.model.axis.Axis |
setupRange() |
protected void |
setupStyles() |
protected void |
setupTitles() |
void |
validateData() |
protected static final String COLOR_NODE_LOC
protected static final String RANGE_STEPS_NODE_LOC
protected static final String HORIZONTAL_ORIENTATION
protected static final String VERTICAL_ORIENTATION
protected static final String CATEGORY_TYPE
protected static final String XY_TYPE
protected static final String XYZ_TYPE
protected static final String AXIS_GRID_COLOR_DEFAULT
protected static final String AXIS_COLOR_DEFAULT
protected static final String ORIENTATION_DEFAULT
protected static final String[] COLORS_DEFAULT
protected ofc4j.model.Chart chart
protected ArrayList<ofc4j.model.elements.Element> elements
protected org.dom4j.Node chartNode
public String[] rowHeaders
public String[] columnHeaders
public org.pentaho.commons.connection.IPentahoResultSet data
public boolean hasRowHeaders
public boolean hasColumnHeaders
protected String datasetType
protected String orientation
protected String baseURLTemplate
protected String tooltipText
protected Float alpha
protected abstract void createElements()
protected void setupStyles()
public void setChartNode(org.dom4j.Node chartNode)
IChartFactory
setChartNode
in interface IChartFactory
chartNode
- chart definitionpublic void setLog(org.apache.commons.logging.Log log)
IChartFactory
setLog
in interface IChartFactory
log
- loggerpublic void validateData()
public String convertToJson()
IChartFactory
convertToJson
in interface IChartFactory
protected void setupTitles()
protected void setupColors()
public ofc4j.model.axis.Axis setupDomain()
public AbstractChartFactory.MinMax getRangeMinMax()
public ofc4j.model.axis.Axis setupRange()
public void setupOnclick()
public void setData(org.pentaho.commons.connection.IPentahoResultSet data)
IChartFactory
setData
in interface IChartFactory
data
- result setprotected int getColumnCount()
protected int getRowCount()
protected String getRowHeader(int r)
protected String getColumnHeader(int c)
protected Object getValueAt(int r, int c)
protected String buildCSSStringFromNode(org.dom4j.Node n)
protected String buildCSSString(String fontfamily, String fontsize, String fontweight, String fontstyle)
protected String getColor(int i)
public static String getValue(org.dom4j.Node n)
Copyright © 2020 Hitachi Vantara. All rights reserved.