Package org.geotools.styling
Class ExternalMarkImpl
- Object
-
- ExternalMarkImpl
-
- All Implemented Interfaces:
ExternalMark
public class ExternalMarkImpl extends Object implements ExternalMark
Default implementation of ExternalMark.
-
-
Constructor Summary
Constructors Constructor Description ExternalMarkImpl()ExternalMarkImpl(Icon icon)ExternalMarkImpl(OnLineResource resource, String format, int markIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(TraversingStyleVisitor visitor, Object extraData)calls the visit method of a StyleVisitorStringgetFormat()Mime type of the onlineResource/InlineContentIcongetInlineContent()Inline content.intgetMarkIndex()Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example.OnLineResourcegetOnlineResource()Online resource defined by an URI.voidsetFormat(String mimeType)voidsetInlineContent(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 Detail
-
ExternalMarkImpl
public ExternalMarkImpl()
-
ExternalMarkImpl
public ExternalMarkImpl(Icon icon)
-
ExternalMarkImpl
public ExternalMarkImpl(OnLineResource resource, String format, int markIndex)
-
-
Method Detail
-
getFormat
public String 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
public Icon 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
public OnLineResource 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
public Object accept(TraversingStyleVisitor visitor, Object extraData)
Description copied from interface:ExternalMarkcalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceExternalMark- Parameters:
visitor- the style visitor
-
setInlineContent
public void setInlineContent(Icon inline)
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
public void setFormat(String mimeType)
- 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
public void setOnlineResource(OnLineResource resource)
- Specified by:
setOnlineResourcein interfaceExternalMark- Parameters:
resource- Online resource with format defined by getFormat()
-
-