|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.diva.DrawController
public class DrawController
A basic controller implementation. This controller creates a useful and common interaction that can be used in simple applications. A single interactor provides selection and dragging. Clients that wish to use this default interaction can give this interactor to figures that they add to the foreground layer of the corresponding pane.
Field Summary | |
---|---|
protected DragInteractor |
_dragInteractor
The interactor that drags objects by default |
protected GraphicsPane |
_pane
The pane that this controller is associated with. |
protected DragRegion |
_selectionDragger
The selection dragger |
protected SelectionInteractor |
_selectionInteractor
The selection interactor. |
protected SelectionRenderer |
_selectionRenderer
The selection renderer. |
Constructor Summary | |
---|---|
DrawController(GraphicsPane pane)
Create a new controller for the given pane |
Method Summary | |
---|---|
DragInteractor |
getDragInteractor()
Get the drag interactor |
DragRegion |
getSelectionDragger()
Get the selection interactor |
SelectionInteractor |
getSelectionInteractor()
Get the selection interactor |
SelectionRenderer |
getSelectionRenderer()
Get the selection renderer |
void |
setSelectionManipulator(Manipulator manipulator)
Set the prototype selection manipulator. |
void |
setSelectionRenderer(SelectionRenderer renderer)
Set the selection renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DragInteractor _dragInteractor
protected SelectionInteractor _selectionInteractor
protected SelectionRenderer _selectionRenderer
protected DragRegion _selectionDragger
protected GraphicsPane _pane
Constructor Detail |
---|
public DrawController(GraphicsPane pane)
Method Detail |
---|
public DragInteractor getDragInteractor()
public DragRegion getSelectionDragger()
public SelectionRenderer getSelectionRenderer()
public SelectionInteractor getSelectionInteractor()
public void setSelectionManipulator(Manipulator manipulator)
public void setSelectionRenderer(SelectionRenderer renderer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |