Class VectorialUniqueValueLegend
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
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
- 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.IVectorialUniqueValueLegend,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 VectorialUniqueValueLegend
extends AbstractClassifiedVectorLegend
implements org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
Vectorial legend for unique values
- Author:
- Vicente Caballero Navarro, 2009- César Ordiñana - gvSIG team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAMEFields 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.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
LEGEND_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()clone()voidvoidColor[]org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolString[]intorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) Devuelve un símbolo a partir de una IFeature.org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByValue(Object key) getSymbolKey(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[]Object[]booleanDevuelve si se utiliza o no el resto de valores para representarse.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidreplace(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol oldSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newSymbol) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetClassifyingFieldNames(String[] fNames) voidsetClassifyingFieldTypes(int[] fieldTypes) voidsetColorScheme(Color[] cc) voidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetShapeType(int shapeType) voidsetValueSymbolByID(int id, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) voiduseDefaultSymbol(boolean b) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
fireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeTypeMethods 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.IClassifiedVectorLegend
getClassifyingFieldNames, getClassifyingFieldTypesMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
getZSort, setZSortMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, isSuitableForShapeType, print, print
-
Field Details
-
VECTORIAL_UNIQUE_VALUE_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
VectorialUniqueValueLegend
public VectorialUniqueValueLegend() -
VectorialUniqueValueLegend
public VectorialUniqueValueLegend(int shapeType) Constructor method- Parameters:
shapeType- Type of the shape.
-
-
Method Details
-
setShapeType
public void setShapeType(int shapeType) - Specified by:
setShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
setValueSymbolByID
public void setValueSymbolByID(int id, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) - Specified by:
setValueSymbolByIDin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
-
getValues
- Specified by:
getValuesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
addSymbol
- Specified by:
addSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
delAllSymbols
public void delAllSymbols() -
clear
public void clear()- Specified by:
clearin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getDescriptions
- Specified by:
getDescriptionsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
getSymbols
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] getSymbols()- Specified by:
getSymbolsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
setClassifyingFieldNames
- Specified by:
setClassifyingFieldNamesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
setClassifyingFieldNamesin classAbstractClassifiedVectorLegend
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.mapcontext.MapContextException Devuelve un símbolo a partir de una IFeature. OJO!! Cuando usamos un feature iterator de base de datos el único campo que vendrá rellenado es el de fieldID. Los demás vendrán a nulos para ahorra tiempo de creación.- Specified by:
getSymbolByFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Parameters:
feat- IFeature- Returns:
- Símbolo.
- Throws:
org.gvsig.fmap.mapcontext.MapContextException
-
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
-
setDefaultSymbol
public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) - Specified by:
setDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getSymbolByValue
- Specified by:
getSymbolByValuein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
-
getSymbolKey
- Specified by:
getSymbolKeyin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
-
getShapeType
public int getShapeType()- Specified by:
getShapeTypein 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()Devuelve si se utiliza o no el resto de valores para representarse.- Specified by:
isUseDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Returns:
- True si se utiliza el resto de valores.
-
delSymbol
- Specified by:
delSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getClassName
-
replace
public void replace(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol oldSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newSymbol) - Specified by:
replacein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getColorScheme
- Specified by:
getColorSchemein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
-
setColorScheme
- Specified by:
setColorSchemein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractClassifiedVectorLegend- Throws:
CloneNotSupportedException
-
setClassifyingFieldTypes
public void setClassifyingFieldTypes(int[] fieldTypes) - Specified by:
setClassifyingFieldTypesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
setClassifyingFieldTypesin classAbstractClassifiedVectorLegend
-
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 classAbstractClassifiedVectorLegend- 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 classAbstractClassifiedVectorLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-