|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface MouseBoundsListener.Snapper
| Method Summary | |
|---|---|
Rectangle |
snapTo(MouseBoundsListener mbl,
Rectangle bounds,
boolean isEndPositionOnRelease)
returns the bounds to where the given bounds should snap to. |
| Method Detail |
|---|
Rectangle snapTo(MouseBoundsListener mbl,
Rectangle bounds,
boolean isEndPositionOnRelease)
mouseReleased(MouseEvent).
If the component is to be fall back to the original bouds before
dragging, this method can simply return the dragging origin.
if the MouseBoundsListener is set for non-continuous snapping,
the parameter isEndPositionOnRelease would always be true
on calling this method. If the parameter is false, it indicates that the
mouse has not yet been released and that we are in continuous snapping mode.
MouseBoundsListener.isContinuousSnapping(),
MouseBoundsListener.getDragOrigin(),
MouseBoundsListener.mouseReleased(MouseEvent)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||