Last change
on this file since 4 was 4, checked in by davidb, 16 years ago |
Starting source code to Expeditee
|
File size:
1010 bytes
|
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.Dot;
|
---|
8 | import org.expeditee.items.Item;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * This class is used for temporary debugging actions that will get removed from
|
---|
12 | * the final product.
|
---|
13 | *
|
---|
14 | * @author jdm18
|
---|
15 | *
|
---|
16 | */
|
---|
17 | public class Debug {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Outputs the list of constraints all Items in the current Frame have.
|
---|
21 | */
|
---|
22 | public static void ShowConstraints() {
|
---|
23 | List<Item> items = DisplayIO.getCurrentFrame().getItems();
|
---|
24 |
|
---|
25 | for (Item i : items)
|
---|
26 | if (i instanceof Dot) {
|
---|
27 | System.out.println(i.getID());
|
---|
28 |
|
---|
29 | for (Constraint c : ((Dot) i).getConstraints())
|
---|
30 | if (c.getOppositeEnd((Dot) i) != null)
|
---|
31 | System.out.println("\t"
|
---|
32 | + c.getOppositeEnd((Dot) i).getID());
|
---|
33 | else
|
---|
34 | System.out.println("\tNULL");
|
---|
35 |
|
---|
36 | System.out.println("------------");
|
---|
37 | }
|
---|
38 |
|
---|
39 | System.out.println("==================");
|
---|
40 | }
|
---|
41 |
|
---|
42 | public static void PrintLine() {
|
---|
43 | System.out.println("Action");
|
---|
44 | }
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.