Package org.gvsig.symbology.fmap.symbols
Class DotDensityFillSymbol
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.AbstractFillSymbol
org.gvsig.symbology.fmap.symbols.DotDensityFillSymbol
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class DotDensityFillSymbol
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.AbstractFillSymbol
Symbol that draws a set of points within a polygon. The amount of points is
defined by the field dotCount.
This symbol only draws the points. The outline and the fill of the polygon is
handled by a SimpleFillSymboll where a DotDensityFillSymbol should be
embedded.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.AbstractFillSymbol
FILL_SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
SYMBOL_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D g, AffineTransform atr, org.gvsig.fmap.geom.Geometry theGeom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) intdoubledoubleorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolintvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetDotColor(Color dotColor) voidsetDotCount(int dotCount) voidsetDotSize(double dotSize) voidsetDotSpacing(double dotSpacing) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.AbstractFillSymbol
clone, getCartographicSize, getColor, getFillAlpha, getFillColor, getOutline, getSampleGeometry, hasFill, hasOutline, isSuitableFor, setCartographicSize, setColor, setFillColor, setHasFill, setHasOutline, setOutline, setUnit, toCartographicSizeMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisibleMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, toCartographicUnitsMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, toCartographicUnitsMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID
-
Field Details
-
DOT_DENSITY_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
DotDensityFillSymbol
public DotDensityFillSymbol()
-
-
Method Details
-
getSymbolForSelection
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection()- Specified by:
getSymbolForSelectionin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
getSymbolForSelectionin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
draw
public void draw(Graphics2D g, AffineTransform atr, org.gvsig.fmap.geom.Geometry theGeom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) -
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.symbol.fill.impl.AbstractFillSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getSymbolType
public int getSymbolType() -
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.symbol.fill.impl.AbstractFillSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getDotCount
public int getDotCount()- Returns:
-
setDotCount
public void setDotCount(int dotCount) - Parameters:
dotCount-
-
getDotSize
public double getDotSize()- Returns:
-
setDotSize
public void setDotSize(double dotSize) -
getDotSpacing
public double getDotSpacing()- Returns:
-
setDotSpacing
public void setDotSpacing(double dotSpacing) - Parameters:
dotSpacing-
-
getDotColor
-
setDotColor
-