Package com.luciad.ogc.sld.model
Class TLcdSLDFill
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDFill
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and
"fill-opacity".
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.TLcdSLDFill(TLcdDataType aDataType) Empty constructor.TLcdSLDFill(TLcdSLDGraphic aGraphicFill, TLcdSLDParameterValue aColor, TLcdSLDParameterValue aOpacity) Constructor for given parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptParameterName(String aParameterName) Checks whether the given CSS parameter name would be accepted when set.clone()Returns a deep clone of this object.Returns a deep clone of this object.getCssParameter(String aParameterName) returns the value of the parameter with name aName where aName is a field constant of this class.Returns the value of the property that maps to theGraphicFillelement.getValue(TLcdDataProperty aProperty) Returns the value of the given property.voidsetCssParameter(String aParameterName, TLcdSLDParameterValue aParameterValue) Sets the value of the parameter with name aName where aName is a field constant of this class.voidsetGraphicFill(TLcdSLDGraphic aValue) Sets the value of the property that maps to theGraphicFillelement.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, hasValue, hasValue, setValue, toString
-
Field Details
-
CSS_PARAMETER_FILL
- See Also:
-
CSS_PARAMETER_FILL_OPACITY
- See Also:
-
-
Constructor Details
-
TLcdSLDFill
public TLcdSLDFill()Empty constructor. -
TLcdSLDFill
public TLcdSLDFill(TLcdSLDGraphic aGraphicFill, TLcdSLDParameterValue aColor, TLcdSLDParameterValue aOpacity) Constructor for given parameters.- Parameters:
aGraphicFill- the given graphic fill.aColor- the given fill color.aOpacity- the given fill opacity.
-
TLcdSLDFill
Empty constructor.
-
-
Method Details
-
setCssParameter
Sets the value of the parameter with name aName where aName is a field constant of this class. Note that there is no check here of the values passed, since that is not possible when the parameter value type contains an expression.- Parameters:
aParameterName- the name of the CSS parameter, this should be one of the constant field values. Passing another name will cause an IllegalArgumentExceptionaParameterValue- the value that is to be set. Use null to unset the parameter.- Throws:
IllegalArgumentException- when a parameter with an invalid name is passed.- See Also:
-
getCssParameter
returns the value of the parameter with name aName where aName is a field constant of this class.- Parameters:
aParameterName- the parameter for which the value is required.- Returns:
- the value of the requested parameter
-
setValue
Description copied from interface:ILcdDataObjectSets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's typeor in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException.- Specified by:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
getValue
Description copied from interface:ILcdDataObjectReturns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's typeor in one of its super types. Otherwise anIllegalArgumentExceptionis thrown.- Specified by:
getValuein interfaceILcdDataObject- Overrides:
getValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
acceptParameterName
Checks whether the given CSS parameter name would be accepted when set.- Parameters:
aParameterName- the name of the CSS parameter.- Returns:
- true if one of the constant fields of this class: CSS_PARAMETER_FILL or CSS_PARAMETER_FILL_OPACITY.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein classTLcdDataObject- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getGraphicFill
Returns the value of the property that maps to theGraphicFillelement.A "GraphicFill" defines repeated-graphic filling (stippling) pattern for an area geometry.
- Returns:
- the value of the
GRAPHIC_FILL_PROPERTYproperty.
-
setGraphicFill
Sets the value of the property that maps to theGraphicFillelement.A "GraphicFill" defines repeated-graphic filling (stippling) pattern for an area geometry.
- Parameters:
aValue- the value to set for theGRAPHIC_FILL_PROPERTYproperty.
-