public class GraduatedSymbolsLegend
extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend
GraduatedSymbolLegend is a legend that allows to classify ranges of values using a value with symbol sizes.
The symbol size will be calculated according the min size, the max size and the amount of intervals. So for a min size of 1, a max size of 5, and 5 intervals, symbol sizes will be [1, 2, 3, 4, 5].
| Modifier and Type | Class and Description |
|---|---|
static class |
GraduatedSymbolsLegend.RegisterLegend |
static class |
GraduatedSymbolsLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GRADUATED_SYMBOL_LEGEND_NAME |
static java.lang.String |
GRADUATED_SYMBOL_LEGEND_PERSISTENCE_DEFINITION_NAME |
VECTORIAL_INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAMEdefaultSymbol, EQUAL_INTERVALS, INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME, intervalType, keys, NATURAL_INTERVALS, QUANTILE_INTERVALS, symbols, useDefaultSymbolCLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAMEVECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSort| Constructor and Description |
|---|
GraduatedSymbolsLegend()
DefaultConstructor
|
GraduatedSymbolsLegend(org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend leg)
Convenience constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areSameBasicType(int ta,
int tb) |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getBackgroundSymbol()
Obtains the background symbol
|
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getDefaultSymbol() |
double |
getMaxSymbolSize()
Returns the max symbol size.
|
double |
getMinSymbolSize()
Returns the min symbol size.
|
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getSymbolByInterval(org.gvsig.fmap.mapcontext.rendering.legend.IInterval key) |
int |
getTemplateShapeType()
Obtains the shapetype of the background symbol
|
static boolean |
isLinear(int ty) |
static boolean |
isPoint(int ty) |
static boolean |
isPolygonal(int ty) |
boolean |
isSuitableForShapeType(int st) |
void |
loadFromState(org.gvsig.tools.persistence.PersistentState state) |
void |
saveToState(org.gvsig.tools.persistence.PersistentState state) |
void |
setBackgroundSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
Sets the background symbol.
|
void |
setMaxSymbolSize(double size)
Sets the max symbol size.
|
void |
setMinSymbolSize(double size)
Sets the min symbol size.
|
void |
setTemplateShapeType(int tst)
Sets the shapetype of the background symbol
|
static org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol |
toFillSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol sym) |
clone, createInterval, getClassName, getEndColor, getShapeType, getStartColor, setEndColor, setShapeType, setStartColoraddSymbol, calculateIntervals, clear, delSymbol, getDescriptions, getInterval, getIntervalType, getSymbol, getSymbols, getValues, isUseDefaultSymbol, replace, setDefaultSymbol, setIntervalType, useDefaultSymbolfireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, setClassifyingFieldNames, setClassifyingFieldTypesdraw, draw, draw, getZSort, internalDraw, print, print, setZSortaddDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassifyingFieldNames, getClassifyingFieldTypes, setClassifyingFieldNames, setClassifyingFieldTypesdraw, draw, print, printpublic static final java.lang.String GRADUATED_SYMBOL_LEGEND_NAME
public static final java.lang.String GRADUATED_SYMBOL_LEGEND_PERSISTENCE_DEFINITION_NAME
public GraduatedSymbolsLegend()
public GraduatedSymbolsLegend(org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegend leg)
leg - public static boolean areSameBasicType(int ta,
int tb)
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getBackgroundSymbol()
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getDefaultSymbol()
getDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.ILegendgetDefaultSymbol in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractIntervalLegendpublic double getMaxSymbolSize()
public double getMinSymbolSize()
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat)
throws org.gvsig.fmap.mapcontext.MapContextException
getSymbolByFeature in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegendgetSymbolByFeature in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractIntervalLegendorg.gvsig.fmap.mapcontext.MapContextExceptionpublic org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByInterval(org.gvsig.fmap.mapcontext.rendering.legend.IInterval key)
getSymbolByInterval in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialIntervalLegendgetSymbolByInterval in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractIntervalLegendpublic int getTemplateShapeType()
public static boolean isLinear(int ty)
public static boolean isPoint(int ty)
public static boolean isPolygonal(int ty)
public boolean isSuitableForShapeType(int st)
isSuitableForShapeType in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegendisSuitableForShapeType in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegendpublic void loadFromState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
loadFromState in interface org.gvsig.tools.persistence.PersistentloadFromState in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegendorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void saveToState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
saveToState in interface org.gvsig.tools.persistence.PersistentsaveToState in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialIntervalLegendorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void setBackgroundSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
symbol - public void setMaxSymbolSize(double size)
public void setMinSymbolSize(double size)
public void setTemplateShapeType(int tst)
public static org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol toFillSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol sym)
Copyright © 2013 gvSIG Association. All Rights Reserved.