Line | |
---|
1 | package org.expeditee.actions;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | import org.expeditee.gui.DisplayIO;
|
---|
6 | import org.expeditee.items.Constraint;
|
---|
7 | import 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 | */
|
---|
16 | public 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.