|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.DefaultDockRelocator.DefaultRemoteRelocator
private class DefaultDockRelocator.DefaultRemoteRelocator
An implementation connecting a RemoteRelocator
to the
enclosing DefaultDockRelocator
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface bibliothek.gui.dock.control.RemoteRelocator |
---|
RemoteRelocator.Reaction |
Field Summary | |
---|---|
private Dockable |
dockable
the Dockable which might be moved by this relocator |
Constructor Summary | |
---|---|
DefaultDockRelocator.DefaultRemoteRelocator(Dockable dockable)
Creates a new remote |
Method Summary | |
---|---|
void |
cancel()
Cancels the current drag & drop operation. |
void |
drag(int x,
int y,
boolean always)
Gives a feedback to the user, that a Dockable is moved around.Prepares for a drop-event. |
RemoteRelocator.Reaction |
drag(int x,
int y,
int modifiers)
This method works on the drag-part of a drag & drop operation. |
void |
drop(int x,
int y)
Stops a dnd-operation either by dropping the Dockable
(if possible) or by canceling the operation. |
RemoteRelocator.Reaction |
drop(int x,
int y,
int modifiers)
This method works on the drop-part of a drag & drop operation. |
void |
init(int x,
int y,
int dx,
int dy)
This method starts a drag & drop operation. |
RemoteRelocator.Reaction |
init(int x,
int y,
int dx,
int dy,
int modifiers)
This method starts or cancels a drag & drop operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Dockable dockable
Constructor Detail |
---|
public DefaultDockRelocator.DefaultRemoteRelocator(Dockable dockable)
dockable
- the dockable which might be movedMethod Detail |
---|
public void cancel()
DirectRemoteRelocator
cancel
in interface DirectRemoteRelocator
cancel
in interface RemoteRelocator
public void drag(int x, int y, boolean always)
DirectRemoteRelocator
Dockable
is moved around.
drag
in interface DirectRemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurredalways
- true
if a call to this method should always
result in a drag-event, false
if the restrictions of the
DockRelocator
should be respected. A restriction might be, that
the location of the mouse must have a minimal distance to the initial
location of the mouse.DockRelocator.getDragDistance()
public RemoteRelocator.Reaction drag(int x, int y, int modifiers)
RemoteRelocator
drag
in interface RemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurredmodifiers
- the state of the mouse, see InputEvent.getModifiersEx()
.
RemoteRelocator.Reaction
public void drop(int x, int y)
DirectRemoteRelocator
Dockable
(if possible) or by canceling the operation.
drop
in interface DirectRemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurredpublic RemoteRelocator.Reaction drop(int x, int y, int modifiers)
RemoteRelocator
RemoteRelocator.Reaction
drop
in interface RemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurredmodifiers
- the state of the mouse, see InputEvent.getModifiersEx()
.
RemoteRelocator.Reaction
public void init(int x, int y, int dx, int dy)
DirectRemoteRelocator
init
in interface DirectRemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurreddx
- the x-coordinate of the mouse on the simulated Component which sent the event, 0 is a good default-value.dy
- the y-coordinate of the mouse on the simulated Component which sent the event, 0 is a good default-value.public RemoteRelocator.Reaction init(int x, int y, int dx, int dy, int modifiers)
RemoteRelocator
init
in interface RemoteRelocator
x
- the x-coordinate on the screen, where the (simulated) event occurredy
- the y-coordinate on the screen, where the (simulated) event occurreddx
- the x-coordinate of the mouse on the simulated Component which sent the event, 0 is a good default-value.dy
- the y-coordinate of the mouse on the simulated Component which sent the event, 0 is a good default-value.modifiers
- the state of the mouse, see InputEvent.getModifiersEx()
.
RemoteRelocator.Reaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |