|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.symbol.LineSymbol
public abstract class LineSymbol
Base class for line symbols. Use its subclasses (for example: SimpleLineSymbol) directly to draw lines on the graphics layer.
| Constructor Summary | |
|---|---|
LineSymbol()
Instantiates an empty object of LineSymbol. |
|
LineSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of LineSymbol from a JsonNode. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.core.symbol.Symbol |
|---|
copy, toJson |
| Constructor Detail |
|---|
public LineSymbol(org.codehaus.jackson.JsonNode node)
throws Exception
node - the LineSymbol node.
Exceptionpublic LineSymbol()
| Method Detail |
|---|
public int getColor()
public void setColor(int color)
color - the color in ARGB color value.public float getWidth()
public void setWidth(float width)
width - the line width in pixels.public int getAlpha()
getColor() >>> 24. It always returns a value between 0 (completely transparent) and 255 (completely
opaque).
public void setAlpha(int alpha)
alpha - the alpha component of the symbol's color.getAlpha()public boolean isAntiAlias()
public void setAntiAlias(boolean antiAlias)
antiAlias - set to true to enable the AntiAliasing, or false otherwise.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||