Graphics
Jump to navigation
Jump to search
The classes Graphics and Graphics2D include many methods for drawing figures and text.
Once you have obtained an instance of Graphics2D you can call various methods.
These methods render figures:
- drawLine
- drawRect
- fillOval
These methods do not render immediately but they do alter the behaviour of subsequent actions:
- rotate
- scale
- setColor
- setLine
- setRenderingHints
- setStroke
- translate