|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
jts.NeighborInteractor
public class NeighborInteractor
Interactor for showing externally connected objects.
Field Summary | |
---|---|
(package private) java.util.ArrayList<OntologyObject> |
neighbors
the neighbor objects of the selected object |
Fields inherited from class interactors.Interactor |
---|
handler |
Constructor Summary | |
---|---|
NeighborInteractor(InteractionHandler handler)
Constructs a neighbor interactor. |
Method Summary | |
---|---|
void |
draw(GL gl,
GLU glu,
GLUT glut)
Highlights the neighboring objects of the selected object. |
java.awt.Cursor |
getCursor()
Returns the neighbor cursor. |
private static Geometry |
getGeometry(GraphicalObject graphics)
Utility method for creating a JTS geomerty object from a graphical object that is a polygon. |
static java.util.ArrayList<OntologyObject> |
getNeighbors(OntologyObject selected,
Map map)
Finds the externally connected objects for the specified object. |
void |
keyPressed(java.awt.event.KeyEvent arg0)
Override the key shortcuts. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
Processes mouse presses: - Left click selects a new object and finds the neighbors - Right click deselects an object or ends the interaction if no object is selecteed |
void |
startInteraction()
Finds the neighbors of the currently selected object. |
Methods inherited from class interactors.Interactor |
---|
endInteraction, keyReleased, mouseDragged, mouseMoved, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList<OntologyObject> neighbors
Constructor Detail |
---|
public NeighborInteractor(InteractionHandler handler)
handler
- - the interaction handlerMethod Detail |
---|
public void draw(GL gl, GLU glu, GLUT glut)
draw
in class Interactor
public void startInteraction()
startInteraction
in class Interactor
public java.awt.Cursor getCursor()
getCursor
in class Interactor
public void keyPressed(java.awt.event.KeyEvent arg0)
keyPressed
in class Interactor
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
public static java.util.ArrayList<OntologyObject> getNeighbors(OntologyObject selected, Map map)
selected
- - the selected objectprivate static Geometry getGeometry(GraphicalObject graphics)
graphics
- - the graphical object, must be of type Polygon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |