public interface ScreenDockWindowBorder extends Border
ScreenDockWindows to paint a border. The border itself may offer methods
to paint indications whether the user currently moves or presses the mouse over it. The states will be set by
the window itself.| Modifier and Type | Interface and Description |
|---|---|
static class |
ScreenDockWindowBorder.Position
various positions where the user can grab this border
|
| Modifier and Type | Method and Description |
|---|---|
void |
setController(DockController controller)
Sets the
DockController which should be monitored for receiving colors. |
void |
setCornerSize(int cornerSize)
Sets the size of the corners in pixels.
|
void |
setMouseOver(ScreenDockWindowBorder.Position mouseOver)
Sets where the mouse is currently hovering.
|
void |
setMousePressed(ScreenDockWindowBorder.Position mousePressed)
Sets where the mouse is currently pressed.
|
void |
setMoveable(boolean moveable)
Informs this border whether the window can be moved by grabbing
this. |
void |
setMoveSize(int moveSize)
Sets the size of the area at the top that can be grabbed and used to move the window.
This property is only important if the window is moveable, otherwise
it can be ignored. |
void |
setResizeable(boolean resizeable)
Informs this border whether the window can be resized by grabbing
this. |
getBorderInsets, isBorderOpaque, paintBordervoid setController(DockController controller)
DockController which should be monitored for receiving colors.controller - the new controller, can be nullvoid setMousePressed(ScreenDockWindowBorder.Position mousePressed)
mousePressed - the position, null equals ScreenDockWindowBorder.Position.NOTHINGvoid setMouseOver(ScreenDockWindowBorder.Position mouseOver)
mouseOver - the position, null equals ScreenDockWindowBorder.Position.NOTHINGvoid setCornerSize(int cornerSize)
resizeable, otherwise
it can be ignoredcornerSize - the size in pixels, at least 0void setMoveSize(int moveSize)
moveable, otherwise
it can be ignored.moveSize - the size, at least 0void setMoveable(boolean moveable)
this.moveable - whether the window can be movedvoid setResizeable(boolean resizeable)
this.resizeable - whether the window can be resizedCopyright © 2017 Docking Frames. All rights reserved.