Interface ILineSymbol
- 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:
IMultiLayerLineSymbol,IPictureLineSymbol,ISimpleLineSymbol
public interface ILineSymbol
extends org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
Interface for line symbols.It has the different methods to obtain or define
the attributes of a line such as color, style, width and alpha (transparency).
- 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
FieldsFields 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 TypeMethodDescriptionintgetAlpha()Obtains the transparency of the line symbolgetColor()Returns the color of the line symbolObtains the style of the line symbol.doubleReturns the width of the line symbolvoidsetAlpha(int outlineAlpha) Defines the transparency of a line symbol.voidsetLineColor(Color color) Sets the color for a line symbolvoidsetLineStyle(ILineStyle lineStyle) Defines the style of the line symbol to be used.voidsetLineWidth(double width) Sets the width of the line symbol.Methods 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, setColor, setDescription, setFeature, setIDMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
SYMBOL_NAME
- See Also:
-
-
Method Details
-
getColor
Color getColor()Returns the color of the line symbol- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Returns:
- Color
-
setLineColor
Sets the color for a line symbol- Parameters:
color-
-
getLineStyle
ILineStyle getLineStyle()Obtains the style of the line symbol.- Returns:
- ILineStyle, the style of the line symbol
-
setLineStyle
Defines the style of the line symbol to be used.- Parameters:
lineStyle-
-
setLineWidth
void setLineWidth(double width) Sets the width of the line symbol.- Parameters:
width- , the width of the line
-
getLineWidth
double getLineWidth()Returns the width of the line symbol- Returns:
-
getAlpha
int getAlpha()Obtains the transparency of the line symbol- Returns:
-
setAlpha
void setAlpha(int outlineAlpha) Defines the transparency of a line symbol.- Parameters:
outlineAlpha- , the transparency
-