org.gecode.gist.swing.SwingInspector Class Reference
Inherits org.gecode.gist.GistEventListener.List of all members.
Detailed Description
This class can be subclassed to implement a custom component for displaying an inspected node.
Definition at line 49 of file SwingInspector.java.
Public Member Functions | |
| SwingInspector (String name) | |
| Construct an Inspector with given name. | |
| String | getName () |
| void | nodeClickEvent (org.gecode.gist.Inspector inspect, SpaceNode s) |
| void | paintComponent (Graphics g) |
| Convenience implementation of the paintCOmponent method forwardingthe logic to draw(Graphics2D). | |
| void | draw (Space s, Graphics2D g) |
| The logic of the component. | |
| SwingInspector | clone () |
| Covariant definition of clone(). | |
Protected Member Functions | |
| Color | getColor (int i) |
| Get color i, where colors are alternatively brightened and darkened for each new iteration through the array of colors. | |
Protected Attributes | |
| Space | s |
| Space reference for the Space that is inspected. | |
| String | name |
| Name of this inspection. | |
| boolean | isList |
| Mode of this inspection. | |
| final Color | colors [] |
| Predefined colors from the Color class. | |
Package Functions | |
| void | create (JFrame parent) |
Package Attributes | |
| JDialog | dialog = null |
| Members for the display of the component. | |
| JComponent | list = null |
Static Package Attributes | |
| static int | poscnt = 0 |
Constructor & Destructor Documentation
| org.gecode.gist.swing.SwingInspector.SwingInspector | ( | String | name | ) |
Member Function Documentation
| String org.gecode.gist.swing.SwingInspector.getName | ( | ) | [virtual] |
| void org.gecode.gist.swing.SwingInspector.nodeClickEvent | ( | org.gecode.gist.Inspector | inspect, | |
| SpaceNode | s | |||
| ) |
Definition at line 75 of file SwingInspector.java.
| void org.gecode.gist.swing.SwingInspector.paintComponent | ( | Graphics | g | ) |
Convenience implementation of the paintCOmponent method forwardingthe logic to draw(Graphics2D).
Definition at line 97 of file SwingInspector.java.
| void org.gecode.gist.swing.SwingInspector.draw | ( | Space | s, | |
| Graphics2D | g | |||
| ) |
The logic of the component.
This method should draw the component with respect to the stored Space-copy.
Definition at line 111 of file SwingInspector.java.
| SwingInspector org.gecode.gist.swing.SwingInspector.clone | ( | ) |
| void org.gecode.gist.swing.SwingInspector.create | ( | JFrame | parent | ) | [package] |
Definition at line 129 of file SwingInspector.java.
| Color org.gecode.gist.swing.SwingInspector.getColor | ( | int | i | ) | [protected] |
Get color i, where colors are alternatively brightened and darkened for each new iteration through the array of colors.
Definition at line 160 of file SwingInspector.java.
Member Data Documentation
Space org.gecode.gist.swing.SwingInspector.s [protected] |
String org.gecode.gist.swing.SwingInspector.name [protected] |
boolean org.gecode.gist.swing.SwingInspector.isList [protected] |
Mode of this inspection.
If list is true, the inspected spaces are displayed in a list. If list is false, each insection will overwrite the previous inspection.
Definition at line 61 of file SwingInspector.java.
JDialog org.gecode.gist.swing.SwingInspector.dialog = null [package] |
JComponent org.gecode.gist.swing.SwingInspector.list = null [package] |
Definition at line 65 of file SwingInspector.java.
int org.gecode.gist.swing.SwingInspector.poscnt = 0 [static, package] |
Definition at line 128 of file SwingInspector.java.
final Color org.gecode.gist.swing.SwingInspector.colors[] [protected] |
Initial value:
{Color.blue, Color.cyan, Color.gray, Color.green, Color.magenta,
Color.orange, Color.pink, Color.red, Color.yellow}
Definition at line 154 of file SwingInspector.java.
The documentation for this class was generated from the following file:
- org/gecode/gist/swing/SwingInspector.java (Revision: 2944)
