public abstract class AbstractLegend extends java.lang.Object implements ILegend
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEGEND_PERSISTENCE_DEFINITION_NAME |
| Constructor and Description |
|---|
AbstractLegend() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDrawingObserver(Observer observer) |
void |
addLegendListener(LegendContentsChangedListener listener)
Adds a new listener to the legend.
|
void |
addObserver(java.lang.ref.Reference<Observer> ref) |
void |
beginComplexNotification() |
java.lang.Object |
clone()
Creates a copy of the object.
|
ILegend |
cloneLegend()
Clones the legend.
|
int |
countObservers() |
void |
deleteDrawingObserver(Observer observer) |
void |
deleteDrawingObservers() |
void |
deleteObserver(java.lang.ref.Reference<Observer> ref) |
void |
disableNotifications() |
void |
enableNotifications() |
void |
endComplexNotification() |
void |
fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
Executed when the default symbol of a legend is changed.
|
LegendContentsChangedListener[] |
getListeners()
Obtains the listeners of a legend.
|
MapContextManager |
getManager() |
SymbolManager |
getSymbolManager() |
boolean |
inComplex() |
boolean |
isEnabledNotifications() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
notifyObservers() |
void |
notifyObservers(java.lang.Object arg) |
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, waitgetDefaultSymbolcloneQuietly, cloneQuietlypublic static final java.lang.String LEGEND_PERSISTENCE_DEFINITION_NAME
public MapContextManager getManager()
public SymbolManager getSymbolManager()
public void addLegendListener(LegendContentsChangedListener listener)
ILegendaddLegendListener in interface ILegendlistener - to be addedpublic void removeLegendListener(LegendContentsChangedListener listener)
ILegendremoveLegendListener in interface ILegendlistener - to be removedpublic void fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
ILegendfireDefaultSymbolChangedEvent in interface ILegendpublic LegendContentsChangedListener[] getListeners()
ILegendgetListeners in interface ILegendpublic void addDrawingObserver(Observer observer)
public void deleteDrawingObserver(Observer observer)
public void deleteDrawingObservers()
public void addObserver(java.lang.ref.Reference<Observer> ref)
public void beginComplexNotification()
public int countObservers()
public void deleteObserver(java.lang.ref.Reference<Observer> ref)
public void disableNotifications()
public void enableNotifications()
public void endComplexNotification()
public boolean inComplex()
public boolean isEnabledNotifications()
public void notifyObservers()
public void notifyObservers(java.lang.Object arg)
public ILegend cloneLegend()
ILegendcloneLegend in interface ILegendpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.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 loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException