CuneiPainter
Version 1.2
|
Canvas for drawing lines that indicate cuneiform characters. More...
Public Member Functions | |
DrawingCanvas (Context c, AttributeSet attrs) | |
Constructor for this class. More... | |
void | undoPath () |
void | redoPath () |
void | setOnLongClickListener (@Nullable OnLongClickListener l) |
boolean | onTouchEvent (MotionEvent event) |
Public Attributes | |
List< LineParameters > | lines = new LinkedList<>() |
List< String > | strokes = new LinkedList<>() |
int | width |
int | height |
Protected Member Functions | |
void | onSizeChanged (int w, int h, int oldw, int oldh) |
void | onDraw (Canvas canvas) |
Package Functions | |
void | clearCanvas () |
Clears the canvas. More... | |
Package Attributes | |
Integer | a =0 |
Integer | b =0 |
Integer | c =0 |
Integer | d =0 |
Integer | s =0 |
Integer | left =0 |
Integer | right =0 |
Integer | up =0 |
Integer | down =0 |
String | paleocodage ="" |
float | mY |
Private Member Functions | |
void | startTouch (float x, float y) |
void | moveTouch (float x, float y) |
void | upTouch () |
Private Attributes | |
Canvas | mCanvas |
float | startX |
float | startY |
Path | mPath |
CuneiPainter | context |
Paint | mPaint |
float | mX |
List< Path > | paths |
List< Path > | undonepaths |
Static Private Attributes | |
static final float | TOLERANCE = 5 |
Canvas for drawing lines that indicate cuneiform characters.
DrawingCanvas | ( | Context | c, |
AttributeSet | attrs | ||
) |
Constructor for this class.
c | the context of this canvas |
attrs | the attributes to consider |
References DrawingCanvas.context, DrawingCanvas.mPaint, and DrawingCanvas.mPath.
|
package |
|
private |
References DrawingCanvas.mX, DrawingCanvas.mY, and DrawingCanvas.TOLERANCE.
Referenced by DrawingCanvas.onTouchEvent().
|
protected |
References DrawingCanvas.mPaint, and DrawingCanvas.paths.
|
protected |
boolean onTouchEvent | ( | MotionEvent | event | ) |
References DrawingCanvas.moveTouch(), DrawingCanvas.startTouch(), and DrawingCanvas.upTouch().
void redoPath | ( | ) |
References DrawingCanvas.s, and DrawingCanvas.undonepaths.
void setOnLongClickListener | ( | @Nullable OnLongClickListener | l | ) |
|
private |
References DrawingCanvas.mX, DrawingCanvas.mY, DrawingCanvas.startX, and DrawingCanvas.startY.
Referenced by DrawingCanvas.onTouchEvent().
void undoPath | ( | ) |
References StrokeType.A, DrawingCanvas.a, StrokeType.B, DrawingCanvas.b, StrokeType.C, DrawingCanvas.c, StrokeType.D, DrawingCanvas.d, DrawingCanvas.paths, DrawingCanvas.s, and DrawingCanvas.strokes.
|
private |
References StrokeType.A, DrawingCanvas.a, StrokeType.B, DrawingCanvas.b, StrokeType.C, DrawingCanvas.c, StrokeType.D, DrawingCanvas.d, DrawingCanvas.down, StrokeType.E, StrokeType.F, StrokeType.INV_A, StrokeType.INV_B, DrawingCanvas.left, DrawingCanvas.lines, DrawingCanvas.mPaint, DrawingCanvas.mPath, DrawingCanvas.mX, DrawingCanvas.mY, DrawingCanvas.paleocodage, DrawingCanvas.right, DrawingCanvas.s, DrawingCanvas.startX, DrawingCanvas.startY, and DrawingCanvas.up.
Referenced by DrawingCanvas.onTouchEvent().
|
package |
Referenced by CuneiPainter.lookUp(), DrawingCanvas.undoPath(), and DrawingCanvas.upTouch().
|
package |
Referenced by CuneiPainter.lookUp(), DrawingCanvas.undoPath(), and DrawingCanvas.upTouch().
|
package |
Referenced by CuneiPainter.lookUp(), DrawingCanvas.undoPath(), and DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.DrawingCanvas().
|
package |
Referenced by CuneiPainter.lookUp(), DrawingCanvas.undoPath(), and DrawingCanvas.upTouch().
|
package |
Referenced by DrawingCanvas.upTouch().
int height |
|
package |
Referenced by DrawingCanvas.upTouch().
List<LineParameters> lines = new LinkedList<>() |
Referenced by DrawingCanvas.upTouch().
|
private |
|
private |
Referenced by DrawingCanvas.DrawingCanvas(), DrawingCanvas.onDraw(), and DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.DrawingCanvas(), and DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.moveTouch(), DrawingCanvas.startTouch(), and DrawingCanvas.upTouch().
|
package |
Referenced by DrawingCanvas.moveTouch(), DrawingCanvas.startTouch(), and DrawingCanvas.upTouch().
|
package |
Referenced by DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.clearCanvas(), DrawingCanvas.onDraw(), and DrawingCanvas.undoPath().
|
package |
Referenced by DrawingCanvas.upTouch().
|
package |
Referenced by DrawingCanvas.redoPath(), DrawingCanvas.undoPath(), and DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.startTouch(), and DrawingCanvas.upTouch().
|
private |
Referenced by DrawingCanvas.startTouch(), and DrawingCanvas.upTouch().
List<String> strokes = new LinkedList<>() |
Referenced by DrawingCanvas.undoPath().
|
staticprivate |
Referenced by DrawingCanvas.moveTouch().
|
private |
Referenced by DrawingCanvas.redoPath().
|
package |
Referenced by DrawingCanvas.upTouch().
int width |