Chapter 12 Important stuff: fig 12.5 Color fig 12.9 Font fig 12.14 filled rectangles, ovals, 3D rectangles etc fig 12.19 arcs fig 12.21 polygons Graphics g g.setColor (new Color(int red, int green, int blue) //0..255 g.setColor (new Color(float red, float green, float blue) //0.0..1.0 g.setColor (Color.MAGENTA) Color mycolor = Color.BLUE g.setColor (mycolor) g.getColor() //returns Color object. g.setFont (new Font(String fontname, Font style, Font size)) g.setFont (new Font("Monospaced",Font.BOLD,14)) g.fillRect (x1,y1, width, height) //filled with current color g.fillOval (x1,y1, width, height) //bounding box. g.drawRoundRect (x1,y1,width,height,cornerWidth,cornerHeight) g.fillRoundRect (x1,y1,width,height,cornerWidth,cornerHeight) g.draw3DRect (x1,y1,width,height,boolean) //true=raised, false=lowered g.fill3DRect (x1,y1,width,height,boolean) g.drawArc (x1,y1,width,height, startDegree, endDegree) //bounding box //endDegree=ccw, -endDegree=cw g.fillArc (x1,y1,width,height, startDegree, endDegree) Polygon mypoly = new Polygon(int[] xs, int[] ys, int numPoints) g.drawPolygon (mypoly) g.fillPolygon (mypoly) g.drawPolygon (int[] xs, int[] ys, int numPoints) g.fillPolygon (int[] xs, int[] ys, int numPoints) Polygon mypoly = new Polygon() //empty mypoly.addPoint(int x, int y) //add points one by one...