|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.screen.window.WindowConfiguration
public class WindowConfiguration
A WindowConfiguration
describes some general aspects of a ScreenDockWindow
. It is used during
creation of a window (ScreenDockWindowFactory.createWindow(bibliothek.gui.dock.ScreenDockStation, WindowConfiguration)
),
and by the ScreenDockStation
itself during drag and drop operations.
Constructor Summary | |
---|---|
WindowConfiguration()
|
Method Summary | |
---|---|
ScreenDockWindowBorderFactory |
getBorderFactory()
Gets the current factory for creating the border of the window. |
ScreenWindowShape |
getShape()
Tells which parts of the ScreenDockWindow are visible. |
boolean |
isAllowDragAndDropOnTitle()
Tells whether a drag and drop operation starts whenever possible, only has an effect if isMoveOnTitleGrab()
is true . |
boolean |
isMoveOnBorder()
Tells whether moving the window is possible by grabbing the border. |
boolean |
isMoveOnTitleGrab()
Tells whether the window should move if the title is dragged by the mouse. |
boolean |
isResetOnDropable()
Tells whether a window jumps back to its starting position. |
boolean |
isResizeable()
Tells whether the user can resize the window. |
boolean |
isTransparent()
Tells whether the window is transparent. |
void |
setAllowDragAndDropOnTitle(boolean allowDragAndDropOnTitle)
Sets whether a drag and drop operation starts if the mouse is over an area where drag and drop would be possible. |
void |
setBorderFactory(ScreenDockWindowBorderFactory borderFactory)
Sets a factory which might be used to create a border for the new window. |
void |
setMoveOnBorder(boolean moveOnBorder)
Sets whether moving the window is possible by grabbing the border. |
void |
setMoveOnTitleGrab(boolean moveOnTitleGrab)
Sets whether the window should move if the title is dragged by the mouse. |
void |
setResetOnDropable(boolean resetOnDropable)
Sets whether a window jumps back into its starting position if dropping is possible, only has an effect if isMoveOnTitleGrab() and isAllowDragAndDropOnTitle() return true . |
void |
setResizeable(boolean resizeable)
Sets whether the user can resize the window. |
void |
setShape(ScreenWindowShape shape)
Tells which parts of the window are visible. |
void |
setTransparent(boolean transparent)
Tells whether the window is transparent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowConfiguration()
Method Detail |
---|
public void setMoveOnTitleGrab(boolean moveOnTitleGrab)
moveOnTitleGrab
- whether the window should movepublic boolean isMoveOnTitleGrab()
true
if the entire window should movepublic void setMoveOnBorder(boolean moveOnBorder)
moveOnBorder
- whether moving the window is possiblepublic boolean isMoveOnBorder()
public void setAllowDragAndDropOnTitle(boolean allowDragAndDropOnTitle)
isMoveOnTitleGrab()
returns true
.
allowDragAndDropOnTitle
- whether drag and drop should be possible even if the window is already moved aroundpublic boolean isAllowDragAndDropOnTitle()
isMoveOnTitleGrab()
is true
.
setAllowDragAndDropOnTitle(boolean)
public void setResetOnDropable(boolean resetOnDropable)
isMoveOnTitleGrab()
and isAllowDragAndDropOnTitle()
return true
.
resetOnDropable
- whether the window jumps back to its original positionpublic boolean isResetOnDropable()
setResetOnDropable(boolean)
public void setResizeable(boolean resizeable)
Component
s.
resizeable
- whether the user can resize the windowpublic boolean isResizeable()
setResizeable(boolean)
public void setTransparent(boolean transparent)
Border
depends on the ScreenDockWindow
itself.transparency
or shape
of a window can be
set, but not both at the same time. If both are set, then transparency
is considered to be more
important, and the shape
is used as fallback.
transparent
- whether the window is transparentpublic boolean isTransparent()
setTransparent(boolean)
public void setShape(ScreenWindowShape shape)
null
indicates that the entire window
should be visible.
Note that either transparency
or shape
of a window can be
set, but not both at the same time. If both are set, then transparency
is considered to be more
important, and the shape
is used as fallback.
shape
- the shape of the window, or null
public ScreenWindowShape getShape()
ScreenDockWindow
are visible.
null
public void setBorderFactory(ScreenDockWindowBorderFactory borderFactory)
isResizeable()
returns false
.
borderFactory
- the factory or null
if no border should be createdpublic ScreenDockWindowBorderFactory getBorderFactory()
null
setBorderFactory(ScreenDockWindowBorderFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |