From 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Fri, 30 Jan 2015 17:11:48 -0700 Subject: added source --- src/ExtendablePointInvoker.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/ExtendablePointInvoker.java (limited to 'src/ExtendablePointInvoker.java') diff --git a/src/ExtendablePointInvoker.java b/src/ExtendablePointInvoker.java new file mode 100644 index 0000000..18f3798 --- /dev/null +++ b/src/ExtendablePointInvoker.java @@ -0,0 +1,38 @@ +/* */ import java.awt.Graphics; +/* */ import java.util.ArrayList; +/* */ import java.util.List; +/* */ +/* */ public class ExtendablePointInvoker +/* */ implements PointInvoker +/* */ { +/* */ private List invokers; +/* */ +/* */ public ExtendablePointInvoker(List invokers) +/* */ { +/* 14 */ this.invokers = invokers; +/* */ } +/* */ public ExtendablePointInvoker(PointInvoker invoker) { +/* 17 */ this.invokers = new ArrayList(); +/* 18 */ this.invokers.add(invoker); +/* */ } +/* */ public void remove(PointInvoker invoke) { +/* 21 */ this.invokers.remove(invoke); +/* */ } +/* */ public void drawPoint(Graphics g, int x, int y) { +/* 24 */ for (int i = 0; i < this.invokers.size(); i++) +/* 25 */ ((PointInvoker)this.invokers.get(i)).drawPoint(g, x, y); +/* */ } +/* */ +/* */ public void concat(PointInvoker invoke) { +/* 29 */ this.invokers.add(invoke); +/* */ } +/* */ public void setInvoker(PointInvoker invoke) { +/* 32 */ this.invokers = new ArrayList(); +/* 33 */ concat(invoke); +/* */ } +/* */ } + +/* Location: Modulus.jar + * Qualified Name: ExtendablePointInvoker + * JD-Core Version: 0.6.2 + */ \ No newline at end of file -- cgit