6.3.2.5.1. DrawItem

public class DrawItem

6.3.2.5.1.1. Fields

6.3.2.5.1.1.1. EDGE_RADIUS

public static final int EDGE_RADIUS

6.3.2.5.1.1.2. LINE_WIDTH

public static final int LINE_WIDTH

6.3.2.5.1.1.3. TYPE_EDGE

public static final int TYPE_EDGE

6.3.2.5.1.1.4. TYPE_VERTEX

public static final int TYPE_VERTEX

6.3.2.5.1.1.5. VERTEX_RADIUS

public static final int VERTEX_RADIUS

6.3.2.5.1.1.6. mAnchor

protected static Bitmap mAnchor

6.3.2.5.1.1.7. mAnchorCenterX

protected static float mAnchorCenterX

6.3.2.5.1.1.8. mAnchorRectOffsetX

protected static float mAnchorRectOffsetX

6.3.2.5.1.1.9. mAnchorTolerancePX

public static float mAnchorTolerancePX

6.3.2.5.1.1.10. mDrawItemsEdge

protected List<float[]> mDrawItemsEdge

6.3.2.5.1.1.11. mDrawItemsVertex

protected List<float[]> mDrawItemsVertex

6.3.2.5.1.1.12. mPaint

protected static Paint mPaint

6.3.2.5.1.1.13. mSelectedRing

protected int mSelectedRing

6.3.2.5.1.2. Constructors

6.3.2.5.1.2.1. DrawItem

public DrawItem()

6.3.2.5.1.2.2. DrawItem

public DrawItem(int type, float[] points)

6.3.2.5.1.3. Methods

6.3.2.5.1.3.1. addEdges

public void addEdges(float[] points)

6.3.2.5.1.3.2. addNewPoint

public void addNewPoint(float x, float y)

6.3.2.5.1.3.3. addVertices

public void addVertices(float[] points)

6.3.2.5.1.3.4. deleteSelectedPoint

public void deleteSelectedPoint(VectorLayer layer)

6.3.2.5.1.3.5. deleteSelectedRing

public void deleteSelectedRing()

6.3.2.5.1.3.6. drawAnchor

protected void drawAnchor(Canvas canvas, float[] items)

6.3.2.5.1.3.7. drawLines

public void drawLines(Canvas canvas, boolean isSelected, boolean drawPoints, boolean drawEdges, boolean closed)

6.3.2.5.1.3.8. drawPoints

public void drawPoints(Canvas canvas, boolean isSelected)

6.3.2.5.1.3.9. drawPoints

protected void drawPoints(Canvas canvas, float[] items, float radius)

6.3.2.5.1.3.10. getEdges

public List<float[]> getEdges()

6.3.2.5.1.3.11. getMinPointCount

public static int getMinPointCount(int type)

6.3.2.5.1.3.12. getRing

public float[] getRing(int ring)

6.3.2.5.1.3.13. getRingCount

public int getRingCount()

6.3.2.5.1.3.14. getSelectedPoint

public PointF getSelectedPoint()

6.3.2.5.1.3.15. getSelectedPointId

public int getSelectedPointId()

6.3.2.5.1.3.16. getSelectedRing

public float[] getSelectedRing()

6.3.2.5.1.3.17. getSelectedRingId

public int getSelectedRingId()

6.3.2.5.1.3.18. insertNewPoint

public void insertNewPoint(int insertPosition, float x, float y)

6.3.2.5.1.3.19. intersectsEdges

public boolean intersectsEdges(GeoEnvelope screenEnv)

6.3.2.5.1.3.20. intersectsVertices

public boolean intersectsVertices(GeoEnvelope screenEnv)

6.3.2.5.1.3.21. isTapNearSelectedPoint

public boolean isTapNearSelectedPoint(GeoEnvelope screenEnv)

6.3.2.5.1.3.22. pan

public DrawItem pan(PointF offset)

6.3.2.5.1.3.23. setAnchor

public static void setAnchor(Context context, Bitmap anchor)

6.3.2.5.1.3.24. setEdgeStyle

public static void setEdgeStyle(VertexStyle edgeStyle)

6.3.2.5.1.3.25. setLineStyle

public static void setLineStyle(EditStyle lineStyle)

6.3.2.5.1.3.26. setPolygonStyle

public static void setPolygonStyle(EditStyle polygonStyle)

6.3.2.5.1.3.27. setRing

public void setRing(int ring, float[] points)

6.3.2.5.1.3.28. setSelectedPoint

public void setSelectedPoint(int selectedPoint)

6.3.2.5.1.3.29. setSelectedPointCoordinates

public void setSelectedPointCoordinates(float x, float y)

6.3.2.5.1.3.30. setSelectedRing

public void setSelectedRing(int selectedRing)

6.3.2.5.1.3.31. setVertexStyle

public static void setVertexStyle(VertexStyle vertexStyle)

6.3.2.5.1.3.32. zoom

public DrawItem zoom(PointF location, float scale)