Generated on Thu Nov 2 14:49:41 2006 for Gecode/J by doxygen 1.5.0

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  ) 

Construct an Inspector with given name.

Definition at line 69 of file SwingInspector.java.


Member Function Documentation

String org.gecode.gist.swing.SwingInspector.getName (  )  [virtual]

Implements org.gecode.gist.GistEventListener.

Definition at line 74 of file SwingInspector.java.

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 (  ) 

Covariant definition of clone().

Definition at line 117 of file SwingInspector.java.

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 reference for the Space that is inspected.

Definition at line 53 of file SwingInspector.java.

Name of this inspection.

Definition at line 55 of file SwingInspector.java.

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.

Members for the display of the component.

Definition at line 64 of file SwingInspector.java.

JComponent org.gecode.gist.swing.SwingInspector.list = null [package]

Definition at line 65 of file SwingInspector.java.

Definition at line 128 of file SwingInspector.java.

Initial value:

 
    {Color.blue,   Color.cyan, Color.gray, Color.green, Color.magenta, 
     Color.orange, Color.pink, Color.red,  Color.yellow}
Predefined colors from the Color class.

Definition at line 154 of file SwingInspector.java.


The documentation for this class was generated from the following file: