Package com.luciad.ogc.sld.view.gxy
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:
-
Field Summary
Fields inherited from interface com.luciad.view.gxy.ILcdGXYLabelPainter
DEFAULT, SELECTEDFields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedALcdSLDFeatureTypeStylePainter(String aFeatureTypeName, ALcdSLDRulePainter[] aRulePainters) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanChecks whether the object complies to the feature type name.clone()Calls super.clone and makes a deep clone of the collection of rule painters.Returns the name of the feature type for which this painter is intended.getRulePainter(int aRulePainterIndex) Returns the rule painter at the given index.intReturns the number of rule painters contained in this feature type style painter.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYLabelPainter
getLocationIndex, getObject, getPossibleLocationCount, labelBoundsSFCT, paintLabel, setLocationIndex, setObjectMethods inherited from interface com.luciad.view.gxy.ILcdGXYLabelPainterProvider
getGXYLabelPainterMethods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
anchorPointSFCT, boundsSFCT, getCursor, getDisplayName, getObject, isTouched, paint, setObject, snapTarget, supportSnapMethods inherited from interface com.luciad.view.gxy.ILcdGXYPainterProvider
getGXYPainterMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
ALcdSLDFeatureTypeStylePainter
protected ALcdSLDFeatureTypeStylePainter(String aFeatureTypeName, ALcdSLDRulePainter[] aRulePainters)
-
-
Method Details
-
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
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
Checks whether the object complies to the feature type name.- Returns:
- true when the object has the right feature type, false otherwise.
-
clone
Calls super.clone and makes a deep clone of the collection of rule painters.- Specified by:
clonein interfaceILcdCloneable- Specified by:
clonein interfaceILcdGXYLabelPainter- Specified by:
clonein interfaceILcdGXYLabelPainterProvider- Specified by:
clonein interfaceILcdGXYPainterProvider- Overrides:
clonein classObject- Returns:
- a clone of the current painter.
- See Also:
-