Interface IMarkerSymbol
- All Superinterfaces:
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol,org.gvsig.tools.persistence.Persistent
- All Known Subinterfaces:
IMarkerSymbol_v2,IMultiLayerMarkerSymbol,IPictureLineSymbol,IPictureMarkerSymbol,ISimpleMarkerSymbol
public interface IMarkerSymbol
extends org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
Represents an ISymbol that draws a marker symbol.It has the different
methods to obtain or define the attributes of a marker such as rotation,
offset, size, color and IMask.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the color of the marker symbol.getMask()Gets the offset for a marker symboldoubleReturns the rotation (in radians, counter-clockwise) of the marker symboldoublegetSize()Obtains the size of a marker symbolvoidsetAlpha(int alpha) Defines the transparency of a line symbol.voidEstablishes a color for the marker symbolvoidDefines a mask for the symbolvoidEstablishes the offset currently set for the marker symbol.voidsetRotation(double rotation) Sets the rotation of the marker symbolvoidsetSize(double size) Sets the size of marker symbolMethods 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.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setFeature, setIDMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
SYMBOL_NAME
- See Also:
-
CIRCLE_STYLE
static final int CIRCLE_STYLE- See Also:
-
SQUARE_STYLE
static final int SQUARE_STYLE- See Also:
-
CROSS_STYLE
static final int CROSS_STYLE- See Also:
-
DIAMOND_STYLE
static final int DIAMOND_STYLE- See Also:
-
X_STYLE
static final int X_STYLE- See Also:
-
TRIANGLE_STYLE
static final int TRIANGLE_STYLE- See Also:
-
STAR_STYLE
static final int STAR_STYLE- See Also:
-
VERTICAL_LINE_STYLE
static final int VERTICAL_LINE_STYLE- See Also:
-
HORIZONTAL_LINE_STYLE
static final int HORIZONTAL_LINE_STYLE- See Also:
-
-
Method Details
-
getRotation
double getRotation()Returns the rotation (in radians, counter-clockwise) of the marker symbol- Returns:
- double (rotation)
-
setRotation
void setRotation(double rotation) Sets the rotation of the marker symbol- Parameters:
rotation-
-
getOffset
Point2D getOffset()Gets the offset for a marker symbol- Returns:
- Point2D
-
setOffset
Establishes the offset currently set for the marker symbol.- Parameters:
offset-
-
getSize
double getSize()Obtains the size of a marker symbol- Returns:
-
setSize
void setSize(double size) Sets the size of marker symbol- Parameters:
size-
-
getColor
Color getColor()Returns the color of the marker symbol.- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Returns:
- Color
-
setColor
Establishes a color for the marker symbol- Specified by:
setColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Parameters:
color-
-
setAlpha
void setAlpha(int alpha) Defines the transparency of a line symbol.- Parameters:
outlineAlpha- , the transparency
-
getMask
IMask getMask()- Returns:
- the mask of the symbol
-
setMask
Defines a mask for the symbol- Parameters:
mask- ,IMask
-