source: trunk/org/expeditee/agents/DisplayTreeLeaves.java@ 4

Last change on this file since 4 was 4, checked in by davidb, 16 years ago

Starting source code to Expeditee

File size: 918 bytes
Line 
1package org.expeditee.agents;
2
3import org.expeditee.gui.Frame;
4import org.expeditee.items.Item;
5
6/**
7 * Displays the Tree of Frames starting from the given frame. The delay between
8 * frames can be adjusted, either per-frame with the
9 *
10 * @DisplayFramePause tag, or mid-stream with the
11 * @DisplayTreePause tag, both tags should be followed with the desired delay in
12 * ms. The default delay between Frames is 50ms.
13 * @author jdm18
14 *
15 */
16public class DisplayTreeLeaves extends DisplayTree {
17
18 public DisplayTreeLeaves(String delay) {
19 super(delay);
20 }
21
22 public DisplayTreeLeaves() {
23 super();
24 }
25
26 @Override
27 protected void processFrame(Frame toProcess) {
28 // call display trees process only if the frame doesnt have any linked
29 // items
30 for (Item item : toProcess.getItems()) {
31 if (item.getLink() != null && !item.isAnnotation())
32 return;
33 }
34
35 super.processFrame(toProcess);
36 }
37}
Note: See TracBrowser for help on using the repository browser.