Class AbstractLegend
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.legend.ILegend,org.gvsig.fmap.mapcontext.rendering.legend.Legend,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
- Direct Known Subclasses:
AbstractVectorialLegend
public abstract class AbstractLegend
extends Object
implements org.gvsig.fmap.mapcontext.rendering.legend.ILegend
Abstract class that implements the interface for legends.It is considered as
the father of all XXXLegends and will implement all the methods that these
classes had not developed.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDrawingObserver(org.gvsig.tools.observer.Observer observer) voidaddLegendListener(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener listener) voidaddObserver(Reference<org.gvsig.tools.observer.Observer> ref) voidclone()org.gvsig.fmap.mapcontext.rendering.legend.ILegendintvoiddeleteDrawingObserver(org.gvsig.tools.observer.Observer observer) voidvoiddeleteObserver(Reference<org.gvsig.tools.observer.Observer> ref) voidvoidvoidvoidfireDefaultSymbolChangedEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent event) org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener[]org.gvsig.fmap.mapcontext.MapContextManagerorg.gvsig.fmap.mapcontext.rendering.symbols.SymbolManagerbooleanbooleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidvoidnotifyObservers(Object arg) voidremoveLegendListener(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener listener) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
getDefaultSymbol
-
Field Details
-
LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
AbstractLegend
public AbstractLegend()
-
-
Method Details
-
getManager
public org.gvsig.fmap.mapcontext.MapContextManager getManager() -
getSymbolManager
public org.gvsig.fmap.mapcontext.rendering.symbols.SymbolManager getSymbolManager() -
addLegendListener
public void addLegendListener(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener listener) - Specified by:
addLegendListenerin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend
-
removeLegendListener
public void removeLegendListener(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener listener) - Specified by:
removeLegendListenerin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend
-
fireDefaultSymbolChangedEvent
public void fireDefaultSymbolChangedEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent event) - Specified by:
fireDefaultSymbolChangedEventin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend
-
getListeners
public org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener[] getListeners()- Specified by:
getListenersin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend
-
addDrawingObserver
public void addDrawingObserver(org.gvsig.tools.observer.Observer observer) -
deleteDrawingObserver
public void deleteDrawingObserver(org.gvsig.tools.observer.Observer observer) -
deleteDrawingObservers
public void deleteDrawingObservers() -
addObserver
-
beginComplexNotification
public void beginComplexNotification() -
countObservers
public int countObservers() -
deleteObserver
-
disableNotifications
public void disableNotifications() -
enableNotifications
public void enableNotifications() -
endComplexNotification
public void endComplexNotification() -
inComplex
public boolean inComplex() -
isEnabledNotifications
public boolean isEnabledNotifications() -
notifyObservers
public void notifyObservers() -
notifyObservers
-
cloneLegend
public org.gvsig.fmap.mapcontext.rendering.legend.ILegend cloneLegend()- Specified by:
cloneLegendin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-