public class TLcdSLDFill extends TLcdDataObject
Modifier and Type | Field and Description |
---|---|
static String |
CSS_PARAMETER_FILL |
static String |
CSS_PARAMETER_FILL_OPACITY |
Constructor and Description |
---|
TLcdSLDFill()
Empty constructor.
|
TLcdSLDFill(TLcdDataType aDataType)
Empty constructor.
|
TLcdSLDFill(TLcdSLDGraphic aGraphicFill,
TLcdSLDParameterValue aColor,
TLcdSLDParameterValue aOpacity)
Constructor for given parameters.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptParameterName(String aParameterName)
Checks whether the given CSS parameter name would be accepted when set.
|
TLcdDataObject |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
TLcdSLDParameterValue |
getCssParameter(String aParameterName)
returns the value of the parameter with name aName where aName is a field constant of this class.
|
TLcdSLDGraphic |
getGraphicFill()
Returns the value of the property that maps to the
GraphicFill element. |
Object |
getValue(TLcdDataProperty aProperty)
Returns the value of the given property.
|
void |
setCssParameter(String aParameterName,
TLcdSLDParameterValue aParameterValue)
Sets the value of the parameter with name aName where aName is a field constant of this class.
|
void |
setGraphicFill(TLcdSLDGraphic aValue)
Sets the value of the property that maps to the
GraphicFill element. |
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
getDataType, getValue, hasValue, hasValue, setValue, toString
public static final String CSS_PARAMETER_FILL
public static final String CSS_PARAMETER_FILL_OPACITY
public TLcdSLDFill()
public TLcdSLDFill(TLcdSLDGraphic aGraphicFill, TLcdSLDParameterValue aColor, TLcdSLDParameterValue aOpacity)
aGraphicFill
- the given graphic fill.aColor
- the given fill color.aOpacity
- the given fill opacity.public TLcdSLDFill(TLcdDataType aDataType)
public void setCssParameter(String aParameterName, TLcdSLDParameterValue aParameterValue)
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.IllegalArgumentException
- when a parameter with an invalid name is passed.acceptParameterName(String)
public TLcdSLDParameterValue getCssParameter(String aParameterName)
aParameterName
- the parameter for which the value is required.public void setValue(TLcdDataProperty aProperty, Object aValue)
ILcdDataObject
Sets 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 type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public Object getValue(TLcdDataProperty aProperty)
ILcdDataObject
Returns 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 type
or in one of its super types.
Otherwise an IllegalArgumentException
is thrown.
getValue
in interface ILcdDataObject
getValue
in class TLcdDataObject
aProperty
- the property for which the value is to be returnedprotected boolean acceptParameterName(String aParameterName)
aParameterName
- the name of the CSS parameter.public TLcdDataObject clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public TLcdSLDGraphic getGraphicFill()
GraphicFill
element.
A "GraphicFill" defines repeated-graphic filling (stippling) pattern for an area geometry.
GRAPHIC_FILL_PROPERTY
property.public void setGraphicFill(TLcdSLDGraphic aValue)
GraphicFill
element.
A "GraphicFill" defines repeated-graphic filling (stippling) pattern for an area geometry.
aValue
- the value to set for the GRAPHIC_FILL_PROPERTY
property.