Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDGXYPainterFactory
java.lang.Object
com.luciad.ogc.sld.view.gxy.ALcdSLDGXYPainterFactory
com.luciad.ogc.sld.view.gxy.TLcdSLDGXYPainterFactory
- All Implemented Interfaces:
ILcdCloneable,Cloneable
ALcdSLDGXYPainterFactory implementation to create painters for objects
that should be rendered according to an SLD style that uses
a ILcdSLDSymbolizerPainterFactory for symbolizer painters.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()MakesObject.clone()public.createFeatureTypeStylePainter(TLcdSLDFeatureTypeStyle aStyle, TLcdSLDContext aSLDContext) Create a TLcdSLDFeatureTypeStylePainter.createRulePainter(TLcdSLDRule aRule, TLcdSLDContext aSLDContext) Creates a TLcdSLDRulePainter.createSymbolizerPainter(ALcdSLDSymbolizer aSLDSymbolizer, TLcdSLDContext aSLDContext) Creates an ALcdSLDSymbolizerPainter using theILcdSLDSymbolizerPainterFactoryset.voidsetSymbolizerPainterFactory(ILcdSLDSymbolizerPainterFactory aSymbolizerPainterFactory) Set an ILcdSLDSymbolizerPainterFactory on this class.
-
Constructor Details
-
TLcdSLDGXYPainterFactory
public TLcdSLDGXYPainterFactory()
-
-
Method Details
-
setSymbolizerPainterFactory
Set an ILcdSLDSymbolizerPainterFactory on this class.- Parameters:
aSymbolizerPainterFactory- the ILcdSLDSymbolizerPainterFactory to use.
-
createFeatureTypeStylePainter
public ALcdSLDFeatureTypeStylePainter createFeatureTypeStylePainter(TLcdSLDFeatureTypeStyle aStyle, TLcdSLDContext aSLDContext) Create a TLcdSLDFeatureTypeStylePainter. This method calls createRulePainter for each TLcdSLDRule defined in aStyle.- Specified by:
createFeatureTypeStylePainterin classALcdSLDGXYPainterFactory- Parameters:
aStyle- a TLcdSLDFeatureTypeStyle instanceaSLDContext- the SLD context- Returns:
- an ALcdSLDFeatureTypeStylePainter instance
-
createRulePainter
Creates a TLcdSLDRulePainter. This method calls createSymbolizerPainter for each ALcdSLDSymbolizer defined in the rule.- Specified by:
createRulePainterin classALcdSLDGXYPainterFactory- Parameters:
aRule- the SLD ruleaSLDContext- the SLD context- Returns:
- an ALcdSLDRulePainter instance
-
createSymbolizerPainter
public ALcdSLDSymbolizerPainter createSymbolizerPainter(ALcdSLDSymbolizer aSLDSymbolizer, TLcdSLDContext aSLDContext) Creates an ALcdSLDSymbolizerPainter using theILcdSLDSymbolizerPainterFactoryset.- Specified by:
createSymbolizerPainterin classALcdSLDGXYPainterFactory- Parameters:
aSLDSymbolizer- the symbolizer objectaSLDContext- the SLD context- Returns:
- an ALcdSLDSymbolizerPainter instance or null when aSLDSymbolizer is an unknown symbolizer class.
- See Also:
-
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.clone()public.java.lang.Object, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-