Interface Mark

  • All Superinterfaces:
    GraphicalSymbol

    @XmlElement("Mark")
    public interface Mark
    extends GraphicalSymbol
    Indicate that one of a few predefined shapes will be drawn at the points of the geometry.
    Since:
    GeoAPI 2.2
    • Method Detail

      • getWellKnownName

        @XmlElement("WellKnownName")
        Expression getWellKnownName()
        Returns the expression whose value will indicate the symbol to draw. The WellKnownName element gives the well-known name of the shape of the mark. Allowed values include at least “square”, “circle”, “triangle”, “star”, “cross”, and “x”, though map servers may draw a different symbol instead if they don't have a shape for all of these. The default WellKnownName is “square”. Renderings of these marks may be made solid or hollow depending on Fill and Stroke elements. if the WellKnowname is null, check the ExternalMark before using the default square symbol. Both WellKnowName and ExternalMark canot be set, but both can be null. If none are set then the default square symbol is used.
        Returns:
        Expression or null
      • getExternalMark

        ExternalMark getExternalMark()
        The alternative to a WellKnownName is an external mark format. See ExternalMark for details. Both WellKnowName and ExternalMark canot be set, but both can be null. If none are set then the default square symbol is used.
        Returns:
        ExternalMark or null
      • getFill

        @XmlElement("Fill")
        Fill getFill()
        Returns the object that indicates how the mark should be filled. Null means no fill.
        Returns:
        Fill or null
      • getStroke

        @XmlElement("Stroke")
        Stroke getStroke()
        Returns the object that indicates how the edges of the mark will be drawn. Null means that the edges will not be drawn at all.
        Returns:
        stroke or null
      • accept

        Object accept​(StyleVisitor visitor,
                      Object extraData)
        calls the visit method of a StyleVisitor
        Parameters:
        visitor - the style visitor