|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.styling.ExternalGraphicImpl
public class ExternalGraphicImpl
DOCUMENT ME!
Field Summary |
---|
Fields inherited from interface org.geotools.styling.ExternalGraphic |
---|
EXTERNAL_GRAPHICS_EMPTY |
Fields inherited from interface org.geotools.styling.Symbol |
---|
SYMBOLS_EMPTY |
Constructor Summary | |
---|---|
ExternalGraphicImpl()
|
|
ExternalGraphicImpl(javax.swing.Icon icon,
java.util.Collection<org.opengis.style.ColorReplacement> replaces,
org.opengis.metadata.citation.OnLineResource source)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
java.lang.Object |
accept(org.opengis.style.StyleVisitor visitor,
java.lang.Object data)
|
java.lang.Object |
clone()
Returns a clone of the ExternalGraphic |
java.util.Set<org.opengis.style.ColorReplacement> |
colorReplacements()
|
boolean |
equals(java.lang.Object oth)
Compares this ExternalGraphi with another. |
java.util.Collection<org.opengis.style.ColorReplacement> |
getColorReplacements()
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomProperties()
Custom user supplied properties available when working with an external graphic. |
java.lang.String |
getFormat()
Provides the format of the external graphic. |
javax.swing.Icon |
getInlineContent()
|
java.net.URL |
getLocation()
Provides the URL for where the external graphic resource can be located. |
org.opengis.metadata.citation.OnLineResource |
getOnlineResource()
|
int |
hashCode()
Generates a hashcode for the ExternalGraphic |
void |
setCustomProperties(java.util.Map<java.lang.String,java.lang.Object> list)
Custom properties; renderer may consult these values when drawing graphic. |
void |
setFormat(java.lang.String format)
Setter for property Format. |
void |
setInlineContent(javax.swing.Icon inlineContent)
|
void |
setLocation(java.net.URL location)
Setter for property location. |
void |
setOnlineResource(org.opengis.metadata.citation.OnLineResource online)
|
void |
setURI(java.lang.String uri)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalGraphicImpl()
public ExternalGraphicImpl(javax.swing.Icon icon, java.util.Collection<org.opengis.style.ColorReplacement> replaces, org.opengis.metadata.citation.OnLineResource source)
Method Detail |
---|
@Deprecated public void setURI(java.lang.String uri)
ExternalGraphic
uri
- the uri of the external graphicpublic java.lang.String getFormat()
getFormat
in interface org.opengis.style.ExternalGraphic
public java.net.URL getLocation() throws java.net.MalformedURLException
java.net.MalformedURLException
- If unable to represent external graphic as a URLpublic void setFormat(java.lang.String format)
format
- New value of property Format.public void setLocation(java.net.URL location)
location
- New value of property location.public java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
accept
in interface org.opengis.style.ExternalGraphic
public void accept(StyleVisitor visitor)
accept
in interface Symbol
public java.lang.Object clone()
clone
in class java.lang.Object
org.geotools.styling.ExternalGraphic#clone()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object oth)
Two external graphics are equal if they have the same uri and format.
equals
in class java.lang.Object
oth
- The other External graphic.
public java.util.Map<java.lang.String,java.lang.Object> getCustomProperties()
ExternalGraphic
public void setCustomProperties(java.util.Map<java.lang.String,java.lang.Object> list)
ExternalGraphic
The default GeoTools renderer uses the following:
public org.opengis.metadata.citation.OnLineResource getOnlineResource()
getOnlineResource
in interface org.opengis.style.ExternalGraphic
public void setOnlineResource(org.opengis.metadata.citation.OnLineResource online)
public javax.swing.Icon getInlineContent()
getInlineContent
in interface org.opengis.style.ExternalGraphic
public void setInlineContent(javax.swing.Icon inlineContent)
public java.util.Collection<org.opengis.style.ColorReplacement> getColorReplacements()
getColorReplacements
in interface org.opengis.style.ExternalGraphic
public java.util.Set<org.opengis.style.ColorReplacement> colorReplacements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |