| org.geotools.styling.Mark
All known Subclasses: org.geotools.styling.MarkImpl,
Mark | public interface Mark extends Symbol(Code) | | A Mark element defines a "shape" which has coloring applied to it.
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:
-
The graphical parameters and their values are derived from SVG/CSS2
standards with names and semantics which are as close as possible.
author: James Macgill version: $Id: Mark.java 25459 2007-05-08 05:19:25Z jgarnett $ |
Method Summary | |
void | accept(StyleVisitor visitor) | Fill | getFill() This parameter defines which fill style to use when rendering the Mark. | Expression | getRotation() | Expression | getSize() | 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.
Allowed names include at least "square", "circle", "triangle", "star",
"cross" and "x" though renderers may draw a different symbol instead if
they don't have a shape for all of these.
The well-known name of a shape. | void | setFill(Fill fill) This parameter defines which fill style to use when rendering the Mark. | void | setRotation(Expression rotation) | void | setSize(Expression size) | 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.
Allowed names include at least "square", "circle", "triangle", "star",
"cross" and "x" though renderers may draw a different symbol instead if
they don't have a shape for all of these.
Parameters: wellKnownName - The well-known name of a shape. |
MARKS_EMPTY | final public static Mark[] MARKS_EMPTY(Code) | | |
getFill | Fill getFill()(Code) | | This parameter defines which fill style to use when rendering the Mark.
the Fill definition to use when rendering the Mark. |
getRotation | Expression getRotation()(Code) | | |
getSize | Expression getSize()(Code) | | |
getStroke | Stroke getStroke()(Code) | | This paramterer defines which stroke style should be used when rendering
the Mark.
The Stroke definition to use when rendering the Mark. |
getWellKnownName | Expression getWellKnownName()(Code) | | This parameter gives the well-known name of the shape of the mark.
Allowed names include at least "square", "circle", "triangle", "star",
"cross" and "x" though renderers may draw a different symbol instead if
they don't have a shape for all of these.
The well-known name of a shape. The default value is "square". |
setFill | void setFill(Fill fill)(Code) | | This parameter defines which fill style to use when rendering the Mark.
Parameters: fill - the Fill definition to use when rendering the Mark. |
setRotation | void setRotation(Expression rotation)(Code) | | |
setSize | void setSize(Expression size)(Code) | | |
setStroke | void setStroke(Stroke stroke)(Code) | | This paramterer defines which stroke style should be used when rendering
the Mark.
Parameters: stroke - The Stroke definition to use when rendering the Mark. |
setWellKnownName | void setWellKnownName(Expression wellKnownName)(Code) | | This parameter gives the well-known name of the shape of the mark.
Allowed names include at least "square", "circle", "triangle", "star",
"cross" and "x" though renderers may draw a different symbol instead if
they don't have a shape for all of these.
Parameters: wellKnownName - The well-known name of a shape. The default valueis "square". |
|
|