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