Ignore:
Timestamp:
08/29/08 08:17:54 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/ItemWriter.java

    r80 r286  
    44import java.util.List;
    55
     6import org.expeditee.items.Circle;
    67import org.expeditee.items.Dot;
    78import org.expeditee.items.Item;
     
    910import org.expeditee.items.Picture;
    1011import org.expeditee.items.Text;
     12import org.expeditee.items.widgets.InteractiveWidget;
     13import org.expeditee.items.widgets.WidgetEdge;
    1114
    1215public abstract class ItemWriter {
     
    2225
    2326        /**
    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.
    2632         * @throws IOException
    2733         */
     
    3844                        writePicture((Picture) toWrite);
    3945
    40                 if (toWrite instanceof Line)
     46                if (toWrite instanceof Line) {
     47                        if (toWrite instanceof WidgetEdge) {
     48                                writeWidget(((WidgetEdge) toWrite).getWidgetSource());
     49                        }
    4150                        writeLine((Line) toWrite);
     51                }
    4252
    4353                if (toWrite instanceof Dot)
    4454                        writeDot((Item) toWrite);
     55
     56                if (toWrite instanceof Circle)
     57                        writeCircle((Circle) toWrite);
    4558        }
    4659
     
    5265                        writeAnnotationPicture((Picture) toWrite);
    5366
    54                 if (toWrite instanceof Line)
     67                if (toWrite instanceof Line) {
    5568                        writeAnnotationLine((Line) toWrite);
     69                }
    5670
    5771                if (toWrite instanceof Dot)
     
    8094        }
    8195
     96        protected void writeCircle(Circle toWrite) throws IOException {
     97        }
     98
     99        protected void writeWidget(InteractiveWidget toWrite) throws IOException {
     100        }
     101
    82102        protected void writeDot(Item toWrite) throws IOException {
    83103        }
Note: See TracChangeset for help on using the changeset viewer.