Class TLcdSLDMark

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDMark
All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdSLDMark extends TLcdDataObject
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 Details

  • Constructor Details

    • TLcdSLDMark

      public TLcdSLDMark()
      Creates a new TLcdSLDMark. By default, the mark name is set to SQUARE; the fill and stroke are respectively set to default instances of TLcdSLDFill and TLcdSLDStroke.
    • TLcdSLDMark

      public TLcdSLDMark(String aWellKnownName, TLcdSLDFill aFill, TLcdSLDStroke aStroke)
      Creates a new TLcdSLDMark 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

      public TLcdSLDMark(TLcdDataType aDataType)
      Empty constructor.
  • Method Details

    • getOnlineResourceURI

      public TLcdSLDParameterValue 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 by 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.

      Returns:
      A parameter value that evaluates to a URI of a resource, or null.
      Since:
      2012.1
      See Also:
    • setOnlineResourceURI

      public void setOnlineResourceURI(TLcdSLDParameterValue aURI)
      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 with setWellKnownName(String).

      Parameters:
      aURI - A parameter value that evaluates to a URI of a simple graphic.
      Since:
      2012.1
    • getWellKnownName

      public String getWellKnownName()
      Returns the value of the property that maps to the WellKnownName element.
      Returns:
      the value of the WELL_KNOWN_NAME_PROPERTY property.
    • setWellKnownName

      public void setWellKnownName(String aValue)
      Sets the value of the property that maps to the WellKnownName element.
      Parameters:
      aValue - the value to set for the WELL_KNOWN_NAME_PROPERTY property.
    • getFormat

      public String getFormat()
      Returns the value of the property that maps to the Format element.
      Returns:
      the value of the FORMAT_PROPERTY property.
    • setFormat

      public void setFormat(String aValue)
      Sets the value of the property that maps to the Format element.
      Parameters:
      aValue - the value to set for the FORMAT_PROPERTY property.
    • getFill

      public TLcdSLDFill getFill()
      Returns the value of the property that maps to the Fill 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

      public void setFill(TLcdSLDFill aValue)
      Sets the value of the property that maps to the Fill 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 the FILL_PROPERTY property.
    • getStroke

      public TLcdSLDStroke getStroke()
      Returns the value of the property that maps to the Stroke element.

      The stroke is optional and may thus be null.

      Returns:
      the value of the STROKE_PROPERTY property.
    • setStroke

      public void setStroke(TLcdSLDStroke aValue)
      Sets the value of the property that maps to the Stroke element.

      The stroke is optional and may thus be null.

      Parameters:
      aValue - the value to set for the STROKE_PROPERTY property.