summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc
blob: 0fbf069aa06fbb40cafb4b651782747c3928ecfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* GefuellteFlaechen.inc */

public void paint(Graphics g)
{
  int[] arx = {150,175,200,150};
  int[] ary = {100,150,100,100};

  //---J
  g.fillRect(70,40,20,80);
  g.fillArc(30,90,60,60,225,180);
  //---a
  g.fillOval(100,100,40,50);
  g.fillRect(120,100,20,50);
  //---v
  g.fillPolygon(arx,ary,arx.length);
  //---a
  g.fillOval(210,100,40,50);
  g.fillRect(230,100,20,50);
}