org.opengis.style
Interface ExternalMark

All Known Subinterfaces:
ExternalMark
All Known Implementing Classes:
ExternalMarkImpl

public interface ExternalMark

The alternative to a WellKnownName is an external mark format. The MarkIndex allows an individual mark in a mark archive to be selected. An example format for an external mark archive would be a TrueType font file, with MarkIndex being used to select an individual glyph from that file.

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 String getFormat()
          Returns the mime type of the onlineResource/InlineContent
 Icon getInlineContent()
          Returns on inline content.
 int getMarkIndex()
          Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.
 OnLineResource getOnlineResource()
          Returns on online resource defined by an URI.
 

Method Detail

getOnlineResource

@XmlElement(value="OnlineResource")
OnLineResource getOnlineResource()
Returns on online resource defined by an URI. Both OnlineResource and InlineContent can't be null and both can't be set at the same time.

Returns:
OnlineResource or null

getInlineContent

@XmlElement(value="InlineContent")
Icon getInlineContent()
Returns on inline content. Both OnlineResource and InlineContent can't be null and both can't be set at the same time.

Returns:
InlineContent or null

getFormat

@XmlElement(value="Format")
String getFormat()
Returns the mime type of the onlineResource/InlineContent

Returns:
mime type

getMarkIndex

@XmlElement(value="MarkIndex")
int getMarkIndex()
Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.

Returns:
integer

accept

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.