interactors.constraints
Class TopologyInteractor

java.lang.Object
  extended by interactors.Interactor
      extended by interactors.constraints.TopologyInteractor

public class TopologyInteractor
extends Interactor

Class for displaying topology constraints.


Field Summary
(package private)  java.util.ArrayList<Constraint> constraints
          the toplogy constraints
 
Fields inherited from class interactors.Interactor
handler
 
Constructor Summary
TopologyInteractor(InteractionHandler handler)
          Constructs the topology interactor.
 
Method Summary
 void draw(GL gl, GLU glu, GLUT glut)
          Draws the topology constraints.
 java.awt.Cursor getCursor()
          Gets the crossahir cursor.
 void keyPressed(java.awt.event.KeyEvent arg0)
          Not implemented.
 void keyReleased(java.awt.event.KeyEvent arg0)
          Not implemented.
 void mouseDragged(java.awt.event.MouseEvent arg0)
          Not implemented.
 void mouseMoved(java.awt.event.MouseEvent arg0)
          Not implemented.
 void mousePressed(java.awt.event.MouseEvent arg0)
          Double right-click ends the interaction.
 void mouseReleased(java.awt.event.MouseEvent arg0)
          Not implemented.
 void startInteraction()
          Verifies that the topology constraints are satisfied.
 
Methods inherited from class interactors.Interactor
endInteraction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraints

java.util.ArrayList<Constraint> constraints
the toplogy constraints

Constructor Detail

TopologyInteractor

public TopologyInteractor(InteractionHandler handler)
Constructs the topology interactor.

Parameters:
handler - - the interaction handler
Method Detail

getCursor

public java.awt.Cursor getCursor()
Gets the crossahir cursor.

Overrides:
getCursor in class Interactor

startInteraction

public void startInteraction()
Verifies that the topology constraints are satisfied.

Overrides:
startInteraction in class Interactor

draw

public void draw(GL gl,
                 GLU glu,
                 GLUT glut)
Draws the topology constraints.

Overrides:
draw in class Interactor

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Double right-click ends the interaction.

Overrides:
mousePressed in class Interactor

keyPressed

public void keyPressed(java.awt.event.KeyEvent arg0)
Not implemented.

Overrides:
keyPressed in class Interactor

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Not implemented.

Overrides:
keyReleased in class Interactor

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseReleased in class Interactor

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseDragged in class Interactor

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseMoved in class Interactor