1 | There are graphics methods to draw lines, arcs, ovals, rectangles and other shapes. Here is one method: |
2 | The drawRect(...) method draws a rectangle anchored at point (x,y): public void drawRect( int x, int y, int w, int h ); |
3 | For example, this can be used to draw histograms. |
4 | (x,y) |
5 | w |
6 | h |