|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
interactors.RouteInteractor
public class RouteInteractor
Interaction for creating a relation between two objects.
Field Summary | |
---|---|
(package private) OntologyObject |
closest
|
(package private) java.util.ArrayList<DirectionComplexity> |
directions
|
private java.util.ArrayList<Edge> |
edges
|
private java.util.HashMap<OntologyObject,java.lang.String> |
hints
|
private javax.swing.JMenuItem |
item
|
static int |
MAX_CONNECTING_CORRIDORS
|
private javax.swing.JPopupMenu |
menu
|
static int |
OPTIMIZATION_WINDOW_HEIGHT
|
static int |
OPTIMIZATION_WINDOW_WIDTH
|
static int |
OPTIMIZE_COMPLEXITY
|
static int |
OPTIMIZE_DISTANCE
|
(package private) java.util.LinkedHashMap<OntologyObject,java.awt.Color> |
path
|
private java.util.ArrayList<DecisionPoint> |
points
|
(package private) OntologyObject |
previousSelected
|
private Path |
routePath
|
(package private) OntologyObject |
selected
|
private javax.swing.JSlider |
slider
|
private javax.swing.JFrame |
sliderFrame
|
Fields inherited from class interactors.Interactor |
---|
handler |
Constructor Summary | |
---|---|
RouteInteractor(InteractionHandler handler)
Constructs the relation interactor. |
Method Summary | |
---|---|
private void |
createOptimizationSlider()
This method builds and displays the optimization slider. |
void |
draw(GL gl,
GLU glu,
GLUT glut)
Draws a line between the selected object and the current mouse location. |
void |
endInteraction()
Closes the complexity tradeoff frame. |
java.awt.Cursor |
getCursor()
Gets the relation cursor. |
private void |
getRoute(OntologyObject start,
OntologyObject finish,
int optimizationFactor)
|
void |
mouseMoved(java.awt.event.MouseEvent arg0)
Called by the interaction handler when the mouse is moved. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
Left click selects an object if no object is selected. |
void |
startInteraction()
Called when the interaction handler starts this interaction. |
Methods inherited from class interactors.Interactor |
---|
keyPressed, keyReleased, mouseDragged, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
OntologyObject selected
OntologyObject previousSelected
OntologyObject closest
java.util.ArrayList<DirectionComplexity> directions
java.util.LinkedHashMap<OntologyObject,java.awt.Color> path
private java.util.ArrayList<Edge> edges
private java.util.ArrayList<DecisionPoint> points
private javax.swing.JFrame sliderFrame
private javax.swing.JSlider slider
public static final int OPTIMIZE_COMPLEXITY
public static final int OPTIMIZE_DISTANCE
public static final int OPTIMIZATION_WINDOW_WIDTH
public static final int OPTIMIZATION_WINDOW_HEIGHT
public static final int MAX_CONNECTING_CORRIDORS
private javax.swing.JPopupMenu menu
private javax.swing.JMenuItem item
private java.util.HashMap<OntologyObject,java.lang.String> hints
private Path routePath
Constructor Detail |
---|
public RouteInteractor(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 startInteraction()
Interactor
startInteraction
in class Interactor
public void endInteraction()
endInteraction
in class Interactor
public void mouseMoved(java.awt.event.MouseEvent arg0)
Interactor
mouseMoved
in class Interactor
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
private void createOptimizationSlider()
private void getRoute(OntologyObject start, OntologyObject finish, int optimizationFactor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |