|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etools.pd.widget.viewer.GraphicDocumentGenerator | +--com.ibm.etools.pd.widget.viewer.SVGDocumentGenerator | +--com.ibm.etools.pd.widget.viewer.SVGPieChart
SVGPieChart
generates a pie chart graphic DOM using Scalable Vector Graphics (SVG).
Field Summary |
Fields inherited from class com.ibm.etools.pd.widget.viewer.SVGDocumentGenerator |
svgRoot |
Fields inherited from class com.ibm.etools.pd.widget.viewer.GraphicDocumentGenerator |
configDocument, dataDocument, generatedDocument, graphicColourPalette, graphicColourPaletteName, graphicFont, graphicHeight, graphicLegendTitle, graphicTimestampPrefix, graphicTitle, graphicType, graphicWidth, preferencesPage, preferencesPageHeight, preferencesPageWidth, resourcesFolder, suppressLegend |
Fields inherited from interface com.ibm.etools.pd.widget.viewer.IDataInputConstants |
ACTUAL_RATE, CATEGORIZATION, CATEGORY, CONFIGURATION, CONTEXT, DATAPOINT, DATASET, DATAUPDATE, DESCRIPTION, EMPTY_STRING, FONT, HEIGHT, ID, LEGEND_TITLE, MAXVALUE, MINVALUE, NAME, PERCENTAGE_OF_DATAPOINT_TOTAL, POSITION, RANGE, RATE_DEFINITION, SEGMENT_MARKER, SUMMARY, SUPPRESS_LEGEND, TIMESTAMP, TIMESTAMP_PREFIX, TITLE, TOTAL, TOTAL_TITLE, VALUE, VALUE_TITLE, WIDTH, X_TITLE, Y_TITLE |
Constructor Summary | |
SVGPieChart()
Sole constructor. |
Method Summary | |
protected void |
addJavaScriptFunctions(org.w3c.dom.Element parent,
int numberOfSets)
Adds the JavaScript functions required by this object's graphic. |
protected void |
addTitles(org.w3c.dom.Element parent,
java.util.Hashtable input)
Adds the titles to the SVG graphic. |
org.w3c.dom.Document |
generateGraphicDocument()
In addition to those thrown by PieChartDataRetriever , this
method throws DataInputProcessingException for codes MISSING_TOTALS,
MISSING_PERCENTAGES . |
void |
setConfigDocument(org.w3c.dom.Document newConfigDocument)
Sets the document which is to be used for configuration data retrieval and then retrieves the configuration data from that document. |
void |
setDataDocument(org.w3c.dom.Document newDataDocument)
Sets the document which is to be used for data update retrieval and then, if configDocument has not been
set, retrieves the configuration data from that document. |
Methods inherited from class com.ibm.etools.pd.widget.viewer.SVGDocumentGenerator |
addBorder, addLabel, addLegend, addLegendShapes, addPreferenceIcon, addTimeStamp, addTitle, createDOMTextElement, createGraphicColourPalettes, createSvgDocument, getPreferencesPage, getPreferencesPageHeight, getPreferencesPageWidth, setGraphicFont, setGraphicHeight, setGraphicWidth, setPreferencesPage, setPreferencesPageHeight, setPreferencesPageWidth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SVGPieChart()
Method Detail |
public void setConfigDocument(org.w3c.dom.Document newConfigDocument) throws DataInputProcessingException
setConfigDocument
in interface IGraphicDocumentGenerator
setConfigDocument
in class GraphicDocumentGenerator
DataInputProcessingException
IGraphicDocumentGenerator.setConfigDocument(Document)
public void setDataDocument(org.w3c.dom.Document newDataDocument) throws DataInputProcessingException
configDocument
has not been
set, retrieves the configuration data from that document.
setDataDocument
in interface IGraphicDocumentGenerator
setDataDocument
in class GraphicDocumentGenerator
DataInputProcessingException
IGraphicDocumentGenerator.setDataDocument(Document)
public org.w3c.dom.Document generateGraphicDocument() throws DataInputProcessingException
PieChartDataRetriever
, this
method throws DataInputProcessingException
for codes MISSING_TOTALS,
MISSING_PERCENTAGES
.
generateGraphicDocument
in interface IGraphicDocumentGenerator
generateGraphicDocument
in class GraphicDocumentGenerator
DataInputProcessingException
IGraphicDocumentGenerator.generateGraphicDocument()
protected void addJavaScriptFunctions(org.w3c.dom.Element parent, int numberOfSets)
SVGDocumentGenerator
addJavaScriptFunctions
in class SVGDocumentGenerator
parent
- element to which the script-related elements are appendednumberOfSets
- the number of data sets in the inputprotected void addTitles(org.w3c.dom.Element parent, java.util.Hashtable input)
parent
- element to which the title-related elements are appendedinput
- the titles
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |