Class VectorialIntervalLegend
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.AbstractIntervalLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend
- 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.IVectorialIntervalLegend,org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend,org.gvsig.fmap.mapcontext.rendering.legend.Legend,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
VectorialIntervalLegend (which should be better called GraduatedColorLegend) is a legend that allows to classify ranges of values using a color gradient based on a value.
The color gradient will be calculated according the starting color, the ending color and the amount of intervals.
- 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.AbstractIntervalLegend
defaultSymbol, EQUAL_INTERVALS, INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME, intervalType, keys, NATURAL_INTERVALS, QUANTILE_INTERVALS, symbols, useDefaultSymbolFields 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_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
LEGEND_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()org.gvsig.fmap.mapcontext.rendering.legend.IIntervalcreateInterval(double min, double max) Returns the final colorintReturns the initial color.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetEndColor(Color endColor) Inserts the final color.voidsetShapeType(int shapeType) voidsetStartColor(Color startColor) Inserts the initial colorMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractIntervalLegend
addSymbol, calculateIntervals, clear, createSymbols, delSymbol, getDefaultSymbol, getDescriptions, getInterval, getIntervalType, getSymbol, getSymbolByFeature, getSymbolByInterval, getSymbols, getValues, isUseDefaultSymbol, replace, setDefaultSymbol, setIntervals, setIntervalType, useDefaultSymbolMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
fireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType, setClassifyingFieldNames, setClassifyingFieldTypesMethods 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, getClassifyingFieldTypes, setClassifyingFieldNames, setClassifyingFieldTypesMethods 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, isSuitableForShapeType, print, print
-
Field Details
-
VECTORIAL_INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
VectorialIntervalLegend
public VectorialIntervalLegend()Constructor method -
VectorialIntervalLegend
public VectorialIntervalLegend(int type) Constructor method- Parameters:
type- type of the shape.
-
-
Method Details
-
getEndColor
Returns the final color- Returns:
- Color final color.
-
setEndColor
Inserts the final color.- Parameters:
endColor- final color.
-
getStartColor
Returns the initial color.- Returns:
- Color initial color.
-
setStartColor
Inserts the initial color- Parameters:
startColor- initial color.
-
getShapeType
public int getShapeType() -
setShapeType
public void setShapeType(int shapeType) -
getClassName
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractIntervalLegend- Throws:
CloneNotSupportedException
-
createInterval
public org.gvsig.fmap.mapcontext.rendering.legend.IInterval createInterval(double min, double max) -
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 classAbstractIntervalLegend- 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 classAbstractIntervalLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-