public class ProportionalSymbolsLegend
extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
ProportionalSymbolsLegend.RegisterLegend |
static class |
ProportionalSymbolsLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPORTIONAL_SYMBOL_LEGEND_NAME |
static java.lang.String |
PROPORTIONAL_SYMBOL_LEGEND_PERSISTENCE_DEFINITION_NAME |
VECTORIAL_UNIQUE_VALUE_LEGEND_PERSISTENCE_DEFINITION_NAMECLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAMEVECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME| Constructor and Description |
|---|
ProportionalSymbolsLegend() |
| Modifier and Type | Method and Description |
|---|---|
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getBackgroundSymbol()
Gets the background symbol which only can appear when the shapetype of the layer
is polygonal
|
double |
getMaxFeature()
Obtains the variable which represents the maximum value of the classifying field that is used
to calculate the size of the symbol
|
double |
getMaxSize()
Obtains the maximum size for the symbol
|
double |
getMinFeature()
Obtains the variable which represents the minimum value of the classifying field that is used
to calculate the size of the symbol
|
double |
getMinSize()
Obtains the minimum size for the symbol
|
java.lang.String |
getNormalizationField()
Obtains the classifying field name to be used to calculate the size of the symbol when the
user is doing it with a normalization value.
|
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getSymbolByValue(java.lang.Object key) |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] |
getSymbols() |
int |
getTemplateShapeType()
Obtains the shapetype of the template symbol
|
boolean |
getUseNormalization()
Obtains the boolean which is true if the user wants to calculate the size of the
symbol using a normalization field.
|
java.lang.String |
getValueField()
Obtains the classifying field name to be used to calculate the size of the symbol
|
org.gvsig.fmap.mapcontext.rendering.legend.ZSort |
getZSort() |
static boolean |
isLinear(int ty) |
static boolean |
isPoint(int ty) |
static boolean |
isPolygonal(int ty) |
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 backgroundSymbol)
Sets the background symbol which is used only when the shapetype of the layer is polygonal
|
void |
setClassifyingFieldNames(java.lang.String[] fNames) |
void |
setMaxFeature(double maxFeature)
Sets the variable which represents the maximum value of the classifying field that is used
to calculate the size of the symbol
|
void |
setMaxSize(double maxSize)
Sets the maximum size for the symbol
|
void |
setMinFeature(double minFeature)
Sets the variable which represents the minimum value of the classifying field that is used
to calculate the size of the symbol
|
void |
setMinSize(double minSize)
Sets the minimum size for the symbol
|
void |
setNormalizationField(java.lang.String normalizationField)
Sets the classifying field name to be used to calculate the size of the symbol when the
user is doing it with a normalization value.
|
void |
setTemplateShapeType(int tst)
Sets the shapetype of the template symbol
|
void |
setUseNormalization(boolean useNormalization)
Sets the boolean which is true if the user wants to calculate the size of the
symbol using a normalization field.
|
void |
setValueField(java.lang.String valueField)
Sets the classifying field name to be used to calculate the size of the symbol
|
void |
setZSort(org.gvsig.fmap.mapcontext.rendering.legend.ZSort zSort) |
addSymbol, clear, clone, delSymbol, getClassName, getColorScheme, getDefaultSymbol, getDescriptions, getShapeType, getSymbolKey, getValues, isUseDefaultSymbol, replace, setColorScheme, setDefaultSymbol, setShapeType, setValueSymbolByID, useDefaultSymbolfireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType, setClassifyingFieldTypesdraw, draw, draw, internalDraw, print, printaddDrawingObserver, 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, setClassifyingFieldTypesdraw, draw, isSuitableForShapeType, print, printpublic static final java.lang.String PROPORTIONAL_SYMBOL_LEGEND_NAME
public static final java.lang.String PROPORTIONAL_SYMBOL_LEGEND_PERSISTENCE_DEFINITION_NAME
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getBackgroundSymbol()
public double getMaxFeature()
public double getMaxSize()
public double getMinFeature()
public double getMinSize()
public java.lang.String getNormalizationField()
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat)
getSymbolByFeature in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegendgetSymbolByFeature in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegendpublic org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByValue(java.lang.Object key)
getSymbolByValue in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegendgetSymbolByValue in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegendpublic org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] getSymbols()
getSymbols in interface org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegendgetSymbols in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegendpublic int getTemplateShapeType()
public boolean getUseNormalization()
public java.lang.String getValueField()
ReadDriverExceptionpublic org.gvsig.fmap.mapcontext.rendering.legend.ZSort getZSort()
getZSort in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegendgetZSort in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegendpublic static boolean isLinear(int ty)
public static boolean isPoint(int ty)
public static boolean isPolygonal(int ty)
public 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.VectorialUniqueValueLegendorg.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.VectorialUniqueValueLegendorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void setBackgroundSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol backgroundSymbol)
backgroundSymbol - the symbol for the backgroundpublic void setClassifyingFieldNames(java.lang.String[] fNames)
setClassifyingFieldNames in interface org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegendsetClassifyingFieldNames in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegendpublic void setMaxFeature(double maxFeature)
maxFeature - public void setMaxSize(double maxSize)
maxSize - the minimum size for the symbolpublic void setMinFeature(double minFeature)
minFeature - public void setMinSize(double minSize)
minSize - the minimum size for the symbolpublic void setNormalizationField(java.lang.String normalizationField)
String - the name of the fieldpublic void setTemplateShapeType(int tst)
templateShapeType - shape type for the template symbolpublic void setUseNormalization(boolean useNormalization)
useNormalization - true if the user wants normalization.Otherwise, false.public void setValueField(java.lang.String valueField)
String - the name of the fieldpublic void setZSort(org.gvsig.fmap.mapcontext.rendering.legend.ZSort zSort)
setZSort in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegendsetZSort in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegendCopyright © 2013 gvSIG Association. All Rights Reserved.