Modifier and Type | Field and Description |
---|---|
float[] |
color |
java.nio.FloatBuffer |
floatBuffer |
java.lang.String |
name |
int |
vertextCount |
protected int |
weight |
Constructor and Description |
---|
Line() |
Line(MapLocation[] lines)
At least 2 locations must be given.
|
Line(java.lang.String name) |
Line(java.lang.String name,
MapLocation[] lines)
At least 2 locations must be given.
|
Modifier and Type | Method and Description |
---|---|
MapLocation[] |
getBound() |
float[] |
getColor() |
Line |
getLineBound()
Get rectangle bound of this line as another
Line |
ILineListener |
getListener() |
MapLocation[] |
getLocations() |
protected IRequestRender |
getRequestRender() |
java.lang.String |
getTag() |
RectF |
getTranslatedBound()
Get bound in OpenGl Translate value
|
int |
getWeight() |
int |
getWidth() |
boolean |
isDrawBound() |
boolean |
setColor(float[] color)
In r,g,b,a format e.g.
|
void |
setDrawBound(boolean drawBound)
Show/hide line's bound
|
void |
setListener(ILineListener listener) |
void |
setLocation(MapLocation[] lines)
At least 2 locations must be given.
|
protected void |
setRequestRender(IRequestRender requestRender) |
void |
setTag(java.lang.String tag) |
void |
setWeight(int weight)
The more weight the lower line is drawn.
|
void |
setWidth(int width) |
JSONObject |
toJSONObject() |
java.lang.String |
toString()
return JSON represent this Line object
|
public java.nio.FloatBuffer floatBuffer
public java.lang.String name
public int vertextCount
public float[] color
protected int weight
public Line()
public Line(java.lang.String name)
public Line(MapLocation[] lines)
lines
- public Line(java.lang.String name, MapLocation[] lines)
lines
- public MapLocation[] getLocations()
public void setLocation(MapLocation[] lines)
lines
- public MapLocation[] getBound()
public RectF getTranslatedBound()
public void setDrawBound(boolean drawBound)
drawBound
- public boolean isDrawBound()
public java.lang.String toString()
toString
in class java.lang.Object
public JSONObject toJSONObject()
public boolean setColor(float[] color)
color
- public float[] getColor()
public void setWidth(int width)
public int getWidth()
public java.lang.String getTag()
public void setTag(java.lang.String tag)
public int getWeight()
public void setWeight(int weight)
weight
- public ILineListener getListener()
public void setListener(ILineListener listener)
protected IRequestRender getRequestRender()
protected void setRequestRender(IRequestRender requestRender)