Package org.geotools.api.style
Interface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitorString
getFormat()
Mime type of the onlineResource/InlineContentIcon
getInlineContent()
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()
Online resource defined by an URI.void
setFormat(String mimeType)
void
setInlineContent(Icon inline)
Icon to use for inline content.void
setMarkIndex(int markIndex)
Mark index used to specify true type font character; or frame of an animated gif.void
setOnlineResource(OnLineResource resource)
-
-
-
Method Detail
-
getOnlineResource
OnLineResource getOnlineResource()
Online resource defined by an URI.Only one of OnlineResource or InlineContent can be supplied.
- Returns:
- OnlineResource or
null
-
setOnlineResource
void setOnlineResource(OnLineResource resource)
- Parameters:
resource
- Online resource with format defined by getFormat()
-
getInlineContent
Icon getInlineContent()
Inline content.Only one of OnlineResource or InlineContent can be supplied.
- Returns:
- InlineContent or
null
-
setInlineContent
void setInlineContent(Icon inline)
Icon to use for inline content.This is often a SwingImageIcon with a format defined by getFormat()
-
getFormat
String getFormat()
Mime type of the onlineResource/InlineContentCommon examples:
- image/svg
- image/png
- image/gif
- Returns:
- mime type
-
setFormat
void setFormat(String mimeType)
- Parameters:
mimeType
- Mime type of external (or internal) resource
-
getMarkIndex
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
Object accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitor- Parameters:
visitor
- the style visitor
-
setMarkIndex
void setMarkIndex(int markIndex)
Mark index used to specify true type font character; or frame of an animated gif.
-
-