Package com.ardor3d.extension.ui.event
Class FrameResizeListener
java.lang.Object
com.ardor3d.extension.ui.event.FrameResizeListener
- All Implemented Interfaces:
DragListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drag
(int mouseX, int mouseY) Method called when the button is still held after startDrag and the mouse has moved again.void
endDrag
(UIComponent component, int mouseX, int mouseY) End our drag.boolean
isDragHandle
(UIComponent component, int mouseX, int mouseY) Ask if the given component and coordinates indicate a drag handle for the implementor.void
startDrag
(int mouseX, int mouseY) Let the implementor know that we've accepted this as our current drag target.
-
Constructor Details
-
FrameResizeListener
-
-
Method Details
-
startDrag
public void startDrag(int mouseX, int mouseY) Description copied from interface:DragListener
Let the implementor know that we've accepted this as our current drag target. This is called by the hud if a drag action is detected and isDragHandle has returned true.- Specified by:
startDrag
in interfaceDragListener
- Parameters:
mouseX
- the x mouse coordinatemouseY
- the y mouse coordinate
-
drag
public void drag(int mouseX, int mouseY) Description copied from interface:DragListener
Method called when the button is still held after startDrag and the mouse has moved again.- Specified by:
drag
in interfaceDragListener
- Parameters:
mouseX
- the new x mouse coordinatemouseY
- the new y mouse coordinate
-
endDrag
Description copied from interface:DragListener
End our drag. This is called when the button is released after initDrag.- Specified by:
endDrag
in interfaceDragListener
- Parameters:
component
- the UIComponent our drag ended over.mouseX
- the x mouse coordinatemouseY
- the y mouse coordinate
-
isDragHandle
Description copied from interface:DragListener
Ask if the given component and coordinates indicate a drag handle for the implementor. For example, a scroll bar setting up a listener might only allow dragging if the component acted on is its button.- Specified by:
isDragHandle
in interfaceDragListener
- Parameters:
component
- the UIComponent being acted upon in a suspected drag operationmouseX
- the x mouse coordinatemouseY
- the y mouse coordinate- Returns:
- true if the given parameters describe a drag handle
-