Class DotDensityLegend
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.VectorialUniqueValueLegend
org.gvsig.symbology.fmap.rendering.DotDensityLegend
- 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.IVectorialUniqueValueLegend,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 DotDensityLegend
extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
Implements a legend where the magnitudes of a specific area of the
map are represented by the density of the points that are distributed
in the surface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
VECTORIAL_UNIQUE_VALUE_LEGEND_PERSISTENCE_DEFINITION_NAMEFields 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
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.IVectorialUniqueValueLegend
LEGEND_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Obtains the background color for the dot density legendString[]Returns the color for the dot used in the dot density legend.doubleObtains the size of the dot that is used in the dot density legenddoubleReturns the value for the dot that is used in the dot density legendorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbolReturns the outlineorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByValue(Object val) static booleanisPolygonal(int ty) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetBGColor(Color color) Sets the background color for the dot density legendvoidsetDotColor(Color color) Sets the color for the dot used in the dot density legend.voidsetDotSize(double value) Sets the size of the dot that is used in the dot density legendvoidsetDotValue(double dotValue) Establishes the value for the dot used in the dot density legendMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
addSymbol, clear, delAllSymbols, delSymbol, getClassName, getColorScheme, getDefaultSymbol, getShapeType, getSymbolKey, getSymbols, getValues, isUseDefaultSymbol, replace, setClassifyingFieldNames, setClassifyingFieldTypes, setColorScheme, setDefaultSymbol, setShapeType, setValueSymbolByID, useDefaultSymbolMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
fireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, 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.IClassifiedVectorLegend
getClassifyingFieldNames, getClassifyingFieldTypesMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
getZSort, setZSortMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw, draw, isSuitableForShapeType, print, print
-
Field Details
-
DOT_DENSITY_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
DOT_DENSITY_LEGEND_NAME
- See Also:
-
-
Constructor Details
-
DotDensityLegend
public DotDensityLegend()
-
-
Method Details
-
getSymbolByValue
- Specified by:
getSymbolByValuein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend- Overrides:
getSymbolByValuein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) - Specified by:
getSymbolByFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Overrides:
getSymbolByFeaturein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
-
setDotValue
public void setDotValue(double dotValue) Establishes the value for the dot used in the dot density legend- Parameters:
dotValue-
-
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.VectorialUniqueValueLegend- 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.VectorialUniqueValueLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getOutline
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getOutline()Returns the outline- Returns:
-
getDotColor
Returns the color for the dot used in the dot density legend.- Returns:
-
setDotColor
Sets the color for the dot used in the dot density legend. -
getBGColor
Obtains the background color for the dot density legend- Returns:
-
setBGColor
Sets the background color for the dot density legend -
getDotValue
public double getDotValue()Returns the value for the dot that is used in the dot density legend- Returns:
-
getDotSize
public double getDotSize()Obtains the size of the dot that is used in the dot density legend- Returns:
-
setDotSize
public void setDotSize(double value) Sets the size of the dot that is used in the dot density legend -
isPolygonal
public static boolean isPolygonal(int ty) -
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend- Throws:
CloneNotSupportedException
-
getDescriptions
- Specified by:
getDescriptionsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend- Overrides:
getDescriptionsin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
-