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.
void setAlpha(int alpha)
Sets the symbol transparency.
void setAntiAlias(boolean antiAlias)
AntiAliasing smooths out the edges of what is being drawn, but is has no impact on the interior of the shape.
void setColor(int color)
Sets the color of the line.
void 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 the LineSymbol node.
Throws
Exception the exception

public LineSymbol ()

Instantiates an empty object of LineSymbol.

Public Methods

public boolean equals (Object obj)

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
  • 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
  • the color in RGB color value.

public float getWidth ()

Returns the line width in pixels.

Returns
  • Returns the line width in pixels.

public int hashCode ()

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
  • true, if checks if is anti alias

public void setAlpha (int alpha)

Sets the symbol transparency.

Parameters
alpha the alpha component of the symbol's color.
See Also

public void 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 set to true to enable the AntiAliasing, or false otherwise.

public void 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 the color in ARGB color value.

public void setWidth (float width)

Sets the line width in pixels.

Parameters
width the line width in pixels.