Class ALcdSLDFeatureTypeStylePainter

java.lang.Object
com.luciad.ogc.sld.view.gxy.ALcdSLDFeatureTypeStylePainter
All Implemented Interfaces:
ILcdCloneable, ILcdPropertyChangeSource, ILcdGXYLabelPainter, ILcdGXYLabelPainterProvider, ILcdGXYPainter, ILcdGXYPainterProvider, Serializable, Cloneable
Direct Known Subclasses:
TLcdSLDFeatureTypeStylePainter

public abstract class ALcdSLDFeatureTypeStylePainter extends Object implements ILcdGXYPainter, ILcdGXYPainterProvider, ILcdGXYLabelPainter, ILcdGXYLabelPainterProvider, Cloneable
Abstract class that contains the information to implement a painter for objects that should be rendered according to a feature type style. It contains a collection of rule painters and should check whether an object complies to the feature type name.
See Also:
  • Constructor Details

    • ALcdSLDFeatureTypeStylePainter

      protected ALcdSLDFeatureTypeStylePainter(String aFeatureTypeName, ALcdSLDRulePainter[] aRulePainters)
  • Method Details

    • getFeatureTypeName

      public String getFeatureTypeName()
      Returns the name of the feature type for which this painter is intended.
      Returns:
      the name of the feature type for which this painter is intended.
    • getRulePainterCount

      public int getRulePainterCount()
      Returns the number of rule painters contained in this feature type style painter. This should comply to the number of rules that the feature type style that this painter represents contains.
      Returns:
      the number of rule painters contained in this feature type style painter.
    • getRulePainter

      public ALcdSLDRulePainter getRulePainter(int aRulePainterIndex)
      Returns the rule painter at the given index. The rule painter at the given index should comply to the rule at the same index that the feature type style that this painter represents contains.
      Parameters:
      aRulePainterIndex - the index of the rule painter to retrieve.
      Returns:
      the rule painter at the given index.
    • accept

      protected abstract boolean accept(Object aObject)
      Checks whether the object complies to the feature type name.
      Returns:
      true when the object has the right feature type, false otherwise.
    • clone

      public Object clone()
      Calls super.clone and makes a deep clone of the collection of rule painters.
      Specified by:
      clone in interface ILcdCloneable
      Specified by:
      clone in interface ILcdGXYLabelPainter
      Specified by:
      clone in interface ILcdGXYLabelPainterProvider
      Specified by:
      clone in interface ILcdGXYPainterProvider
      Overrides:
      clone in class Object
      Returns:
      a clone of the current painter.
      See Also: