public class ShapeAttribute extends Object
Created by xizhens on 2/28/14. Copyright reserved by Telenav.Inc
| Constructor and Description |
|---|
ShapeAttribute() |
| Modifier and Type | Method and Description |
|---|---|
int |
getColor()
This method is used to get the color from the attribute set.
|
double |
getLineWidth() |
double |
getStretchFactor() |
int |
getTextureResourceHeight() |
String |
getTextureResourceName() |
int |
getTextureResourceWidth() |
boolean |
isPatterned() |
void |
setColor(int color)
This method is used to set the color from the attribute set.
|
void |
setLineWidth(double lineWidth) |
void |
setPatterned(boolean isPatterned) |
void |
setStretchFactor(double stretchFactor) |
void |
setTextureResourceHeight(int textureResourceHeight) |
void |
setTextureResourceName(String textureResourceName) |
void |
setTextureResourceWidth(int textureResourceWidth) |
org.json.JSONObject |
toJson() |
public int getColor()
public void setColor(int color)
color - the color in RGB format, 0xaarrggbbpublic double getLineWidth()
public void setLineWidth(double lineWidth)
lineWidth - public double getStretchFactor()
public void setStretchFactor(double stretchFactor)
stretchFactor - public int getTextureResourceHeight()
public void setTextureResourceHeight(int textureResourceHeight)
textureResourceHeight - public int getTextureResourceWidth()
public void setTextureResourceWidth(int textureResourceWidth)
textureResourceWidth - public String getTextureResourceName()
public void setTextureResourceName(String textureResourceName)
textureResourceName - public boolean isPatterned()
public void setPatterned(boolean isPatterned)
isPatterned - public org.json.JSONObject toJson()
throws org.json.JSONException
org.json.JSONException