Please enable JavaScript.
Coggle requires JavaScript to display documents.
GRAPHICS - Coggle Diagram
GRAPHICS
JPanel
-
-
extend the JPanel class to be able to overwrite the paint method which is the method called by the AWT Engine to paint what appears in the screen.
-
-
-
Graphics Class
Methods
Draw and fill methods
enables you to render basic shapes, text, and images
draw methods
-
drawLine, drawArc, drawRect, drawOval, drawPolygon
-
drawLine
note: in 2D graphics, every point is determined by its x and y coordinates
java.awt.Graphics.drawLine(int x1, int y1, int x2, int y2)
fill methods
fillArc, fillRect, fillOval, fillPolygon
-
-