public class TLcdSLDGraphic extends TLcdDataObject
Modifier and Type | Class and Description |
---|---|
static class |
TLcdSLDGraphic.Builder<T>
A builder for SLD graphics.
|
Constructor and Description |
---|
TLcdSLDGraphic()
Empty constructor.
|
TLcdSLDGraphic(TLcdDataType aDataType)
Empty constructor.
|
TLcdSLDGraphic(TLcdSLDParameterValue aOpacity,
TLcdSLDParameterValue aSize,
TLcdSLDParameterValue aRotation,
Object[] aGraphics)
Constructor for given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphic(Object aGraphic)
Adds a TLcdSLDMark or TLcdSLDExternalGraphic to this TLcdSLDGraphic.
|
TLcdSLDAnchorPoint |
getAnchorPoint()
Returns the value of the property that maps to the
AnchorPoint element. |
TLcdSLDExternalGraphic |
getExternalGraphic(int aIndex)
Returns the external graphic at the given index.
|
List<ILcdDataObject> |
getGraphic()
Returns the value of the property that maps to the choice between the
ExternalGraphic and Mark elements. |
Object |
getGraphic(int aIndex)
Gets the graphic at a given position.
|
int |
getGraphicCount()
Returns the marks and external graphics count.
|
TLcdSLDMark |
getMark(int aIndex)
Returns the mark at the given index.
|
TLcdSLDParameterValue |
getOpacity()
Returns the value of the property that maps to the
Opacity element. |
TLcdSLDParameterValue |
getRotation()
Returns the value of the property that maps to the
Rotation element. |
TLcdSLDParameterValue |
getSize()
Returns the value of the property that maps to the
Size element. |
void |
insertGraphicAt(Object aGraphic,
int aIndex)
Inserts a mark or external graphic at a given position.
|
boolean |
isGraphicExternalGraphic(int aIndex)
Checks whether the graphic at a given position is an external graphic.
|
boolean |
isGraphicMark(int aIndex)
Checks whether the graphic at a given position is a mark.
|
static TLcdSLDGraphic.Builder<TLcdSLDGraphic> |
newBuilder()
Creates a new builder with the default values.
|
void |
removeGraphic(Object aGraphic)
Removes a mark or external graphic.
|
void |
setAnchorPoint(TLcdSLDAnchorPoint aValue)
Sets the value of the property that maps to the
AnchorPoint element. |
void |
setOpacity(TLcdSLDParameterValue aValue)
Sets the value of the property that maps to the
Opacity element. |
void |
setRotation(TLcdSLDParameterValue aValue)
Sets the value of the property that maps to the
Rotation element. |
void |
setSize(TLcdSLDParameterValue aValue)
Sets the value of the property that maps to the
Size element. |
public TLcdSLDGraphic()
public TLcdSLDGraphic(TLcdSLDParameterValue aOpacity, TLcdSLDParameterValue aSize, TLcdSLDParameterValue aRotation, Object[] aGraphics)
aOpacity
- the given graphic opacity.aSize
- the given graphic size.aRotation
- the given graphic rotation.aGraphics
- the marks and external graphics.public TLcdSLDGraphic(TLcdDataType aDataType)
public int getGraphicCount()
public void addGraphic(Object aGraphic)
aGraphic
- an instance of TLcdMark or TLcdSLDExternalGraphicpublic void insertGraphicAt(Object aGraphic, int aIndex)
aGraphic
- the mark or external graphic.aIndex
- the index of the given position.public void removeGraphic(Object aGraphic)
aGraphic
- the mark or external graphic to be removed.public boolean isGraphicMark(int aIndex)
aIndex
- the index of the given position.public boolean isGraphicExternalGraphic(int aIndex)
aIndex
- the index of the given position.public Object getGraphic(int aIndex)
aIndex
- the index of the given position.public TLcdSLDMark getMark(int aIndex)
aIndex
- the index of the mark in the collection of all Graphics.isGraphicMark(int)
public TLcdSLDExternalGraphic getExternalGraphic(int aIndex)
aIndex
- the index of the external graphic in the collection of all Graphics.isGraphicExternalGraphic(int)
public static TLcdSLDGraphic.Builder<TLcdSLDGraphic> newBuilder()
public List<ILcdDataObject> getGraphic()
ExternalGraphic
and Mark
elements.
The possible values for this property are instances of java.util.List
with elements of class
GRAPHIC_PROPERTY
property.public TLcdSLDParameterValue getOpacity()
Opacity
element.
The parameter should evaluate to a decimal number between 0 and 1.
OPACITY_PROPERTY
property.public void setOpacity(TLcdSLDParameterValue aValue)
Opacity
element.
The parameter should evaluate to a decimal number between 0 and 1.
aValue
- the value to set for the OPACITY_PROPERTY
property.public TLcdSLDParameterValue getSize()
Size
element.
The size is the absolute height of the graphic, specified in the unit of measure of the symbolizer. The width will be set so that the original aspect ratio is preserved. If no size is set, the graphic will maintain its native size. The parameter should evaluate to a number.
SIZE_PROPERTY
property.public void setSize(TLcdSLDParameterValue aValue)
Size
element.
The size is the absolute height of the graphic, specified in the unit of measure of the symbolizer. The width will be set so that the original aspect ratio is preserved. If no size is set, the graphic will maintain its native size. The parameter should evaluate to a number.
aValue
- the value to set for the SIZE_PROPERTY
property.public TLcdSLDParameterValue getRotation()
Rotation
element.
The parameter should evaluate to a number in degrees, decimals are possible.
ROTATION_PROPERTY
property.public void setRotation(TLcdSLDParameterValue aValue)
Rotation
element.
The parameter should evaluate to a number in degrees, decimals are possible.
aValue
- the value to set for the ROTATION_PROPERTY
property.public TLcdSLDAnchorPoint getAnchorPoint()
AnchorPoint
element.
An "AnchorPoint" identifies the location inside of a text label to use an an 'anchor' for positioning it relative to a point geometry.
ANCHOR_POINT_PROPERTY
property.public void setAnchorPoint(TLcdSLDAnchorPoint aValue)
AnchorPoint
element.
An "AnchorPoint" identifies the location inside of a text label to use an an 'anchor' for positioning it relative to a point geometry.
aValue
- the value to set for the ANCHOR_POINT_PROPERTY
property.