public abstract class

LineSymbol

extends Object
implements Symbol
java.lang.Object
   ↳ com.esri.core.symbol.LineSymbol
Known Direct Subclasses

Class Overview

Base class for line symbols. Use its subclasses (for example: SimpleLineSymbol) directly to draw lines on the graphics layer.

Summary

Public Constructors
LineSymbol(JsonNode node)
Instantiates an object of LineSymbol from a JsonNode.
LineSymbol()
Instantiates an empty object of LineSymbol.
Public Methods
boolean equals(Object obj)
int getAlpha()
Helper to getColor() that just returns the color's alpha value.
int getColor()
Returns the color of the line.
float getWidth()
Returns the line width in pixels.
int hashCode()
boolean isAntiAlias()
AntiAliasing smoothes out the edges of what is being drawn, but is has no impact on the interior of the shape.
LineSymbol setAlpha(int alpha)
Sets the symbol transparency.
LineSymbol setAntiAlias(boolean antiAlias)
AntiAliasing smooths out the edges of what is being drawn, but is has no impact on the interior of the shape.
LineSymbol setColor(int color)
Sets the color of the line.
LineSymbol setWidth(float width)
Sets the line width in pixels.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Public Constructors

public LineSymbol (JsonNode node)

Instantiates an object of LineSymbol from a JsonNode.

Parameters
node JsonNode: the LineSymbol node.
Throws
Exception the exception

public LineSymbol ()

Instantiates an empty object of LineSymbol.

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public int getAlpha ()

Helper to getColor() that just returns the color's alpha value. This is the same as calling getColor() >>> 24. It always returns a value between 0 (completely transparent) and 255 (completely opaque).

Returns
int the alpha component of the symbol's color.

public int getColor ()

Returns the color of the line. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.

Returns
int the color in RGB color value.

public float getWidth ()

Returns the line width in pixels.

Returns
float Returns the line width in pixels.

public int hashCode ()

Returns
int

public boolean isAntiAlias ()

AntiAliasing smoothes out the edges of what is being drawn, but is has no impact on the interior of the shape.

Returns
boolean true, if checks if is anti alias

public LineSymbol setAlpha (int alpha)

Sets the symbol transparency.

Parameters
alpha int: the alpha component of the symbol's color.
Returns
LineSymbol

See also:

public LineSymbol setAntiAlias (boolean antiAlias)

AntiAliasing smooths out the edges of what is being drawn, but is has no impact on the interior of the shape.

Parameters
antiAlias boolean: set to true to enable the AntiAliasing, or false otherwise.
Returns
LineSymbol

public LineSymbol setColor (int color)

Sets the color of the line. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.

Parameters
color int: the color in ARGB color value.
Returns
LineSymbol

public LineSymbol setWidth (float width)

Sets the line width in pixels.

Parameters
width float: the line width in pixels.
Returns
LineSymbol