Class DefaultDynamicVectorLegend
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.dynamiclegend.DefaultDynamicVectorLegend
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable,org.gvsig.fmap.mapcontext.rendering.legend.ILegend,org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend,org.gvsig.fmap.mapcontext.rendering.legend.Legend,org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicVectorLegend,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class DefaultDynamicVectorLegend
extends AbstractVectorialLegend
implements org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicVectorLegend
- Author:
- osc
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic String[]Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
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.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicVectorLegend
NAME -
Constructor Summary
ConstructorsConstructorDescriptionConstructor method, needed by persistence.DefaultDynamicVectorLegend(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) String[]booleanisSuitableForShapeType(int shapeType) booleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore fs) voidsetFillColor(org.gvsig.expressionevaluator.Expression expression) voidsetOutlineColor(org.gvsig.expressionevaluator.Expression expression) voidsetRotation(org.gvsig.expressionevaluator.Expression expression) voidsetShapeType(int shapeType) voidsetSize(org.gvsig.expressionevaluator.Expression expression) 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.IVectorLegend
draw, draw, print, print
-
Field Details
-
DYNAMIC_VECTOR_PERSISTENCE_DEFINITION_NAME
- See Also:
-
expOutlineColor
public static org.gvsig.expressionevaluator.Expression expOutlineColor -
expFillColor
public static org.gvsig.expressionevaluator.Expression expFillColor -
expSize
public static org.gvsig.expressionevaluator.Expression expSize -
expRotation
public static org.gvsig.expressionevaluator.Expression expRotation -
requiredAttributes
-
-
Constructor Details
-
DefaultDynamicVectorLegend
public DefaultDynamicVectorLegend()Constructor method, needed by persistence. -
DefaultDynamicVectorLegend
public DefaultDynamicVectorLegend(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol style) Convenience fast constructor.- Parameters:
style- SÃmbolo.
-
-
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
-
setOutlineColor
public void setOutlineColor(org.gvsig.expressionevaluator.Expression expression) -
setFillColor
public void setFillColor(org.gvsig.expressionevaluator.Expression expression) -
setSize
public void setSize(org.gvsig.expressionevaluator.Expression expression) -
setRotation
public void setRotation(org.gvsig.expressionevaluator.Expression expression) -
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
-
getUsedFields
-
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
-
selfRegister
public static void selfRegister()
-