List of usage examples for android.graphics Path moveTo
public void moveTo(float x, float y)
From source file:Main.java
public static Path createLeftArrowPath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX + aWidth, aY); path.lineTo(aX, aY + (aHeight >> 1)); path.lineTo(aX + aWidth, aY + aHeight); return path;//from www. j a v a 2 s .c om }
From source file:Main.java
public static Path createRightArrowPath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY); path.lineTo(aX + aWidth, aY + (aHeight >> 1)); path.lineTo(aX, aY + aHeight);/* w w w . jav a2s.co m*/ return path; }
From source file:Main.java
public static Path createDownArrowPath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY); path.lineTo(aX + (aWidth >> 1), aY + aHeight); path.lineTo(aX + aWidth, aY);// w ww. j a v a 2s. c om return path; }
From source file:Main.java
public static Path createDownTrianglePath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY); path.lineTo(aX + aWidth, aY);//from w w w. j a v a2 s .c om path.lineTo(aX + (aWidth >> 1), aY + aHeight); path.close(); return path; }
From source file:Main.java
public static void computeCircleSucSymbolPath(RectF contentRect, int sideLength, Path successSymbolPath) { successSymbolPath.moveTo(contentRect.left + sideLength * 0.24f, contentRect.top + sideLength * 0.47f); successSymbolPath.quadTo(contentRect.left + sideLength * 0.24f, contentRect.top + sideLength * 0.47f, contentRect.left + sideLength * 0.44f, contentRect.top + sideLength * 0.68f); successSymbolPath.quadTo(contentRect.left + sideLength * 0.44f, contentRect.top + sideLength * 0.68f, contentRect.left + sideLength * 0.73f, contentRect.top + sideLength * 0.35f); }
From source file:Main.java
public static Path createUpTrianglePath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY + aHeight); path.lineTo(aX + (aWidth >> 1), aY); path.lineTo(aX + aWidth, aY + aHeight); path.close();/*from ww w . j a v a2 s . co m*/ return path; }
From source file:Main.java
private static Path drawPaddingLeft() { //Draw the padding Left Path paddingLeft = new Path(); paddingLeft.moveTo(coord_A[0], coord_A[1]); /*A*/ paddingLeft.lineTo(coord_B[0], coord_B[1]); /*B*/ paddingLeft.lineTo(coord_C[0], coord_C[1]); /*C*/ paddingLeft.lineTo(coord_D[0], coord_D[1]); /*D*/ paddingLeft.lineTo(coord_E[0], coord_E[1]); /*E*/ paddingLeft.lineTo(coord_F[0], coord_F[1]); /*F*/ paddingLeft.close();//from w w w .ja v a 2 s. c om return paddingLeft; }
From source file:Main.java
private static Path drawPaddingRight() { //Draw the padding Right Path paddingRight = new Path(); paddingRight.moveTo(coord_A[0], coord_A[1]); /*A*/ paddingRight.lineTo(coord_F[0], coord_F[1]); /*F*/ paddingRight.lineTo(coord_G[0], coord_G[1]); /*G*/ paddingRight.lineTo(coord_H[0], coord_H[1]); /*H*/ paddingRight.lineTo(coord_I[0], coord_I[1]); /*I*/ paddingRight.lineTo(coord_J[0], coord_J[1]); /*J*/ paddingRight.close();//ww w . j a va 2 s.com return paddingRight; }
From source file:Main.java
private static Path drawPadding() { //Draw the padding Path padding = new Path(); padding.moveTo(coord_A[2], coord_A[3]); /*A*/ padding.lineTo(coord_B[2], coord_B[3]); /*B*/ padding.lineTo(coord_C[2], coord_C[3]); /*C*/ padding.lineTo(coord_D[2], coord_D[3]); /*D*/ padding.lineTo(coord_E[2], coord_E[3]); /*E*/ padding.lineTo(coord_F[2], coord_F[3]); /*F*/ padding.lineTo(coord_G[2], coord_G[3]); /*G*/ padding.lineTo(coord_H[2], coord_H[3]); /*H*/ padding.lineTo(coord_I[2], coord_I[3]); /*I*/ padding.lineTo(coord_J[2], coord_J[3]); /*J*/ padding.close();/* www .j a v a 2 s.co m*/ return padding; }
From source file:Main.java
private static Path gloss(int size) { Path gloss = new Path(); gloss.moveTo(0, size); gloss.cubicTo(0, size, size * 3 / 4, size * 3 / 4, size, 0); gloss.lineTo(0, 0);//from ww w .j a va 2s.c om gloss.close(); return gloss; }