Class SingleSymbolLegend
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.SingleSymbolLegend
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable,org.gvsig.fmap.mapcontext.rendering.legend.ILegend,org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend,org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend,org.gvsig.fmap.mapcontext.rendering.legend.Legend,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class SingleSymbolLegend
extends AbstractVectorialLegend
implements org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend
Implements a legend composed by single symbols.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
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_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend
LEGEND_NAME -
Constructor Summary
ConstructorsConstructorDescriptionConstructor method, needed by persistence.SingleSymbolLegend(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol style) Convenience fast constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolprotected String[]getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) Returns the names of theFeatureattributes required for theILegendto operate.intorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbol(int recordIndex) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) booleanisSuitableForShapeType(int shapeType) booleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore fs) voidsetShapeType(int shapeType) voiduseDefaultSymbol(boolean b) 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.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend
getZSort, setZSortMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, print, print
-
Field Details
-
SINGLE_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
SingleSymbolLegend
public SingleSymbolLegend()Constructor method, needed by persistence. -
SingleSymbolLegend
public SingleSymbolLegend(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol style) Convenience fast constructor.- Parameters:
style- Symbol.
-
-
Method Details
-
setDefaultSymbol
public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) - Specified by:
setDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbol(int recordIndex) -
getDefaultSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getDefaultSymbol()- Specified by:
getDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend- Specified by:
getDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getShapeType
public int getShapeType()- Specified by:
getShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
setShapeType
public void setShapeType(int shapeType) - Specified by:
setShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) - Specified by:
getSymbolByFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
useDefaultSymbol
public void useDefaultSymbol(boolean b) - Specified by:
useDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
isUseDefaultSymbol
public boolean isUseDefaultSymbol()- Specified by:
isUseDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getClassName
-
isSuitableForShapeType
public boolean isSuitableForShapeType(int shapeType) - Specified by:
isSuitableForShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
setFeatureStore
public void setFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore fs) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
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
-