org.geotools.styling
Class ExternalMarkImpl

Object
  extended by ExternalMarkImpl
All Implemented Interfaces:
ExternalMark

public class ExternalMarkImpl
extends Object
implements ExternalMark

Default implementation of ExternalMark.


Constructor Summary
ExternalMarkImpl()
           
ExternalMarkImpl(Icon icon)
           
ExternalMarkImpl(OnLineResource resource, String format, int markIndex)
           
 
Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 String getFormat()
          Mime type of the onlineResource/InlineContent Common examples: image/svg image/png image/gif This information is used by a renderer to determine if it can support the image format being supplied.
 Icon getInlineContent()
          Inline content.
 void getInlineContent(Icon inline)
           
 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)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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/InlineContent

Common examples:

This information is used by a renderer to determine if it can support the image format being supplied.

Specified by:
getFormat in interface ExternalMark
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 interface ExternalMark
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 interface ExternalMark
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 interface ExternalMark
Returns:
OnlineResource or null

accept

public Object accept(StyleVisitor visitor,
                     Object extraData)
Description copied from interface: ExternalMark
calls the visit method of a StyleVisitor

Specified by:
accept in interface ExternalMark
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()


getInlineContent

public void getInlineContent(Icon inline)

setFormat

public void setFormat(String mimeType)
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.


setOnlineResource

public void setOnlineResource(OnLineResource resource)
Parameters:
resource - Online resource with format defined by getFormat()


Copyright © 1996-2014 Geotools. All Rights Reserved.