summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc')
-rw-r--r--Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc b/Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc
new file mode 100644
index 0000000..0fbf069
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/hjp5/examples/GefuellteFlaechen.inc
@@ -0,0 +1,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);
+} \ No newline at end of file