Package com.luciad.ogc.sld.model
Class TLcdSLDMark
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDMark
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
A Mark specifies a geometric shape and applies coloring to it. The shape can
be either a predefined constant, which is referred to as a 'well known name',
or it can be an arbitrary vector graphic that is included inline or loaded
from a file, such as an SVG.
In case you want to use a bitmap graphic, you should use
TLcdSLDExternalGraphic
instead.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Well-known name for a backward diagonal linestatic final String
Well-known name for a circle markstatic final String
Well-known name for a cross markstatic final String
Well-known name for a horizontal linestatic final String
Well-known name for a plus markstatic final String
Well-known name for a forward diagonal linestatic final String
Well-known name for a square markstatic final String
Well-known name for a star markstatic final String
Well-known name for a times markstatic final String
Well-known name for a triangle markstatic final String
Well-known name for a vertical linestatic final String
Well-known name for a x mark -
Constructor Summary
ConstructorDescriptionCreates a newTLcdSLDMark
.TLcdSLDMark
(TLcdDataType aDataType) Empty constructor.TLcdSLDMark
(String aWellKnownName, TLcdSLDFill aFill, TLcdSLDStroke aStroke) Creates a newTLcdSLDMark
for the given well-known mark name, fill and stroke. -
Method Summary
Modifier and TypeMethodDescriptiongetFill()
Returns the value of the property that maps to theFill
element.Returns the value of the property that maps to theFormat
element.Returns a parameter value that can be evaluated to a URI to a resource.Returns the value of the property that maps to theStroke
element.Returns the value of the property that maps to theWellKnownName
element.void
setFill
(TLcdSLDFill aValue) Sets the value of the property that maps to theFill
element.void
Sets the value of the property that maps to theFormat
element.void
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 theStroke
element.void
setWellKnownName
(String aValue) Sets the value of the property that maps to theWellKnownName
element.
-
Field Details
-
SQUARE
Well-known name for a square mark- See Also:
-
CIRCLE
Well-known name for a circle mark- See Also:
-
TRIANGLE
Well-known name for a triangle mark- See Also:
-
STAR
Well-known name for a star mark- See Also:
-
CROSS
Well-known name for a cross mark- See Also:
-
X
Well-known name for a x mark- See Also:
-
HORIZONTAL_LINE
Well-known name for a horizontal line- Since:
- 2023.1
- See Also:
-
VERTICAL_LINE
Well-known name for a vertical line- Since:
- 2023.1
- See Also:
-
SLASH
Well-known name for a forward diagonal line- Since:
- 2023.1
- See Also:
-
BACKSLASH
Well-known name for a backward diagonal line- Since:
- 2023.1
- See Also:
-
PLUS
Well-known name for a plus mark- Since:
- 2023.1
- See Also:
-
TIMES
Well-known name for a times mark- Since:
- 2023.1
- See Also:
-
-
Constructor Details
-
TLcdSLDMark
public TLcdSLDMark()Creates a newTLcdSLDMark
. By default, the mark name is set toSQUARE
; the fill and stroke are respectively set to default instances ofTLcdSLDFill
andTLcdSLDStroke
. -
TLcdSLDMark
Creates a newTLcdSLDMark
for the given well-known mark name, fill and stroke.- Parameters:
aWellKnownName
- the given well-known name of the mark. See constants defined in this class.aFill
- the given fill.aStroke
- the given stroke.
-
TLcdSLDMark
Empty constructor.
-
-
Method Details
-
getOnlineResourceURI
Returns a parameter value that can be evaluated to a URI to a resource. Usually this is a filename, or a URL. The URI should resolve to an image of the format returned bygetFormat()
. This value is mutually exclusive with the value returned bygetWellKnownName()
, so this method will return null if a well known name is set.- Returns:
- A parameter value that evaluates to a URI of a resource, or null.
- Since:
- 2012.1
- See Also:
-
setOnlineResourceURI
Sets the URI to an online resource that resolves to a simple graphic. This URI can be a filename, or a URL. The URI is specified as an SLD parameter value that can be evaluated for a given feature. This property is mutually exclusive with the well known name, so setting it removes anything that is previously set withsetWellKnownName(String)
.- Parameters:
aURI
- A parameter value that evaluates to a URI of a simple graphic.- Since:
- 2012.1
-
getWellKnownName
Returns the value of the property that maps to theWellKnownName
element.- Returns:
- the value of the
WELL_KNOWN_NAME_PROPERTY
property.
-
setWellKnownName
Sets the value of the property that maps to theWellKnownName
element.- Parameters:
aValue
- the value to set for theWELL_KNOWN_NAME_PROPERTY
property.
-
getFormat
Returns the value of the property that maps to theFormat
element.- Returns:
- the value of the
FORMAT_PROPERTY
property.
-
setFormat
Sets the value of the property that maps to theFormat
element.- Parameters:
aValue
- the value to set for theFORMAT_PROPERTY
property.
-
getFill
Returns the value of the property that maps to theFill
element.A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
- Returns:
- the value of the
FILL_PROPERTY
property.
-
setFill
Sets the value of the property that maps to theFill
element.A "Fill" specifies the pattern for filling an area geometry. The allowed CssParameters are: "fill" (color) and "fill-opacity".
- Parameters:
aValue
- the value to set for theFILL_PROPERTY
property.
-
getStroke
Returns the value of the property that maps to theStroke
element.The stroke is optional and may thus be null.
- Returns:
- the value of the
STROKE_PROPERTY
property.
-
setStroke
Sets the value of the property that maps to theStroke
element.The stroke is optional and may thus be null.
- Parameters:
aValue
- the value to set for theSTROKE_PROPERTY
property.
-