jts
Class RCC5Interactor

java.lang.Object
  extended by interactors.Interactor
      extended by jts.RCC5Interactor

public class RCC5Interactor
extends Interactor

Class for displaying the RCC5 relation between two polygons.


Field Summary
 
Fields inherited from class interactors.Interactor
handler
 
Constructor Summary
RCC5Interactor(InteractionHandler handler)
          Constructs the RCC5 interactor.
 
Method Summary
 void draw(GL gl, GLU glu, GLUT glut)
          Draws a line from the selected object to the mouse.
 java.awt.Cursor getCursor()
          Gets the crosshair cursor.
 void getRCCRelation(OntologyObject object1, OntologyObject object2)
          Displays a dialog showing the RCC5 relation between the specified objects.
 void mousePressed(java.awt.event.MouseEvent arg0)
          Left click selects an object if no object is selected.
 
Methods inherited from class interactors.Interactor
endInteraction, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, startInteraction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCC5Interactor

public RCC5Interactor(InteractionHandler handler)
Constructs the RCC5 interactor.

Parameters:
handler - - the interaction handler
Method Detail

draw

public void draw(GL gl,
                 GLU glu,
                 GLUT glut)
Draws a line from the selected object to the mouse.

Overrides:
draw in class Interactor

getCursor

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

Overrides:
getCursor in class Interactor

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Left click selects an object if no object is selected. If an object is currently selected, then left click get the RCC5 relation between the previously selected object and the newly selected object. Right click deselects the current object or ends the interaction if no object is selected.

Overrides:
mousePressed in class Interactor

getRCCRelation

public void getRCCRelation(OntologyObject object1,
                           OntologyObject object2)
Displays a dialog showing the RCC5 relation between the specified objects.

Parameters:
object1 - - the first object
object2 - - the second object