Interface IClassifiedVectorLegend
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,DrawingObservable,IClassifiedLegend,ILegend,IVectorLegend,Legend,org.gvsig.tools.persistence.Persistent
- All Known Subinterfaces:
IVectorialIntervalLegend,IVectorialUniqueValueLegend
Interface that offers the methods to classify the legend.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInserts a symbol.voidclear()Deletes all the information of classification: intervals, values, or other classifying elementsvoidDeletes a symbol using for that its key which is the parameter of the method.String[]Returns the name of the fieldint[]voidRemoves oldSymbol from the Legend and substitutes it with the newSymbolvoidsetClassifyingFieldNames(String[] fieldNames) Inserts the name of the fieldvoidsetClassifyingFieldTypes(int[] fieldTypes) Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods 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.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, getDefaultSymbol, getShapeType, getSymbolByFeature, isSuitableForShapeType, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymbolMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Method Details
-
clear
void clear()Deletes all the information of classification: intervals, values, or other classifying elements -
getClassifyingFieldNames
String[] getClassifyingFieldNames()Returns the name of the field- Returns:
- Name of the field. TODO refactor to allow more than one field name
-
setClassifyingFieldNames
Inserts the name of the field- Parameters:
fieldNames- Names of the fields. TODO refactor to allow more than one field name
-
addSymbol
Inserts a symbol.- Parameters:
key- .symbol- .
-
delSymbol
Deletes a symbol using for that its key which is the parameter of the method.- Parameters:
key- clave.
-
replace
Removes oldSymbol from the Legend and substitutes it with the newSymbol- Parameters:
oldSymbol-newSymbol-
-
getClassifyingFieldTypes
int[] getClassifyingFieldTypes() -
setClassifyingFieldTypes
void setClassifyingFieldTypes(int[] fieldTypes)
-