org.geotools.styling
Class ExternalGraphicImpl

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

public class ExternalGraphicImpl
extends java.lang.Object
implements ExternalGraphic, Symbol, org.opengis.util.Cloneable

Version:
$Id: ExternalGraphicImpl.java,v 1.10 2004/04/08 13:26:05 jfc173 Exp $
Author:
Ian Turton, CCG

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 java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 - If the url held in the ExternalGraphic is malformed.

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
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.