org.geotools.styling
Class ExternalGraphicImpl

java.lang.Object
  extended byorg.geotools.event.AbstractGTComponent
      extended byorg.geotools.styling.ExternalGraphicImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.util.Cloneable, ExternalGraphic, GTComponent, Symbol

public class ExternalGraphicImpl
extends AbstractGTComponent
implements ExternalGraphic, Symbol, org.opengis.util.Cloneable

DOCUMENT ME!

Version:
$Id: ExternalGraphicImpl.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Ian Turton, CCG

Field Summary
 
Fields inherited from class org.geotools.event.AbstractGTComponent
notification
 
Fields inherited from interface org.geotools.styling.ExternalGraphic
EXTERNAL_GRAPHICS_EMPTY
 
Fields inherited from interface org.geotools.styling.Symbol
SYMBOLS_EMPTY
 
Constructor Summary
ExternalGraphicImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 java.lang.Object clone()
          Returns a clone of the ExternalGraphic
 boolean equals(java.lang.Object oth)
          Compares this ExternalGraphi with another.
 java.util.Map getCustomProperties()
           
 java.lang.String getFormat()
          Provides the format of the external graphic.
 java.net.URL getLocation()
          Provides the URL for where the external graphic resouce can be located.
 int hashCode()
          Generates a hashcode for the ExternalGraphic
 void setCustomProperties(java.util.Map list)
           
 void setFormat(java.lang.String format)
          Setter for property Format.
 void setLocation(java.net.URL location)
          Setter for property location.
 void setURI(java.lang.String uri)
          converts a URI in a string to the location URL
 
Methods inherited from class org.geotools.event.AbstractGTComponent
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

Constructor Detail

ExternalGraphicImpl

public ExternalGraphicImpl()
Method Detail

setURI

public void setURI(java.lang.String uri)
Description copied from interface: ExternalGraphic
converts a URI in a string to the location URL

Specified by:
setURI in interface ExternalGraphic
Parameters:
uri - the uri of the external graphic

getFormat

public java.lang.String getFormat()
Provides the format of the external graphic.

Specified by:
getFormat in interface ExternalGraphic
Returns:
The format of the external graphic. Reported as its MIME type in a String object.

getLocation

public java.net.URL getLocation()
                         throws java.net.MalformedURLException
Provides the URL for where the external graphic resouce can be located.

Specified by:
getLocation in interface ExternalGraphic
Returns:
The URL of the ExternalGraphic
Throws:
java.net.MalformedURLException - DOCUMENT ME!

setFormat

public void setFormat(java.lang.String format)
Setter for property Format.

Specified by:
setFormat in interface ExternalGraphic
Parameters:
format - New value of property Format.

setLocation

public void setLocation(java.net.URL location)
Setter for property location.

Specified by:
setLocation in interface ExternalGraphic
Parameters:
location - New value of property location.

accept

public void accept(StyleVisitor visitor)
Specified by:
accept in interface Symbol

clone

public java.lang.Object clone()
Returns a clone of the ExternalGraphic

Specified by:
clone in interface org.opengis.util.Cloneable
Overrides:
clone in class AbstractGTComponent
See Also:
org.geotools.styling.ExternalGraphic#clone()

hashCode

public int hashCode()
Generates a hashcode for the ExternalGraphic

Returns:
The hash code.

equals

public boolean equals(java.lang.Object oth)
Compares this ExternalGraphi with another.

Two external graphics are equal if they have the same uri and format.

Parameters:
oth - The other External graphic.
Returns:
True if this and the other external graphic are equal.

getCustomProperties

public java.util.Map getCustomProperties()
Specified by:
getCustomProperties in interface ExternalGraphic

setCustomProperties

public void setCustomProperties(java.util.Map list)
Specified by:
setCustomProperties in interface ExternalGraphic


Copyright © GeoTools. All Rights Reserved.