Back to index

plt-scheme  4.2.1
LargerSeq.java
Go to the documentation of this file.
00001 package graphics;
00002 
00003 public class LargerSeq extends CommandSequence {
00004   Command first;
00005   CommandSequence rest;
00006   public LargerSeq(Command f, CommandSequence r) {
00007     first = f; rest = r;
00008   }
00009   void drawAll( View v) {
00010     v.drawToCanvas(first);
00011     rest.drawAll(v);
00012   }
00013   CommandSequence rev( CommandSequence acc ) {
00014     return rest.rev( new LargerSeq(first, acc));
00015   }
00016 }