Class AbstractIntervalLegend
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
- 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
- Direct Known Subclasses:
VectorialIntervalLegend
public abstract class AbstractIntervalLegend
extends AbstractClassifiedVectorLegend
implements org.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
- Author:
- 2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolstatic final intstatic final Stringprotected intstatic final intstatic final intprotected booleanFields 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 TypeMethodDescriptionvoidorg.gvsig.fmap.mapcontext.rendering.legend.IInterval[]calculateIntervals(org.gvsig.fmap.dal.feature.FeatureStore featureStore, String fieldName, int numIntervalos, int shapeType) voidclear()clone()Map<org.gvsig.fmap.mapcontext.rendering.legend.IInterval, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol> createSymbols(org.gvsig.fmap.mapcontext.rendering.legend.IInterval[] intervals) voidorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolString[]org.gvsig.fmap.mapcontext.rendering.legend.IIntervalintorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbol(org.gvsig.fmap.dal.feature.FeatureReference featureID) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByInterval(org.gvsig.fmap.mapcontext.rendering.legend.IInterval key) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[]Object[]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) voidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetIntervals(org.gvsig.fmap.mapcontext.rendering.legend.IInterval[] intervals) voidsetIntervalType(int intervalType) voiduseDefaultSymbol(boolean b) Methods 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.IVectorialIntervalLegend
getEndColor, getStartColor, setEndColor, setStartColorMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, getShapeType, isSuitableForShapeType, print, print, setShapeType
-
Field Details
-
INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
keys
-
defaultSymbol
protected org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol defaultSymbol -
intervalType
protected int intervalType -
useDefaultSymbol
protected boolean useDefaultSymbol -
EQUAL_INTERVALS
public static final int EQUAL_INTERVALS- See Also:
-
NATURAL_INTERVALS
public static final int NATURAL_INTERVALS- See Also:
-
QUANTILE_INTERVALS
public static final int QUANTILE_INTERVALS- See Also:
-
symbols
-
-
Constructor Details
-
AbstractIntervalLegend
public AbstractIntervalLegend()
-
-
Method Details
-
addSymbol
- Specified by:
addSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbol(org.gvsig.fmap.dal.feature.FeatureReference featureID) throws org.gvsig.fmap.mapcontext.MapContextException, org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.mapcontext.MapContextExceptionorg.gvsig.fmap.dal.exception.DataException
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.mapcontext.MapContextException - Specified by:
getSymbolByFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Throws:
org.gvsig.fmap.mapcontext.MapContextException
-
calculateIntervals
public org.gvsig.fmap.mapcontext.rendering.legend.IInterval[] calculateIntervals(org.gvsig.fmap.dal.feature.FeatureStore featureStore, String fieldName, int numIntervalos, int shapeType) throws org.gvsig.fmap.dal.exception.DataException - Specified by:
calculateIntervalsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend- Throws:
org.gvsig.fmap.dal.exception.DataException
-
getSymbolByInterval
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByInterval(org.gvsig.fmap.mapcontext.rendering.legend.IInterval key) - Specified by:
getSymbolByIntervalin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-
getDescriptions
- Specified by:
getDescriptionsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
getValues
- Specified by:
getValuesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
clear
public void clear()- Specified by:
clearin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
getSymbols
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] getSymbols()- Specified by:
getSymbolsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
setDefaultSymbol
public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) - Specified by:
setDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend- Specified by:
setDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
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
-
getInterval
- Specified by:
getIntervalin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-
setIntervalType
public void setIntervalType(int intervalType) - Specified by:
setIntervalTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-
getIntervalType
public int getIntervalType()- Specified by:
getIntervalTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-
useDefaultSymbol
public void useDefaultSymbol(boolean b) - Specified by:
useDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
isUseDefaultSymbol
public boolean isUseDefaultSymbol()- Specified by:
isUseDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
delSymbol
- Specified by:
delSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend
-
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
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractClassifiedVectorLegend- 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 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
-
createSymbols
public Map<org.gvsig.fmap.mapcontext.rendering.legend.IInterval,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol> createSymbols(org.gvsig.fmap.mapcontext.rendering.legend.IInterval[] intervals) - Specified by:
createSymbolsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-
setIntervals
public void setIntervals(org.gvsig.fmap.mapcontext.rendering.legend.IInterval[] intervals) - Specified by:
setIntervalsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegend
-