Package org.geotools.styling
Class ExternalMarkImpl
Object
ExternalMarkImpl
- All Implemented Interfaces:
ExternalMark
Default implementation of ExternalMark.
-
Constructor Summary
ConstructorsConstructorDescriptionExternalMarkImpl
(Icon icon) ExternalMarkImpl
(OnLineResource resource, String format, int markIndex) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(TraversingStyleVisitor visitor, Object extraData) calls the visit method of a StyleVisitorMime type of the onlineResource/InlineContentInline content.int
Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.Online resource defined by an URI.void
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)
-
Constructor Details
-
ExternalMarkImpl
public ExternalMarkImpl() -
ExternalMarkImpl
-
ExternalMarkImpl
-
-
Method Details
-
getFormat
Description copied from interface:ExternalMark
Mime type of the onlineResource/InlineContentCommon examples:
- image/svg
- image/png
- image/gif
- Specified by:
getFormat
in interfaceExternalMark
- Returns:
- mime type
-
getInlineContent
Description copied from interface:ExternalMark
Inline content.Only one of OnlineResource or InlineContent can be supplied.
- Specified by:
getInlineContent
in interfaceExternalMark
- Returns:
- InlineContent or
null
-
getMarkIndex
public int getMarkIndex()Description copied from interface:ExternalMark
Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.- Specified by:
getMarkIndex
in interfaceExternalMark
- Returns:
- integer
-
getOnlineResource
Description copied from interface:ExternalMark
Online resource defined by an URI.Only one of OnlineResource or InlineContent can be supplied.
- Specified by:
getOnlineResource
in interfaceExternalMark
- Returns:
- OnlineResource or
null
-
accept
Description copied from interface:ExternalMark
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceExternalMark
- Parameters:
visitor
- the style visitor
-
setInlineContent
Description copied from interface:ExternalMark
Icon to use for inline content.This is often a SwingImageIcon with a format defined by getFormat()
- Specified by:
setInlineContent
in interfaceExternalMark
-
setFormat
- Specified by:
setFormat
in interfaceExternalMark
- Parameters:
mimeType
- Mime type of external (or internal) resource
-
setMarkIndex
public void setMarkIndex(int markIndex) Description copied from interface:ExternalMark
Mark index used to specify true type font character; or frame of an animated gif.- Specified by:
setMarkIndex
in interfaceExternalMark
-
setOnlineResource
- Specified by:
setOnlineResource
in interfaceExternalMark
- Parameters:
resource
- Online resource with format defined by getFormat()
-