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, SELECTED
Fields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
-
Constructor Summary
ModifierConstructorDescriptionprotected
ALcdSLDFeatureTypeStylePainter
(String aFeatureTypeName, ALcdSLDRulePainter[] aRulePainters) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
Checks 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.int
Returns 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, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYLabelPainter
getLocationIndex, getObject, getPossibleLocationCount, labelBoundsSFCT, paintLabel, setLocationIndex, setObject
Methods inherited from interface com.luciad.view.gxy.ILcdGXYLabelPainterProvider
getGXYLabelPainter
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
anchorPointSFCT, boundsSFCT, getCursor, getDisplayName, getObject, isTouched, paint, setObject, snapTarget, supportSnap
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainterProvider
getGXYPainter
Methods 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:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYLabelPainter
- Specified by:
clone
in interfaceILcdGXYLabelPainterProvider
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of the current painter.
- See Also:
-