|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
interactors.RelationInteractor
public class RelationInteractor
Interaction for creating a relation between two objects.
Field Summary |
---|
Fields inherited from class interactors.Interactor |
---|
handler |
Constructor Summary | |
---|---|
RelationInteractor(InteractionHandler handler)
Constructs the relation interactor. |
Method Summary | |
---|---|
private void |
createRelation(OntologyObject object1,
OntologyObject object2)
Creates a relation between the given objects. |
void |
draw(GL gl,
GLU glu,
GLUT glut)
Draws a line between the selected object and the current mouse location. |
java.awt.Cursor |
getCursor()
Gets the relation cursor. |
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 |
---|
public RelationInteractor(InteractionHandler handler)
handler
- - the interacion handlerMethod Detail |
---|
public void draw(GL gl, GLU glu, GLUT glut)
draw
in class Interactor
public java.awt.Cursor getCursor()
getCursor
in class Interactor
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
private void createRelation(OntologyObject object1, OntologyObject object2)
object1
- - the first objectobject2
- - the second object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |