public class ImageLegend extends java.lang.Object implements IRasterLegend, IHasImageLegend
Constructor and Description |
---|
ImageLegend(java.awt.Image image) |
Modifier and Type | Method and Description |
---|---|
void |
addLegendListener(LegendContentsChangedListener listener)
Adds a new listener to the legend.
|
java.lang.Object |
clone()
Creates a copy of the object.
|
ILegend |
cloneLegend()
Clones the legend.
|
void |
fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
Executed when the default symbol of a legend is changed.
|
ISymbol |
getDefaultSymbol()
Obtains the default symbol of the legend.
|
java.awt.Image |
getImageLegend() |
LegendContentsChangedListener[] |
getListeners()
Obtains the listeners of a legend.
|
java.lang.String |
getPathImage() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
removeLegendListener(LegendContentsChangedListener listener)
Removes a listener from the legend.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public java.awt.Image getImageLegend()
getImageLegend
in interface IHasImageLegend
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public void addLegendListener(LegendContentsChangedListener listener)
ILegend
addLegendListener
in interface ILegend
listener
- to be addedpublic ILegend cloneLegend()
ILegend
cloneLegend
in interface ILegend
public void fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
ILegend
fireDefaultSymbolChangedEvent
in interface ILegend
public ISymbol getDefaultSymbol()
ILegend
getDefaultSymbol
in interface ILegend
public LegendContentsChangedListener[] getListeners()
ILegend
getListeners
in interface ILegend
public void removeLegendListener(LegendContentsChangedListener listener)
ILegend
removeLegendListener
in interface ILegend
listener
- to be removedpublic void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public java.lang.String getPathImage()
getPathImage
in interface IHasImageLegend