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 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)
-
-
-
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:ExternalMark
Mime type of the onlineResource/InlineContentCommon examples:
- image/svg
- image/png
- image/gif
- Specified by:
getFormat
in interfaceExternalMark
- Returns:
- mime type
-
getInlineContent
public Icon 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
public OnLineResource 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
public Object accept(TraversingStyleVisitor visitor, Object extraData)
Description copied from interface:ExternalMark
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceExternalMark
- Parameters:
visitor
- the style visitor
-
setInlineContent
public void setInlineContent(Icon inline)
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
public void setFormat(String mimeType)
- 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
public void setOnlineResource(OnLineResource resource)
- Specified by:
setOnlineResource
in interfaceExternalMark
- Parameters:
resource
- Online resource with format defined by getFormat()
-
-