public interface Mark extends Mark, Symbol
The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="Mark">
<xsd:annotation>
<xsd:documentation>
A "Mark" specifies a geometric shape and applies coloring to it.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="sld:WellKnownName" minOccurs="0"/>
<xsd:element ref="sld:Fill" minOccurs="0"/>
<xsd:element ref="sld:Stroke" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Renderers can use this information when displaying styled features, though it must be remembered that not all renderers will be able to fully represent strokes as set out by this interface. For example, opacity may not be supported.
Notes:
Modifier and Type | Field and Description |
---|---|
static Mark[] |
MARKS_EMPTY |
SYMBOLS_EMPTY
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
ExternalMark |
getExternalMark()
Mark defined by an external resource.
|
Fill |
getFill()
This parameter defines which fill style to use when rendering the Mark.
|
Stroke |
getStroke()
This paramterer defines which stroke style should be used when rendering the Mark.
|
Expression |
getWellKnownName()
This parameter gives the well-known name of the shape of the mark.
|
void |
setExternalMark(ExternalMark externalMark)
Mark defined by an external resource.
|
void |
setFill(Fill fill)
This parameter defines which fill style to use when rendering the Mark.
|
void |
setStroke(Stroke stroke)
This paramterer defines which stroke style should be used when rendering the Mark.
|
void |
setWellKnownName(Expression wellKnownName)
This parameter gives the well-known name of the shape of the mark.
|
static final Mark[] MARKS_EMPTY
Expression getWellKnownName()
getWellKnownName
in interface Mark
void setWellKnownName(Expression wellKnownName)
wellKnownName
- The well-known name of a shape. The default value is "square".Stroke getStroke()
void setStroke(Stroke stroke)
stroke
- The Stroke definition to use when rendering the Mark.Fill getFill()
void setFill(Fill fill)
fill
- the Fill definition to use when rendering the Mark.ExternalMark getExternalMark()
getExternalMark
in interface Mark
void setExternalMark(ExternalMark externalMark)
externalMark
- Indicate an mark defined by an external resourcevoid accept(StyleVisitor visitor)
Copyright © 1996–2019 Geotools. All rights reserved.