public class TLcdSLDMark extends TLcdDataObject
TLcdSLDExternalGraphic
instead.TLcdSLDExternalGraphic
Modifier and Type | Field and Description |
---|---|
static String |
BACKSLASH
Well-known name for a backward diagonal line
|
static String |
CIRCLE
Well-known name for a circle mark
|
static String |
CROSS
Well-known name for a cross mark
|
static String |
HORIZONTAL_LINE
Well-known name for a horizontal line
|
static String |
PLUS
Well-known name for a plus mark
|
static String |
SLASH
Well-known name for a forward diagonal line
|
static String |
SQUARE
Well-known name for a square mark
|
static String |
STAR
Well-known name for a star mark
|
static String |
TIMES
Well-known name for a times mark
|
static String |
TRIANGLE
Well-known name for a triangle mark
|
static String |
VERTICAL_LINE
Well-known name for a vertical line
|
static String |
X
Well-known name for a x mark
|
Constructor and Description |
---|
TLcdSLDMark()
Creates a new
TLcdSLDMark . |
TLcdSLDMark(String aWellKnownName,
TLcdSLDFill aFill,
TLcdSLDStroke aStroke)
Creates a new
TLcdSLDMark for the given well-known mark name, fill and stroke. |
TLcdSLDMark(TLcdDataType aDataType)
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
TLcdSLDFill |
getFill()
Returns the value of the property that maps to the
Fill element. |
String |
getFormat()
Returns the value of the property that maps to the
Format element. |
TLcdSLDParameterValue |
getOnlineResourceURI()
Returns a parameter value that can be evaluated to a URI to a resource.
|
TLcdSLDStroke |
getStroke()
Returns the value of the property that maps to the
Stroke element. |
String |
getWellKnownName()
Returns the value of the property that maps to the
WellKnownName element. |
void |
setFill(TLcdSLDFill aValue)
Sets the value of the property that maps to the
Fill element. |
void |
setFormat(String aValue)
Sets the value of the property that maps to the
Format element. |
void |
setOnlineResourceURI(TLcdSLDParameterValue aURI)
Sets the URI to an online resource that resolves to a simple graphic.
|
void |
setStroke(TLcdSLDStroke aValue)
Sets the value of the property that maps to the
Stroke element. |
void |
setWellKnownName(String aValue)
Sets the value of the property that maps to the
WellKnownName element. |
public static final String SQUARE
public static final String CIRCLE
public static final String TRIANGLE
public static final String STAR
public static final String CROSS
public static final String X
public static final String HORIZONTAL_LINE
public static final String VERTICAL_LINE
public static final String SLASH
public static final String BACKSLASH
public static final String PLUS
public static final String TIMES
public TLcdSLDMark()
TLcdSLDMark
. By default, the mark name is set to SQUARE
; the fill and stroke are respectively set to default instances of
TLcdSLDFill
and TLcdSLDStroke
.public TLcdSLDMark(String aWellKnownName, TLcdSLDFill aFill, TLcdSLDStroke aStroke)
TLcdSLDMark
for the given well-known mark name, fill and stroke.aWellKnownName
- the given well-known name of the mark. See constants defined in this
class.aFill
- the given fill.aStroke
- the given stroke.public TLcdSLDMark(TLcdDataType aDataType)
public TLcdSLDParameterValue getOnlineResourceURI()
getFormat()
.
This value is mutually exclusive with the value returned by
getWellKnownName()
, so this method will return null if a well
known name is set.getFormat()
public void setOnlineResourceURI(TLcdSLDParameterValue aURI)
setWellKnownName(String)
.aURI
- A parameter value that evaluates to a URI of a simple graphic.public String getWellKnownName()
WellKnownName
element.WELL_KNOWN_NAME_PROPERTY
property.public void setWellKnownName(String aValue)
WellKnownName
element.aValue
- the value to set for the WELL_KNOWN_NAME_PROPERTY
property.public String getFormat()
Format
element.FORMAT_PROPERTY
property.public void setFormat(String aValue)
Format
element.aValue
- the value to set for the FORMAT_PROPERTY
property.public TLcdSLDFill getFill()
Fill
element.
A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
FILL_PROPERTY
property.public void setFill(TLcdSLDFill aValue)
Fill
element.
A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
aValue
- the value to set for the FILL_PROPERTY
property.public TLcdSLDStroke getStroke()
Stroke
element.
The stroke is optional and may thus be null.
STROKE_PROPERTY
property.public void setStroke(TLcdSLDStroke aValue)
Stroke
element.
The stroke is optional and may thus be null.
aValue
- the value to set for the STROKE_PROPERTY
property.