|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
Color |
getColor()
Returns the color of the line. |
float |
getWidth()
Returns the line width in pixels. |
int |
hashCode()
|
void |
setAlpha(int alpha)
Sets the symbol transparency. |
void |
setColor(Color color)
Sets the color of the line. |
void |
setWidth(float width)
Sets the line width in pixels. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, 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.
Exception
public LineSymbol()
Method Detail |
---|
public Color getColor()
public void setColor(Color 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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |