schmitzm.jfree.feature.style
Class FeatureChartStyleXMLFactory
java.lang.Object
schmitzm.jfree.chart.style.ChartStyleXMLFactory<FeatureChartStyle>
schmitzm.jfree.feature.style.FeatureChartStyleXMLFactory
public class FeatureChartStyleXMLFactory
- extends ChartStyleXMLFactory<FeatureChartStyle>
This class defines a factory to create a chart style from XML
specialized for FeatureCollection
.
- Version:
- 1.0
- Author:
- Martin Schmitz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureChartStyleXMLFactory
public FeatureChartStyleXMLFactory()
applyStyleFromXML
public void applyStyleFromXML(FeatureChartStyle chartStyle,
Element element)
- Applies the chart style definition from XML (except the type and id!!)
to an existing
ChartStyle
object.
- Overrides:
applyStyleFromXML
in class ChartStyleXMLFactory<FeatureChartStyle>
- Parameters:
chartStyle
- an existing chart style (null
not permitted!)element
- element to read the properties from
createDefaultChartStyle
public FeatureChartStyle createDefaultChartStyle(String id,
ChartType type)
- Creates a default style for a chart type.
- Overrides:
createDefaultChartStyle
in class ChartStyleXMLFactory<FeatureChartStyle>
- Parameters:
id
- a (unique) ID for the styletype
- a chart type
createElementFromStyle
public Element createElementFromStyle(FeatureChartStyle style,
String rootElementName)
- Creates a XML
Element
representing the FeatureChartStylee
.
- Overrides:
createElementFromStyle
in class ChartStyleXMLFactory<FeatureChartStyle>
- Parameters:
style
- style to create an element forrootElementName
- name for the root element (if null
"ChartType" is
used)