public class Polyline extends Primitive
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getColor()
Gets the color of this polyline.
|
float |
getWidth()
Gets the width of this polyline.
|
int |
hashCode() |
boolean |
isValid() |
void |
remove()
Removes the polyline from the map.
|
Renderable |
selectTopMostRenderableAt(double[] touchPoint,
double radius)
Returns the renderable at the point provided.
|
void |
setColor(int color)
Sets the color of this polyline.
|
void |
setVisibility(boolean isVisible)
Sets the visibility of this
Renderable. |
void |
setWidth(float width)
Sets the line width of this polyline.
|
void |
update()
Prepare this
Renderable for rendering might be better. |
notifyDataChanged, registerDataChangeListener, release, setZIndex, unregisterDataChangeListenergetTag, getZIndex, isSelectable, isVisible, selectable, setTagpublic void setColor(int color)
color - The color in ARGB formatpublic int getColor()
public void setWidth(float width)
width - the line width in screen pixels.public float getWidth()
public void setVisibility(boolean isVisible)
RenderableRenderable.setVisibility in class RenderableisVisible - If true, then the primitive is visible; if false, it is not.public void update()
RenderableRenderable for rendering might be better.public boolean isValid()
true if Renderable can be rendered by CustomOverlayRenderer.public void remove()
public Renderable selectTopMostRenderableAt(double[] touchPoint, double radius)
RenderabletouchPoint - the point to check whether a renderable exists, values in world coordinates.radius - the touchPoint, where the renderables are checked for, in world coordinates.