schmitzm.jfree.feature.style
Class FeatureChartStyleXMLFactory

java.lang.Object
  extended by schmitzm.jfree.chart.style.ChartStyleXMLFactory<FeatureChartStyle>
      extended by 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

Constructor Summary
FeatureChartStyleXMLFactory()
           
 
Method Summary
 void applyStyleFromXML(FeatureChartStyle chartStyle, Element element)
          Applies the chart style definition from XML (except the type and id!!
 FeatureChartStyle createDefaultChartStyle(String id, ChartType type)
          Creates a default style for a chart type.
 Element createElementFromStyle(FeatureChartStyle style, String rootElementName)
          Creates a XML Element representing the FeatureChartStylee.
 
Methods inherited from class schmitzm.jfree.chart.style.ChartStyleXMLFactory
addChildToElement, addChildToElement, createAxisStyleFromXML, createLabelStyleFromXML, createPlotStyleFromXML, createRendererStyleFromXML, createStyleFromXML, createStyleFromXML, writeStyleToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureChartStyleXMLFactory

public FeatureChartStyleXMLFactory()
Method Detail

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 style
type - 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 for
rootElementName - name for the root element (if null "ChartType" is used)