Class TLcdSLDGXYPainterFactory

java.lang.Object
com.luciad.ogc.sld.view.gxy.ALcdSLDGXYPainterFactory
com.luciad.ogc.sld.view.gxy.TLcdSLDGXYPainterFactory
All Implemented Interfaces:
ILcdCloneable, Cloneable

public class TLcdSLDGXYPainterFactory extends ALcdSLDGXYPainterFactory implements ILcdCloneable
ALcdSLDGXYPainterFactory implementation to create painters for objects that should be rendered according to an SLD style that uses a ILcdSLDSymbolizerPainterFactory for symbolizer painters.
  • Constructor Details

    • TLcdSLDGXYPainterFactory

      public TLcdSLDGXYPainterFactory()
  • Method Details

    • setSymbolizerPainterFactory

      public void setSymbolizerPainterFactory(ILcdSLDSymbolizerPainterFactory aSymbolizerPainterFactory)
      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:
      createFeatureTypeStylePainter in class ALcdSLDGXYPainterFactory
      Parameters:
      aStyle - a TLcdSLDFeatureTypeStyle instance
      aSLDContext - the SLD context
      Returns:
      an ALcdSLDFeatureTypeStylePainter instance
    • createRulePainter

      public ALcdSLDRulePainter createRulePainter(TLcdSLDRule aRule, TLcdSLDContext aSLDContext)
      Creates a TLcdSLDRulePainter. This method calls createSymbolizerPainter for each ALcdSLDSymbolizer defined in the rule.
      Specified by:
      createRulePainter in class ALcdSLDGXYPainterFactory
      Parameters:
      aRule - the SLD rule
      aSLDContext - the SLD context
      Returns:
      an ALcdSLDRulePainter instance
    • createSymbolizerPainter

      public ALcdSLDSymbolizerPainter createSymbolizerPainter(ALcdSLDSymbolizer aSLDSymbolizer, TLcdSLDContext aSLDContext)
      Creates an ALcdSLDSymbolizerPainter using the ILcdSLDSymbolizerPainterFactory set.
      Specified by:
      createSymbolizerPainter in class ALcdSLDGXYPainterFactory
      Parameters:
      aSLDSymbolizer - the symbolizer object
      aSLDContext - the SLD context
      Returns:
      an ALcdSLDSymbolizerPainter instance or null when aSLDSymbolizer is an unknown symbolizer class.
      See Also:
    • clone

      public Object clone()
      Description copied from interface: ILcdCloneable

      Makes Object.clone() public.

      When for example extending from 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:
      clone in interface ILcdCloneable
      Overrides:
      clone in class Object
      See Also: