public class ImageLegend extends Object implements IRasterLegend, IHasImageLegend
| Constructor and Description |
|---|
ImageLegend(Image image) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLegendListener(LegendContentsChangedListener listener)
Adds a new listener to the legend.
|
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.
|
Image |
getImageLegend() |
LegendContentsChangedListener[] |
getListeners()
Obtains the listeners of a legend.
|
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.
|
public ImageLegend(Image image)
public Image getImageLegend()
getImageLegend in interface IHasImageLegendpublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - 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)
ILegendaddLegendListener in interface ILegendlistener - to be addedpublic ILegend cloneLegend()
ILegendcloneLegend in interface ILegendpublic void fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
ILegendfireDefaultSymbolChangedEvent in interface ILegendpublic ISymbol getDefaultSymbol()
ILegendgetDefaultSymbol in interface ILegendpublic LegendContentsChangedListener[] getListeners()
ILegendgetListeners in interface ILegendpublic void removeLegendListener(LegendContentsChangedListener listener)
ILegendremoveLegendListener in interface ILegendlistener - to be removedpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic String getPathImage()
getPathImage in interface IHasImageLegend