Changeset 286 for trunk/src/org/expeditee/io/ItemWriter.java
- Timestamp:
- 08/29/08 08:17:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/io/ItemWriter.java
r80 r286 4 4 import java.util.List; 5 5 6 import org.expeditee.items.Circle; 6 7 import org.expeditee.items.Dot; 7 8 import org.expeditee.items.Item; … … 9 10 import org.expeditee.items.Picture; 10 11 import org.expeditee.items.Text; 12 import org.expeditee.items.widgets.InteractiveWidget; 13 import org.expeditee.items.widgets.WidgetEdge; 11 14 12 15 public abstract class ItemWriter { … … 22 25 23 26 /** 24 * Called for each item on each frame to write out the contents of the items. 25 * @param toWrite the item to be written out. 27 * Called for each item on each frame to write out the contents of the 28 * items. 29 * 30 * @param toWrite 31 * the item to be written out. 26 32 * @throws IOException 27 33 */ … … 38 44 writePicture((Picture) toWrite); 39 45 40 if (toWrite instanceof Line) 46 if (toWrite instanceof Line) { 47 if (toWrite instanceof WidgetEdge) { 48 writeWidget(((WidgetEdge) toWrite).getWidgetSource()); 49 } 41 50 writeLine((Line) toWrite); 51 } 42 52 43 53 if (toWrite instanceof Dot) 44 54 writeDot((Item) toWrite); 55 56 if (toWrite instanceof Circle) 57 writeCircle((Circle) toWrite); 45 58 } 46 59 … … 52 65 writeAnnotationPicture((Picture) toWrite); 53 66 54 if (toWrite instanceof Line) 67 if (toWrite instanceof Line) { 55 68 writeAnnotationLine((Line) toWrite); 69 } 56 70 57 71 if (toWrite instanceof Dot) … … 80 94 } 81 95 96 protected void writeCircle(Circle toWrite) throws IOException { 97 } 98 99 protected void writeWidget(InteractiveWidget toWrite) throws IOException { 100 } 101 82 102 protected void writeDot(Item toWrite) throws IOException { 83 103 }
Note:
See TracChangeset
for help on using the changeset viewer.