org.geotools.styling
Class ExternalMarkImpl

java.lang.Object
  extended by org.geotools.styling.ExternalMarkImpl
All Implemented Interfaces:
org.opengis.style.ExternalMark

public class ExternalMarkImpl
extends java.lang.Object
implements ExternalMark

Default implementation of ExternalMark.

Version:
$Id: MarkImpl.java 31133 2008-08-05 15:20:33Z johann.sorel $

Constructor Summary
ExternalMarkImpl()
           
ExternalMarkImpl(javax.swing.Icon icon)
           
ExternalMarkImpl(org.opengis.metadata.citation.OnLineResource resource, java.lang.String format, int markIndex)
           
 
Method Summary
 java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object extraData)
           
 java.lang.String getFormat()
          Mime type of the onlineResource/InlineContent
 javax.swing.Icon getInlineContent()
          Inline content.
 void getInlineContent(javax.swing.Icon inline)
          Icon to use for 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.
 org.opengis.metadata.citation.OnLineResource getOnlineResource()
          Online resource defined by an URI.
 void setFormat(java.lang.String mimeType)
           
 void setMarkIndex(int markIndex)
          Mark index used to specify true type font character; or frame of an animated gif.
 void setOnlineResource(org.opengis.metadata.citation.OnLineResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalMarkImpl

public ExternalMarkImpl()

ExternalMarkImpl

public ExternalMarkImpl(javax.swing.Icon icon)

ExternalMarkImpl

public ExternalMarkImpl(org.opengis.metadata.citation.OnLineResource resource,
                        java.lang.String format,
                        int markIndex)
Method Detail

getFormat

public java.lang.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 org.opengis.style.ExternalMark
Returns:
mime type

getInlineContent

public javax.swing.Icon getInlineContent()
Description copied from interface: ExternalMark
Inline content. Only one of OnlineResource or InlineContent can be supplied.

Specified by:
getInlineContent in interface org.opengis.style.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 org.opengis.style.ExternalMark
Returns:
integer

getOnlineResource

public org.opengis.metadata.citation.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 org.opengis.style.ExternalMark
Returns:
OnlineResource or null

accept

public java.lang.Object accept(org.opengis.style.StyleVisitor visitor,
                               java.lang.Object extraData)
Specified by:
accept in interface org.opengis.style.ExternalMark

getInlineContent

public void getInlineContent(javax.swing.Icon inline)
Description copied from interface: ExternalMark
Icon to use for inline content.

This is often a SwingImageIcon with a format defined by getFormat()


setFormat

public void setFormat(java.lang.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(org.opengis.metadata.citation.OnLineResource resource)
Parameters:
resource - Online resource with format defined by getFormat()


Copyright © 1996-2010 Geotools. All Rights Reserved.