Class QuantityByCategoryLegend
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.rendering.QuantityByCategoryLegend
- 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
public class QuantityByCategoryLegend
extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
Implements a legend where the user can compare two different characteristics
of a region in the map. These two "fields" will be compared, on one side,
using a color for the region and , on the other side, using a graduated symbol.
Both methods will change (the color or the size of the symbol) depending on
the value of the fields.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
-
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
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 TypeMethodDescriptionvoidvoidclear()clone()voidString[]int[]org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegendObtains the VectorialIntervalLegendorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolString[]org.gvsig.symbology.fmap.rendering.GraduatedSymbolsLegendObtains the GraduatedSymbolLegendintorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[]Object[]static booleanisPolygonal(int ty) booleanvoidloadFromState(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[] fieldNames) Sets the field names required to build this legend.voidsetClassifyingFieldTypes(int[] fieldTypes) voidsetColorRampLegend(org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend legend) voidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetGraduateSymbolLegend(org.gvsig.symbology.fmap.rendering.GraduatedSymbolsLegend legend) voidsetShapeType(int shpt) voiduseDefaultSymbol(boolean b) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
fireClassifiedSymbolChangeEvent, fireLegendClearEvent, 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.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, print, print
-
Field Details
-
QUANTITY_BY_CATEGORY_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
QUANTITY_BY_CATEGORY_LEGEND_NAME
- See Also:
-
-
Constructor Details
-
QuantityByCategoryLegend
public QuantityByCategoryLegend()
-
-
Method Details
-
clear
public void clear() -
getClassifyingFieldNames
- Specified by:
getClassifyingFieldNamesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
getClassifyingFieldNamesin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
-
getClassifyingFieldTypes
public int[] getClassifyingFieldTypes()- Specified by:
getClassifyingFieldTypesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
getClassifyingFieldTypesin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
-
setClassifyingFieldTypes
public void setClassifyingFieldTypes(int[] fieldTypes) - Specified by:
setClassifyingFieldTypesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
setClassifyingFieldTypesin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
-
setClassifyingFieldNames
Sets the field names required to build this legend. In this case fieldNames is an array of length 2 where the first element is the field name for the embedded GraduatedSymbolLegend, and the second is the field name for the embedded colorRamp (VectorialIntervalLegend) legend.- Specified by:
setClassifyingFieldNamesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend- Overrides:
setClassifyingFieldNamesin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
-
addSymbol
-
delSymbol
-
getDescriptions
-
getSymbols
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] getSymbols() -
getValues
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend- Throws:
CloneNotSupportedException
-
getGraduatedSymbolsLegend
public org.gvsig.symbology.fmap.rendering.GraduatedSymbolsLegend getGraduatedSymbolsLegend()Obtains the GraduatedSymbolLegend- Returns:
- GraduatedSymbolLegend
-
getColorRampLegend
public org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend getColorRampLegend()Obtains the VectorialIntervalLegend- Returns:
- VectorialIntervalLegend
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.mapcontext.MapContextException - Throws:
org.gvsig.fmap.mapcontext.MapContextException
-
setShapeType
public void setShapeType(int shpt) -
isUseDefaultSymbol
public boolean isUseDefaultSymbol() -
useDefaultSymbol
public void useDefaultSymbol(boolean b) -
setGraduateSymbolLegend
public void setGraduateSymbolLegend(org.gvsig.symbology.fmap.rendering.GraduatedSymbolsLegend legend) -
setColorRampLegend
public void setColorRampLegend(org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend legend) -
getClassName
-
replace
public void replace(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol oldSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newSymbol) -
isPolygonal
public static boolean isPolygonal(int ty) -
getDefaultSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getDefaultSymbol() -
getShapeType
public int getShapeType() -
setDefaultSymbol
public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) -
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 classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
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 classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-