java.lang.Object | |
↳ | com.esri.core.symbol.LineSymbol |
Known Direct Subclasses |
Base class for line symbols. Use its subclasses (for example: SimpleLineSymbol) directly to draw lines on the graphics layer.
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
|
Instantiates an object of LineSymbol from a JsonNode.
node | the LineSymbol node. |
---|
Exception | the exception |
---|
Instantiates an empty object of LineSymbol.
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 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 line width in pixels.
AntiAliasing smoothes out the edges of what is being drawn, but is has no impact on the interior of the shape.
Sets the symbol transparency.
alpha | the alpha component of the symbol's color. |
---|
AntiAliasing smooths out the edges of what is being drawn, but is has no impact on the interior of the shape.
antiAlias | set to true to enable the AntiAliasing, or false otherwise. |
---|
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.
color | the color in ARGB color value. |
---|
Sets the line width in pixels.
width | the line width in pixels. |
---|