org.geotools.styling
Class ExternalGraphicImpl

Object
  extended by ExternalGraphicImpl
All Implemented Interfaces:
Cloneable, ExternalGraphic, Symbol

public class ExternalGraphicImpl
extends Object
implements ExternalGraphic, Symbol, Cloneable

DOCUMENT ME!

Author:
Ian Turton, CCG
Module:

Field Summary
 
Fields inherited from interface ExternalGraphic
EXTERNAL_GRAPHICS_EMPTY
 
Fields inherited from interface Symbol
SYMBOLS_EMPTY
 
Constructor Summary
ExternalGraphicImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Object clone()
          Returns a clone of the ExternalGraphic
 boolean equals(Object oth)
          Compares this ExternalGraphi with another.
 Map<String,Object> getCustomProperties()
          Custom user supplied properties available when working with an external graphic.
 String getFormat()
          Provides the format of the external graphic.
 URL getLocation()
          Provides the URL for where the external graphic resouce can be located.
 int hashCode()
          Generates a hashcode for the ExternalGraphic
 void setCustomProperties(Map<String,Object> list)
          Custom properties; renderer may consult these values when drawing graphic.
 void setFormat(String format)
          Setter for property Format.
 void setLocation(URL location)
          Setter for property location.
 void setURI(String uri)
          converts a URI in a string to the location URL
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalGraphicImpl

public ExternalGraphicImpl()
Method Detail

setURI

public void setURI(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 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 URL getLocation()
                throws 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:
MalformedURLException - DOCUMENT ME!

setFormat

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

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

setLocation

public void setLocation(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 Object clone()
Returns a clone of the ExternalGraphic

Overrides:
clone in class Object
See Also:
org.geotools.styling.ExternalGraphic#clone()

hashCode

public int hashCode()
Generates a hashcode for the ExternalGraphic

Overrides:
hashCode in class Object
Returns:
The hash code.

equals

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

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

Overrides:
equals in class Object
Parameters:
oth - The other External graphic.
Returns:
True if this and the other external graphic are equal.

getCustomProperties

public Map<String,Object> getCustomProperties()
Description copied from interface: ExternalGraphic
Custom user supplied properties available when working with an external graphic.

Specified by:
getCustomProperties in interface ExternalGraphic
Returns:
properties

setCustomProperties

public void setCustomProperties(Map<String,Object> list)
Description copied from interface: ExternalGraphic
Custom properties; renderer may consult these values when drawing graphic.

The default GeoTools renderer uses the following:

Specified by:
setCustomProperties in interface ExternalGraphic


Copyright © 1996-2009 Geotools. All Rights Reserved.