public interface ILegend extends Persistent, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addLegendListener(LegendContentsChangedListener listener)
Adds a new listener to the legend.
|
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.
|
LegendContentsChangedListener[] |
getListeners()
Obtains the listeners of a legend.
|
void |
removeLegendListener(LegendContentsChangedListener listener)
Removes a listener from the legend.
|
loadFromState, saveToState
ISymbol getDefaultSymbol()
ILegend cloneLegend()
XMLException
void addLegendListener(LegendContentsChangedListener listener)
listener
- to be addedvoid removeLegendListener(LegendContentsChangedListener listener)
listener
- to be removedvoid fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
event
- LegendContentsChangedListener[] getListeners()