|
HATS 9.0.0 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.transform.widgets.Widget
com.ibm.hats.transform.widgets.GraphWidget
public class GraphWidget
GraphWidget is the parent class for Widgets which render TableComponentElements as visual graphs. Custom widget developers should not extend.
TableComponentElement| Field Summary | |
|---|---|
protected File |
bgImageFile
|
static String |
CLASS_NAME
|
protected String[] |
dataSetColors
|
protected String[] |
dataSetLabels
|
protected List |
dataSets
|
protected File |
imagePath
|
protected String |
imagePathName
|
static NumberFormat |
numberFormat
|
protected com.ibm.hats.transform.IPathInfo |
pathInfo
|
protected boolean |
pathsFound
|
protected String[] |
pointLabels
|
static String |
PROPERTY_ALTERNATE_TEXT
|
static String |
PROPERTY_BACKGROUND_IMAGE
|
static String |
PROPERTY_BACKGROUND_ROOT
|
static String |
PROPERTY_DATA_SET_LABEL_INDEX
|
static String |
PROPERTY_DATA_SET_NUMBER
|
static String |
PROPERTY_DATA_SOURCE_N
|
static String |
PROPERTY_DATA_SOURCE_N_COLOR
|
static String |
PROPERTY_DATA_SOURCE_N_LEGEND
|
static String |
PROPERTY_EXTRACT_DATA_SET_LABELS
|
static String |
PROPERTY_EXTRACT_LABELS
|
static String |
PROPERTY_EXTRACT_SOURCE
|
static String |
PROPERTY_LABEL_INDEX
|
static String |
PROPERTY_SET_BLANKS_TO_ZERO
|
static String |
SOURCE_COL
|
static String |
SOURCE_ROW
|
protected TableComponentElement |
tce
|
| Fields inherited from class com.ibm.hats.transform.widgets.Widget |
|---|
componentElements, contextAttributes, settings |
| Fields inherited from interface com.ibm.hats.transform.graph.GraphData |
|---|
CLASSNAME |
| Fields inherited from interface com.ibm.hats.common.ICustomPropertySupplier2 |
|---|
CLASSNAME |
| Constructor Summary | |
|---|---|
GraphWidget(ComponentElement[] componentElements,
Properties settings)
|
|
GraphWidget(ComponentElement[] componentElements,
Properties settings,
boolean makeSettings)
|
|
| Method Summary | |
|---|---|
static Properties |
buildSettings(ComponentElement[] cea,
Properties settings)
|
protected List |
convertToValue(List dataSets)
Determines how the String data sets are converted to values Can be overridden if necessary. |
protected double |
convertToValue(String rawData)
Determines how a single String is converted into a value Can be overridden if necessary. |
StringBuffer |
drawHTML()
|
String |
getAlternateText()
|
File |
getBGImageFile()
|
Class |
getCustomComposite()
Returns a Class object (assignable from com.ibm.hats.studio.composites.BasePropertiesComposite) if a
custom composite is to be used to represent the customizable properties for this object or null if dynamic GUI is to be used. |
String |
getCustomCompositeName()
|
Vector |
getCustomProperties(int iPageNumber,
Properties properties,
ResourceBundle bundle)
Returns a list of this object's custom properties. |
String[] |
getDataPointLabels()
Find labels for points along the data path. |
String[] |
getDataSetColors()
Get the data set colors into a list, for more convenient access. |
String[] |
getDataSetLabels()
Get the labels for the graph legend. |
int |
getDataSetLength()
|
List |
getDataSets()
Get the data sets in the form of a List of String[]s |
File |
getGraphImagePath()
|
String |
getLocalImagePathName()
|
protected int |
getMaxDataPointIndex()
|
protected int |
getMaxDataSetIndex()
|
int |
getNumDataSets()
|
int |
getPropertyPageCount()
Returns the number of property pages associated with this object. |
static String |
getRandomColor(int dataSetNumber)
|
String |
getVirtualImagePathName()
|
static boolean |
moreSettingsRequired(Properties settings)
|
void |
setDataPointLabels(String[] pointLabels)
|
void |
setDataSetColors(String[] dataSetColors)
|
void |
setDataSetLabels(String[] dataSetLabels)
|
void |
setDataSets(List dataSets)
|
void |
updateDataInfo()
|
| Methods inherited from class com.ibm.hats.transform.widgets.Widget |
|---|
convertBidi, draw, getComponentElements, getContextAttribute, getContextAttributes, getCustomPropertiesBiDi, getDefaultValues, getSettings, insertAlign, insertDir, newInstance, setComponentElements, setContextAttribute, setContextAttributes, setSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.hats.transform.graph.GraphData |
|---|
convertBidi |
| Methods inherited from interface com.ibm.hats.common.ICustomPropertySupplier |
|---|
getDefaultValues |
| Field Detail |
|---|
public static final String CLASS_NAME
public static final String PROPERTY_DATA_SET_NUMBER
public static final String PROPERTY_EXTRACT_SOURCE
public static final String PROPERTY_BACKGROUND_IMAGE
public static final String PROPERTY_BACKGROUND_ROOT
public static final String PROPERTY_EXTRACT_LABELS
public static final String PROPERTY_LABEL_INDEX
public static final String PROPERTY_EXTRACT_DATA_SET_LABELS
public static final String PROPERTY_DATA_SET_LABEL_INDEX
public static final String PROPERTY_DATA_SOURCE_N
public static final String PROPERTY_DATA_SOURCE_N_COLOR
public static final String PROPERTY_DATA_SOURCE_N_LEGEND
public static final String PROPERTY_ALTERNATE_TEXT
public static final String PROPERTY_SET_BLANKS_TO_ZERO
public static final String SOURCE_ROW
public static final String SOURCE_COL
public static final NumberFormat numberFormat
protected TableComponentElement tce
protected com.ibm.hats.transform.IPathInfo pathInfo
protected File imagePath
protected File bgImageFile
protected String imagePathName
protected boolean pathsFound
protected List dataSets
protected String[] dataSetLabels
protected String[] pointLabels
protected String[] dataSetColors
| Constructor Detail |
|---|
public GraphWidget(ComponentElement[] componentElements,
Properties settings)
public GraphWidget(ComponentElement[] componentElements,
Properties settings,
boolean makeSettings)
| Method Detail |
|---|
public List getDataSets()
getDataSets in interface com.ibm.hats.transform.graph.GraphDatapublic void setDataSets(List dataSets)
setDataSets in interface com.ibm.hats.transform.graph.GraphDatapublic String[] getDataSetLabels()
getDataSetLabels in interface com.ibm.hats.transform.graph.GraphDatapublic void setDataSetLabels(String[] dataSetLabels)
setDataSetLabels in interface com.ibm.hats.transform.graph.GraphDatapublic String[] getDataPointLabels()
getDataPointLabels in interface com.ibm.hats.transform.graph.GraphDatapublic void setDataPointLabels(String[] pointLabels)
setDataPointLabels in interface com.ibm.hats.transform.graph.GraphDatapublic String[] getDataSetColors()
getDataSetColors in interface com.ibm.hats.transform.graph.GraphDatapublic void setDataSetColors(String[] dataSetColors)
setDataSetColors in interface com.ibm.hats.transform.graph.GraphDatapublic File getGraphImagePath()
public File getBGImageFile()
public String getVirtualImagePathName()
public String getLocalImagePathName()
public String getAlternateText()
public int getDataSetLength()
public int getNumDataSets()
protected int getMaxDataSetIndex()
protected int getMaxDataPointIndex()
public static boolean moreSettingsRequired(Properties settings)
public static Properties buildSettings(ComponentElement[] cea,
Properties settings)
protected List convertToValue(List dataSets)
protected double convertToValue(String rawData)
public Vector getCustomProperties(int iPageNumber,
Properties properties,
ResourceBundle bundle)
ICustomPropertySuppliercom.ibm.hats.common.HCustomProperty.
getCustomProperties in interface ICustomPropertySuppliergetCustomProperties in class WidgetiPageNumber - page number containing desired propertiesproperties - existing values for properties defined herebundle - ResourceBundle containing NLS descriptions for the properties
HCustomPropertypublic Class getCustomComposite()
ICustomPropertySupplierClass object (assignable from com.ibm.hats.studio.composites.BasePropertiesComposite) if a
custom composite is to be used to represent the customizable properties for this object or null if dynamic GUI is to be used.
Note: this function only applies to HATS Studio
getCustomComposite in interface ICustomPropertySuppliergetCustomComposite in class WidgetBasePropertiesComposite) or null if dynamic GUI should be usedBasePropertiesCompositepublic String getCustomCompositeName()
getCustomCompositeName in interface com.ibm.hats.common.ICustomPropertySupplier2public int getPropertyPageCount()
ICustomPropertySupplierNote: Currently only 0 or 1 pages are supported.
getPropertyPageCount in interface ICustomPropertySuppliergetPropertyPageCount in class Widgetpublic static String getRandomColor(int dataSetNumber)
public void updateDataInfo()
public StringBuffer drawHTML()
|
HATS 9.0.0 (201308041338) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||