|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScreenDockWindowBorder
This border can be used by ScreenDockWindow
s 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.
Nested Class Summary | |
---|---|
static class |
ScreenDockWindowBorder.Position
various positions where the user can grab this border |
Method Summary | |
---|---|
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 . |
Methods inherited from interface javax.swing.border.Border |
---|
getBorderInsets, isBorderOpaque, paintBorder |
Method Detail |
---|
void setController(DockController controller)
DockController
which should be monitored for receiving colors.
controller
- the new controller, can be null
void setMousePressed(ScreenDockWindowBorder.Position mousePressed)
mousePressed
- the position, null
equals ScreenDockWindowBorder.Position.NOTHING
void setMouseOver(ScreenDockWindowBorder.Position mouseOver)
mouseOver
- the position, null
equals ScreenDockWindowBorder.Position.NOTHING
void setCornerSize(int cornerSize)
resizeable
, otherwise
it can be ignored
cornerSize
- 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 resized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |