public class DocumentGraphic
extends GraphicOverlay.Graphic
| Constructor and Description |
|---|
DocumentGraphic(GraphicOverlay overlay,
Document doc) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas)
Draw the graphic on the supplied canvas.
|
int |
getId() |
void |
setBorderColor(int borderColor) |
void |
setFillColor(int fillColor) |
void |
setId(int id) |
public DocumentGraphic(GraphicOverlay overlay,
Document doc)
public int getId()
public void setId(int id)
public void setBorderColor(int borderColor)
public void setFillColor(int fillColor)
public void draw(android.graphics.Canvas canvas)
GraphicOverlay.Graphic#scaleX(float) and GraphicOverlay.Graphic#scaleY(float) adjust the size of
the supplied value from the preview scale to the view scale.GraphicOverlay.Graphic#translateX(float) and GraphicOverlay.Graphic#translateY(float) adjust the
coordinate from the preview's coordinate system to the view coordinate system.canvas - drawing canvas