Class SimpleMarkerSymbol
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.marker.impl.AbstractMarkerSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.SimpleMarkerSymbol
- 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.marker.IMarkerSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class SimpleMarkerSymbol
extends AbstractMarkerSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
SimpleMarkerSymbol is the most basic symbol for the representation of point objects
which can define its size and color apart from the rotation and the offset from a point
in the map.
- Author:
- 2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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.marker.impl.AbstractMarkerSymbol
MARKER_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.marker.IMarkerSymbol
CIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddraw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) Returns the outline color for the symple marker symboldoubleGets the size of the outline for the simple marker symbolorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolintgetStyle()Obtains the style for the simple marker symbolorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolForSelection(Color selectionColor) booleanReturns true or false depending if the simple marker symbol has an outline or not.booleanReturns if the marker symbol should be drawn outlined.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetOutlineColor(Color outlineColor) Sets the outline color for the simple marker symbolvoidsetOutlined(boolean outlined) Establishes the outline for the simple marker symbol.voidsetOutlineSize(double outlineSize) Establishes the size for the outline of the simple marker symbolvoidsetSelectionSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol selectionSymbol) voidsetStyle(int style) Sets the style for the simple marker symbolMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbol
getAdjustedSize, getCartographicSize, getColor, getEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getMask, getOffset, getOffsetXExpression, getOffsetYExpression, getPoint, getRotation, getRotationExpression, getRotationInDegrees, getRotationInRadians, getSampleGeometry, getSize, getSizeExpression, getSymbolTable, getSymbolType, isDrawLineToOffset, isSuitableFor, setAlpha, setColor, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setMask, setOffset, setOffsetXExpression, setOffsetYExpression, setRotation, setRotationExpression, setRotationInDegrees, setRotationInRadians, setSize, setSizeExpressionMethods 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, setUnit, 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, setUnit, toCartographicUnitsMethods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
getColor, getMask, getOffset, getRotation, getSize, setAlpha, setColor, setMask, setOffset, setRotation, setSizeMethods 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, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setFeature, setID
-
Field Details
-
SIMPLE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
SimpleMarkerSymbol
public SimpleMarkerSymbol()
-
-
Method Details
-
getSymbolForSelection
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection(Color selectionColor) - 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 affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) - Specified by:
drawin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
hasOutline
public boolean hasOutline()Returns true or false depending if the simple marker symbol has an outline or not.- Specified by:
hasOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- Returns the outline.
-
setOutlined
public void setOutlined(boolean outlined) Establishes the outline for the simple marker symbol.- Specified by:
setOutlinedin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Parameters:
outline- The outline to set.
-
getOutlineColor
Returns the outline color for the symple marker symbol- Specified by:
getOutlineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- Color,outlineColor.
-
setOutlineColor
Sets the outline color for the simple marker symbol- Specified by:
setOutlineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Parameters:
outlineColor- , Color
-
getOutlineSize
public double getOutlineSize()Gets the size of the outline for the simple marker symbol- Specified by:
getOutlineSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- Returns the outlineSize.
-
setOutlineSize
public void setOutlineSize(double outlineSize) Establishes the size for the outline of the simple marker symbol- Specified by:
setOutlineSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Parameters:
outlineSize- The outlineSize to set.
-
getSelectionSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSelectionSymbol()- Specified by:
getSelectionSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- Returns the selectionSymbol.
-
setSelectionSymbol
public void setSelectionSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol selectionSymbol) - Specified by:
setSelectionSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Parameters:
selectionSymbol- The selectionSymbol to set.
-
setStyle
public void setStyle(int style) Sets the style for the simple marker symbol- Specified by:
setStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Parameters:
style-
-
getStyle
public int getStyle()Obtains the style for the simple marker symbol- Specified by:
getStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- markerStyle,int
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractMarkerSymbol- Throws:
CloneNotSupportedException
-
isOutlined
public boolean isOutlined()Returns if the marker symbol should be drawn outlined.- Specified by:
isOutlinedin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol- Returns:
- if it is outlined
-
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 classAbstractMarkerSymbol- 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 classAbstractMarkerSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-