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.intReturns 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.voidvoidsetInlineContent(Icon inline) Icon to use for inline content.voidsetMarkIndex(int markIndex) Mark index used to specify true type font character; or frame of an animated gif.voidsetOnlineResource(OnLineResource resource)
-
Constructor Details
-
ExternalMarkImpl
public ExternalMarkImpl() -
ExternalMarkImpl
-
ExternalMarkImpl
-
-
Method Details
-
getFormat
Description copied from interface:ExternalMarkMime type of the onlineResource/InlineContentCommon examples:
- image/svg
- image/png
- image/gif
- Specified by:
getFormatin interfaceExternalMark- Returns:
- mime type
-
getInlineContent
Description copied from interface:ExternalMarkInline content.Only one of OnlineResource or InlineContent can be supplied.
- Specified by:
getInlineContentin interfaceExternalMark- Returns:
- InlineContent or
null
-
getMarkIndex
public int getMarkIndex()Description copied from interface:ExternalMarkReturns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.- Specified by:
getMarkIndexin interfaceExternalMark- Returns:
- integer
-
getOnlineResource
Description copied from interface:ExternalMarkOnline resource defined by an URI.Only one of OnlineResource or InlineContent can be supplied.
- Specified by:
getOnlineResourcein interfaceExternalMark- Returns:
- OnlineResource or
null
-
accept
Description copied from interface:ExternalMarkcalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceExternalMark- Parameters:
visitor- the style visitor
-
setInlineContent
Description copied from interface:ExternalMarkIcon to use for inline content.This is often a SwingImageIcon with a format defined by getFormat()
- Specified by:
setInlineContentin interfaceExternalMark
-
setFormat
- Specified by:
setFormatin interfaceExternalMark- Parameters:
mimeType- Mime type of external (or internal) resource
-
setMarkIndex
public void setMarkIndex(int markIndex) Description copied from interface:ExternalMarkMark index used to specify true type font character; or frame of an animated gif.- Specified by:
setMarkIndexin interfaceExternalMark
-
setOnlineResource
- Specified by:
setOnlineResourcein interfaceExternalMark- Parameters:
resource- Online resource with format defined by getFormat()
-