Package com.luciad.ogc.sld.model
Class TLcdSLDExternalGraphic
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDExternalGraphic
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
An ExternalGraphic gives a reference to an external raster or vector
graphical object.
An alternative is
TLcdSLDMark
which allows the use of vector graphics
with customizable stroke and fill colors.-
Constructor Summary
ConstructorDescriptionEmpty constructor.TLcdSLDExternalGraphic
(TLcdDataType aDataType) Empty constructor.TLcdSLDExternalGraphic
(TLcdSLDOnlineResource aOnlineResource, String aFormat) Constructor for given online resource and format. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theFormat
element.Returns the inline content of the graphic.Returns the online location of the graphic.void
Sets the value of the property that maps to theFormat
element.void
setInlineContent
(TLcdSLDInlineContent aInlineContent) Sets the inline content of the graphicvoid
setOnlineResource
(TLcdSLDOnlineResource aOnlineResource) Sets the online location of the graphic
-
Constructor Details
-
TLcdSLDExternalGraphic
public TLcdSLDExternalGraphic()Empty constructor. -
TLcdSLDExternalGraphic
Constructor for given online resource and format. The online resource's location can optionally include variables of the type${propertyName}
, withpropertyName
referring to a property of the feature(s) to be styled. These variables are resolved at runtime, enabling dynamic icon locations based on feature properties.- Parameters:
aOnlineResource
- the online location of the graphic.aFormat
- the image format f.i. "image/jpeg".
-
TLcdSLDExternalGraphic
Empty constructor.
-
-
Method Details
-
getOnlineResource
Returns the online location of the graphic.- Returns:
- the online location of the graphic.
-
setOnlineResource
Sets the online location of the graphic- Parameters:
aOnlineResource
- the online location of the graphic
-
getInlineContent
Returns the inline content of the graphic.- Returns:
- the inline content of the graphic.
-
setInlineContent
Sets the inline content of the graphic- Parameters:
aInlineContent
- the inline content of the graphic
-
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.
-