sun.porting.windowsystem
Interface WindowManagementFeedback


public interface WindowManagementFeedback

The WindowManagementFeedback interface allows the toolkit to implement some means of interactive window movement for top-level windows. The window system or graphics library may implement the feedback for these operations by a platform-specific means; it then exposes the functionality safely through this interface.


Method Summary
 void endFeedback(Window win, int x, int y, int w, int h)
          End feedback, e.g.
 void moveFeedback(Window win, int x, int y, int w, int h)
          Resize the feedback rectangle to the given dimensions.
 void startFeedback(Window win, int x, int y, int w, int h)
          Start window management feedback using a rectangle of the given dimensions.
 

Method Detail

startFeedback

void startFeedback(Window win,
                   int x,
                   int y,
                   int w,
                   int h)
                   throws IllegalStateException,
                          IllegalArgumentException
Start window management feedback using a rectangle of the given dimensions. All coordinates are in global (framebuffer) space.

Parameters:
win - The window to be reshaped. (This allows the window system to show the whole window during moves and/or reshapes).
x - x coordinate of the feedback rectangle's upper-left corner.
y - y coordinate of the feedback rectangle's upper-left corner.
w - Width of the feedback rectangle.
h - Height of the feedback rectangle.
Throws:
IllegalStateException - if feedback is already in progress.
IllegalArgumentException - if win is not a top-level window.

moveFeedback

void moveFeedback(Window win,
                  int x,
                  int y,
                  int w,
                  int h)
                  throws IllegalStateException,
                         IllegalArgumentException
Resize the feedback rectangle to the given dimensions.

Parameters:
win - The window to be reshaped. (This allows the window system to show the whole window during moves and/or reshapes).
x - x coordinate of the feedback rectangle's upper-left corner.
y - y coordinate of the feedback rectangle's upper-left corner.
w - Width of the feedback rectangle.
h - Height of the feedback rectangle.
Throws:
IllegalStateException - if no feedback is in progress.
IllegalArgumentException - if win is not the same window passed to startFeedback.

endFeedback

void endFeedback(Window win,
                 int x,
                 int y,
                 int w,
                 int h)
                 throws IllegalStateException,
                        IllegalArgumentException
End feedback, e.g. hide the feedback rectangle.

Parameters:
win - The window to be reshaped. (This allows the window system to show the whole window during moves and/or reshapes).
x - x coordinate of the feedback rectangle's upper-left corner.
y - y coordinate of the feedback rectangle's upper-left corner.
w - Width of the feedback rectangle.
h - Height of the feedback rectangle.
Throws:
IllegalStateException - if no feedback is in progress.
IllegalArgumentException - if win is not the same window passed to startFeedback.