Class AbstractClassifiedVectorLegend
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable,org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend,org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend,org.gvsig.fmap.mapcontext.rendering.legend.ILegend,org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend,org.gvsig.fmap.mapcontext.rendering.legend.Legend,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
- Direct Known Subclasses:
AbstractIntervalLegend,VectorialUniqueValueLegend
public abstract class AbstractClassifiedVectorLegend
extends AbstractVectorialLegend
implements org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
Abstract class that implements the interface for legends composed by
classified symbols.It will have two methods that will be executed depending
on the action that had been done with the legend (addition of a new symbol or
clear the legend).
- Author:
- gvSIG team
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
LOG, VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
LEGEND_PERSISTENCE_DEFINITION_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidfireClassifiedSymbolChangeEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent event) Looks for a change in a classified symbol of a legend.voidfireLegendClearEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendClearEvent event) Looks for a change in a legend of classified symbols.String[]int[]protected String[]getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) Returns the names of theFeatureattributes required for theILegendto operate.booleanisSuitableForShapeType(int shapeType) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetClassifyingFieldNames(String[] fieldNames) voidsetClassifyingFieldTypes(int[] fieldTypes) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
draw, draw, draw, drawFeatures, getZSort, internalDraw, isDrawSymbolInEeachPrimitive, print, print, setDrawSymbolInEeachPrimitive, setZSortMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
addDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListenerMethods 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.DrawingObservable
addDrawingObserver, deleteDrawingObserver, deleteDrawingObserversMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
getDescriptions, getSymbols, getValuesMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
addSymbol, clear, delSymbol, replaceMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, getDefaultSymbol, getShapeType, getSymbolByFeature, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymbol
-
Field Details
-
CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
AbstractClassifiedVectorLegend
public AbstractClassifiedVectorLegend()
-
-
Method Details
-
fireClassifiedSymbolChangeEvent
public void fireClassifiedSymbolChangeEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent event) Looks for a change in a classified symbol of a legend. To perform it, the Array of LegendListeners is scaned and when the corresponding listener is true, the method is invoked and the change will be done.- Parameters:
event-
-
fireLegendClearEvent
public void fireLegendClearEvent(org.gvsig.fmap.mapcontext.rendering.legend.events.LegendClearEvent event) Looks for a change in a legend of classified symbols. In this case if the specific legend is cleared.- Parameters:
event-
-
getClassifyingFieldNames
- Specified by:
getClassifyingFieldNamesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
setClassifyingFieldNames
- Specified by:
setClassifyingFieldNamesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getClassifyingFieldTypes
public int[] getClassifyingFieldTypes()- Specified by:
getClassifyingFieldTypesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
setClassifyingFieldTypes
public void setClassifyingFieldTypes(int[] fieldTypes) - Specified by:
setClassifyingFieldTypesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
isSuitableForShapeType
public boolean isSuitableForShapeType(int shapeType) - Specified by:
isSuitableForShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getRequiredFeatureAttributeNames
protected String[] getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException Description copied from class:AbstractVectorialLegendReturns the names of theFeatureattributes required for theILegendto operate.- Specified by:
getRequiredFeatureAttributeNamesin classAbstractVectorialLegend- Parameters:
featureStore- the store where theFeatures belong to- Returns:
- the names of required
Featureattribute names - Throws:
org.gvsig.fmap.dal.exception.DataException- if there is an error getting the attribute names
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractVectorialLegend- 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- Overrides:
loadFromStatein classAbstractVectorialLegend- 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- Overrides:
saveToStatein classAbstractVectorialLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-