¡@

Home 

java Programming Glossary: points.size

Changing JPanel Graphics g color drawing line

http://stackoverflow.com/questions/6105393/changing-jpanel-graphics-g-color-drawing-line

g2.setStroke STROKE g2.setColor color if points null points.size 1 for int i 0 i points.size 1 i int x1 points.get i .x int.. color if points null points.size 1 for int i 0 i points.size 1 i int x1 points.get i .x int y1 points.get i .y int x2 points.get..

Android How to draw a smooth line following your finger

http://stackoverflow.com/questions/8287949/android-how-to-draw-a-smooth-line-following-your-finger

canvas Path path new Path boolean first true for int i 0 i points.size i 2 Point point points.get i if first first false path.moveTo.. first first false path.moveTo point.x point.y else if i points.size 1 Point next points.get i 1 path.quadTo point.x point.y next.x.. public void onDraw Canvas canvas Path path new Path if points.size 1 for int i points.size 2 i points.size i if i 0 Point point..