public class DocumentGraphic extends GraphicOverlay.Graphic
mOverlay| 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 |
setId(int id) |
postInvalidate, scaleX, scaleY, translateX, translateYpublic DocumentGraphic(GraphicOverlay overlay, Document doc)
public int getId()
public void setId(int id)
public void draw(android.graphics.Canvas canvas)
Graphic#scaleX(float) and Graphic#scaleY(float) adjust the size of
the supplied value from the preview scale to the view scale.Graphic#translateX(float) and Graphic#translateY(float) adjust the
coordinate from the preview's coordinate system to the view coordinate system.draw in class GraphicOverlay.Graphiccanvas - drawing canvas