public class EditPolygonImageView
Shows image of document and polygon, which contains document coordinates with ability to change polygon corners and edges Magnifier is shown when polygon corners are moved
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<android.graphics.PointF> |
DEFAULT_POLYGON |
| Constructor and Description |
|---|
EditPolygonImageView()
Constructor to embed view in XML layout
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchDraw() |
java.util.List<android.graphics.PointF> |
getPolygon() |
void |
onAttachedToWindow() |
void |
onDetachedFromWindow() |
void |
onLayout() |
void |
onMeasure() |
boolean |
onTouchEvent() |
void |
rotateClockwise()
Rotates view clockwise
|
void |
rotateCounterClockwise()
Rotates view counterclockwise
|
void |
setEdgeColor()
Sets edge color
|
void |
setEdgeColorOnLine()
Sets edge color on line
|
void |
setEdgeWidth()
Sets edge width in pixels
|
void |
setEditPolygonAnimationEndListener()
sets listener which will be invoked when animation will be finished
|
void |
setLines()
Sets detected horizontal and vertical lines
|
void |
setPolygon()
Sets polygon containing document coordinates
|
public EditPolygonImageView()
Constructor to embed view in XML layout
public void onAttachedToWindow()
public void onDetachedFromWindow()
public void onMeasure()
public void onLayout()
public void setPolygon()
Sets polygon containing document coordinates
public java.util.List<android.graphics.PointF> getPolygon()
public void setLines()
Sets detected horizontal and vertical lines
public void setEdgeColor()
Sets edge color
public void setEdgeColorOnLine()
Sets edge color on line
public void setEdgeWidth()
Sets edge width in pixels
public void rotateClockwise()
Rotates view clockwise
public void rotateCounterClockwise()
Rotates view counterclockwise
public void dispatchDraw()
public boolean onTouchEvent()
public void setEditPolygonAnimationEndListener()
sets listener which will be invoked when animation will be finished