diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
| commit | 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 (patch) | |
| tree | 926cef8cb76d46862ed2c4ec7028720611e47476 /src/ExtendablePointInvoker.java | |
| download | Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.gz Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.bz2 Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.zip | |
added source
Diffstat (limited to 'src/ExtendablePointInvoker.java')
| -rw-r--r-- | src/ExtendablePointInvoker.java | 38 |
1 files changed, 38 insertions, 0 deletions
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<PointInvoker> invokers; +/* */ +/* */ public ExtendablePointInvoker(List<PointInvoker> 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 |