Class FrameResizeListener

java.lang.Object
com.ardor3d.extension.ui.event.FrameResizeListener
All Implemented Interfaces:
DragListener

public final class FrameResizeListener extends Object implements DragListener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FrameResizeListener

      public FrameResizeListener(UIFrameStatusBar uiFrameStatusBar)
  • 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 interface DragListener
      Parameters:
      mouseX - the x mouse coordinate
      mouseY - 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 interface DragListener
      Parameters:
      mouseX - the new x mouse coordinate
      mouseY - the new y mouse coordinate
    • endDrag

      public void endDrag(UIComponent component, int mouseX, int mouseY)
      Description copied from interface: DragListener
      End our drag. This is called when the button is released after initDrag.
      Specified by:
      endDrag in interface DragListener
      Parameters:
      component - the UIComponent our drag ended over.
      mouseX - the x mouse coordinate
      mouseY - the y mouse coordinate
    • isDragHandle

      public boolean isDragHandle(UIComponent component, int mouseX, int mouseY)
      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 interface DragListener
      Parameters:
      component - the UIComponent being acted upon in a suspected drag operation
      mouseX - the x mouse coordinate
      mouseY - the y mouse coordinate
      Returns:
      true if the given parameters describe a drag handle