source: trunk/src/org/expeditee/actions/Debug.java@ 72

Last change on this file since 72 was 72, checked in by ra33, 16 years ago

Added lots of stuff

File size: 955 bytes
Line 
1package org.expeditee.actions;
2
3import java.util.List;
4
5import org.expeditee.gui.DisplayIO;
6import org.expeditee.items.Constraint;
7import org.expeditee.items.Item;
8
9/**
10 * This class is used for temporary debugging actions that will get removed from
11 * the final product.
12 *
13 * @author jdm18
14 *
15 */
16public class Debug {
17
18 /**
19 * Outputs the list of constraints all Items in the current Frame have.
20 */
21 public static void ShowConstraints() {
22 List<Item> items = DisplayIO.getCurrentFrame().getItems();
23
24 for (Item i : items)
25 if (i.isLineEnd()) {
26 System.out.println(i.getID());
27
28 for (Constraint c : i.getConstraints())
29 if (c.getOppositeEnd(i) != null)
30 System.out.println("\t"
31 + c.getOppositeEnd(i).getID());
32 else
33 System.out.println("\tNULL");
34
35 System.out.println("------------");
36 }
37
38 System.out.println("==================");
39 }
40
41 public static void PrintLine() {
42 System.out.println("Action");
43 }
44}
Note: See TracBrowser for help on using the repository browser.