diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /java/EAC/Union.java | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'java/EAC/Union.java')
-rw-r--r-- | java/EAC/Union.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/java/EAC/Union.java b/java/EAC/Union.java deleted file mode 100644 index 107390dc560..00000000000 --- a/java/EAC/Union.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Title: Union - * Description: A binary union operator class for the Event Analysis - * Configurator. Acts as a sort of multiplexor, combining two - * event streams into one. - */ -package EAC; -import java.awt.*; - -public class Union extends Operator { - - public Union(EACPanel p) { - super(p); - } /* constructor */ - - public void draw() throws BoundsException { - // the union symbol - final char uSymbol = 'U'; - - // subtle adjustments to position symbol within circle - final int xTweak = 4; - final int yTweak = -4; - - char symbol[] = new char[1]; - - Graphics g = canvas.getGraphics(); - - super.draw(); - symbol[0] = (char) uSymbol; - g.drawChars(symbol,0,1, - anchor.x + (int) (DIAMETER / 2) - xTweak, - anchor.y + (int) (DIAMETER / 2) - yTweak); - } /* draw */ - - public void event(Source s) throws ConnectionException { - int i; - - //System.out.println("Union event"); - - // send an event to all outputs - for (i = 0; i < output_count; i++) - output[i].event(s); - } /* event */ - - public void write(File f) throws java.io.IOException { - f.writeInt(f.UNION); - f.writeInt(anchor.x); - f.writeInt(anchor.y); - } /* write */ - - public void read(File f) throws java.io.IOException { - anchor = new Point(); - anchor.x = f.readInt(); - anchor.y = f.readInt(); - } /* read */ -}
\ No newline at end of file |