Package | Description |
---|---|
bibliothek.gui.dock |
The five basic classes implementing
Dockable and
DockStation plus some supporting elements. |
bibliothek.gui.dock.station.screen |
Elements that are related to the
ScreenDockStation . |
bibliothek.gui.dock.station.screen.layer |
Contains the various
DockStationDropLayer s
that are used by a ScreenDockStation . |
bibliothek.gui.dock.station.screen.magnet |
The magnet API allows
ScreenDockWindow s to
attract each other, or to stick together. |
bibliothek.gui.dock.station.screen.window |
Contains the window (
JDialog , JInternalDialog , etc..)
that shows the children of a ScreenDockStation and the classes required
to configure that window. |
Modifier and Type | Method and Description |
---|---|
protected ScreenDockWindow |
ScreenDockStation.createWindow(WindowConfiguration configuration)
Creates a new window which is associated with this station.
|
ScreenDockWindow |
ScreenDockStation.getWindow(Dockable dockable)
Searches the
ScreenDockWindow which displays the dockable . |
ScreenDockWindow |
ScreenDockStation.getWindow(int index)
Gets the
index 'th window of this station. |
protected ScreenDockWindow |
ScreenDockStation.searchCombineDockable(int x,
int y,
Dockable drop,
boolean combineArea)
Searches a window on the coordinates x/y which can be used to create
a combination with
drop . |
Modifier and Type | Method and Description |
---|---|
protected void |
ScreenDockStation.deregister(Dockable dockable,
ScreenDockWindow window)
Invoked when a
ScreenDockWindow is no longer needed. |
protected ScreenDockWindowHandle |
ScreenDockStation.register(Dockable dockable,
Path placeholder,
ScreenDockWindow window,
WindowConfiguration configuration)
Invoked after a new
ScreenDockWindow has been created. |
Modifier and Type | Method and Description |
---|---|
ScreenDockWindow |
ScreenDockWindowFactory.createWindow(ScreenDockStation station,
WindowConfiguration configuration)
Creates a new window which will be used by
station . |
ScreenDockWindow |
ScreenDockStationExtension.DropArguments.getWindow()
Gets the window with which the element will be merged
|
ScreenDockWindow |
ScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station)
This method is called if the result of
ScreenDockStation.getOwner() changed, i.e. |
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
HardBoundaryRestriction.boundsInDevice(ScreenDockWindow window,
int x,
int y,
int width,
int height,
GraphicsDevice device)
Calculates size and location of
dialog such that it is
in device . |
Rectangle |
AbstractBoundaryRestriction.check(ScreenDockWindow window) |
Rectangle |
BoundaryRestriction.check(ScreenDockWindow window)
Calculates the bounds which
window can have. |
Rectangle |
InternalBoundaryRestriction.check(ScreenDockWindow window) |
Rectangle |
AbstractBoundaryRestriction.check(ScreenDockWindow window,
Rectangle target) |
Rectangle |
BoundaryRestriction.check(ScreenDockWindow window,
Rectangle target)
Calculates the bounds which
window can have. |
Rectangle |
InternalBoundaryRestriction.check(ScreenDockWindow window,
Rectangle target) |
protected abstract Rectangle |
AbstractBoundaryRestriction.checkSize(ScreenDockWindow window)
Checks the size and location of
window |
protected Rectangle |
HardBoundaryRestriction.checkSize(ScreenDockWindow window) |
Rectangle |
MediumBoundaryRestriction.checkSize(ScreenDockWindow window) |
protected abstract Rectangle |
AbstractBoundaryRestriction.checkSize(ScreenDockWindow window,
Rectangle target)
Checks the size and location of
window assuming that window will
be give the boundaries target . |
protected Rectangle |
HardBoundaryRestriction.checkSize(ScreenDockWindow window,
Rectangle target) |
Rectangle |
MediumBoundaryRestriction.checkSize(ScreenDockWindow window,
Rectangle target) |
void |
ScreenDockWindowListener.fullscreenStateChanged(ScreenDockWindow window)
This method is called after the windows fullscreen-state changed.
|
protected Dimension |
AbstractBoundaryRestriction.getMaximumSize(ScreenDockWindow window)
Finds the maximum size that
window is allowed to have. |
protected Dimension |
MediumBoundaryRestriction.getMinimumSize(ScreenDockWindow window)
Gets the minimum size of
window , the default implementation just calls
getMinimumWindowSize() , but subclasses may override this method
to use another algorithm for finding the minimum window size. |
boolean |
DefaultScreenDockFullscreenStrategy.isFullscreen(ScreenDockWindow window) |
boolean |
InternalFullscreenStrategy.isFullscreen(ScreenDockWindow window) |
boolean |
ScreenDockFullscreenStrategy.isFullscreen(ScreenDockWindow window)
Tells whether
window is in fullscreen mode. |
boolean |
DefaultScreenDockFullscreenStrategy.isFullscreen(ScreenDockWindow wrapper,
Window window)
Tells whether the frame or dialog
window is in fullscreen mode. |
protected double |
HardBoundaryRestriction.measureBounds(ScreenDockWindow window,
int x,
int y,
int width,
int height,
GraphicsDevice device)
Checks how good
window fits into the screen device |
void |
DefaultScreenDockFullscreenStrategy.setFullscreen(ScreenDockWindow window,
boolean fullscreen) |
void |
InternalFullscreenStrategy.setFullscreen(ScreenDockWindow window,
boolean fullscreen) |
void |
ScreenDockFullscreenStrategy.setFullscreen(ScreenDockWindow window,
boolean fullscreen)
Changes the fullscreen mode of
window , does nothing if this strategy cannot handle the
type of window . |
void |
DefaultScreenDockFullscreenStrategy.setFullscreen(ScreenDockWindow wrapper,
Window window,
boolean fullscreen)
Sets the fullscreen mode of
window . |
void |
ScreenDockStationExtension.DropArguments.setWindow(ScreenDockWindow window)
Sets the window with which the element will be merged
|
void |
ScreenDockWindowListener.shapeChanged(ScreenDockWindow window)
This method is called after the size and position of
window changed. |
ScreenDockWindow |
ScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station)
This method is called if the result of
ScreenDockStation.getOwner() changed, i.e. |
protected Rectangle |
MediumBoundaryRestriction.validate(ScreenDockWindow window,
Rectangle target,
Point center,
Point search)
Ensures that
center will be in a visible part of the screen. |
void |
ScreenDockWindowListener.visibilityChanged(ScreenDockWindow window)
This method is called after the
visibility state changed. |
void |
ScreenDockWindowListener.windowClosing(ScreenDockWindow window)
Called if the user wants to close the window (e.g.
|
void |
ScreenDockStationListener.windowDeregistering(ScreenDockStation station,
Dockable dockable,
ScreenDockWindow window)
Called when
window was removed from station . |
void |
ScreenDockStationListener.windowRegistering(ScreenDockStation station,
Dockable dockable,
ScreenDockWindow window)
Called when
window was added to station . |
Constructor and Description |
---|
ScreenWindowLayer(ScreenDockStation station,
ScreenDockWindow window) |
Modifier and Type | Method and Description |
---|---|
ScreenDockWindow[] |
MagnetController.getAttracted(ScreenDockWindow window)
|
ScreenDockWindow |
MagnetController.getCurrent()
Gets the window that is currently moved.
|
ScreenDockWindow |
MagnetRequest.getWindow()
Gets the window that has changed.
|
ScreenDockWindow |
StickMagnetGraph.Node.getWindow()
Gest the window which is described by this node.
|
ScreenDockWindow |
StickMagnetGraph.DefaultNode.getWindow() |
ScreenDockWindow[] |
MagnetController.getWindows()
Gets an array containing all the
ScreenDockWindow s that are currently shown by the station . |
Modifier and Type | Method and Description |
---|---|
boolean |
StickMagnetGraph.depends(ScreenDockWindow window,
MagnetRequest.Side side)
Tells whether the side
side of window will be moved if the
root window is moved at side . |
int |
MagnetController.distance(ScreenDockWindow windowA,
MagnetRequest.Side sideA,
ScreenDockWindow windowB,
MagnetRequest.Side sideB,
boolean initialBoundaries)
Calculates the distance between
sideA of windowA to sideB of windowB . |
protected void |
StickMagnetGraph.expand(int index,
StickMagnetGraph.DefaultNode[] nodes,
ScreenDockWindow[] windows)
Builds the entire stickiness graph using a breath first search algorithm.
|
ScreenDockWindow[] |
MagnetController.getAttracted(ScreenDockWindow window)
|
Rectangle |
MagnetRequest.getInitialBounds(ScreenDockWindow window)
Gets the boundaries of
window when this request was created. |
MagnetRequest.Side |
StickMagnetGraph.Node.getNeighbor(ScreenDockWindow window)
Tells whether
window is a neighbor of this node and
depends on this node, and if so tells on which side of this node
window lies. |
MagnetRequest.Side |
StickMagnetGraph.DefaultNode.getNeighbor(ScreenDockWindow window) |
int |
MagnetController.getValue(ScreenDockWindow window,
MagnetRequest.Side side,
boolean initialBoundaries)
Gets the location of the side
side of window . |
boolean |
MagnetController.intersectHorizontally(ScreenDockWindow windowA,
ScreenDockWindow windowB,
boolean initialBoundaries)
Tells whether the
y coordinate and the height of windowA and windowB
are such that they have at least one pixel at the same height. |
boolean |
MagnetController.intersectVertically(ScreenDockWindow windowA,
ScreenDockWindow windowB,
boolean initialBoundaries)
Tells whether the
x coordinate and the width of windowA and windowB
are such that they have at least one pixel at the same width. |
void |
MagnetRequest.movingAttraction(ScreenDockWindow neighbor,
MagnetRequest.Side windowSide,
MagnetRequest.Side neighborSide)
Moves the
window such that its side windowSide is at
the same location as the side neighborSide from neighbor . |
protected MagnetRequest.Side |
StickMagnetGraph.relation(ScreenDockWindow moved,
ScreenDockWindow fixed)
Gets the relation of
moved to fixed . |
void |
MagnetRequest.resizingAttraction(ScreenDockWindow neighbor,
MagnetRequest.Side windowSide,
MagnetRequest.Side neighborSide)
Resizes the
window such that its side windowSide is at
the same location as the side neighborSide from neighbor . |
MagnetizedOperation |
MagnetController.start(ScreenDockWindow window)
Starts a move or resize operation that involves
window . |
Constructor and Description |
---|
DefaultNode(int index,
ScreenDockWindow window)
Creates a new node.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractScreenDockWindow
|
class |
DisplayerScreenDockWindow
A window that uses a
DockableDisplayer to show the Dockable . |
class |
InternalDockDialog
A
ScreenDockWindow that has a JDesktopPane as parent. |
class |
ScreenDockDialog
An implementation of
ScreenDockWindow which uses a JDialog . |
class |
ScreenDockFrame
An implementation of
ScreenDockWindow which uses a JFrame . |
Modifier and Type | Method and Description |
---|---|
ScreenDockWindow |
DefaultScreenDockWindowFactory.createWindow(ScreenDockStation station,
WindowConfiguration configuration) |
ScreenDockWindow |
InternalScreenDockWindowFactory.createWindow(ScreenDockStation station,
WindowConfiguration configuration) |
ScreenDockWindow |
ScreenWindowShapeAdapter.getScreenDockWindow()
Gets the
ScreenDockWindow whose shape is changed. |
ScreenDockWindow |
DefaultScreenDockWindowBorder.BorderColor.getWindow() |
ScreenDockWindow |
DisplayerScreenDockWindow.Background.getWindow() |
ScreenDockWindow |
ScreenDockWindowBackgroundComponent.getWindow()
Gets the window which is represented by this component.
|
ScreenDockWindow |
ScreenDockWindowColor.getWindow()
Gets the window for which this color is used.
|
ScreenDockWindow |
ScreenDockWindowDockBorder.getWindow()
Gets the window which is represented by this border.
|
ScreenDockWindow |
ScreenDockWindowHandle.getWindow()
Gets the window which is represented by this handle.
|
ScreenDockWindow |
ScreenWindowShapeCallback.getWindow()
Gets the window which is modified by this callback.
|
ScreenDockWindow |
DefaultScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station) |
ScreenDockWindow |
InternalScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station) |
Modifier and Type | Method and Description |
---|---|
void |
ScreenDockWindowClosingStrategy.closing(ScreenDockWindow window)
Called if the user wants to close
window , e.g. |
ScreenDockWindowBorder |
ScreenDockWindowBorderFactory.create(ScreenDockWindow window,
JComponent owner)
Creates a new border.
|
void |
ScreenDockWindowHandle.setWindow(ScreenDockWindow window,
WindowConfiguration configuration)
Sets the window which is represented by this handle.
|
ScreenDockWindow |
DefaultScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station) |
ScreenDockWindow |
InternalScreenDockWindowFactory.updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station) |
Constructor and Description |
---|
DefaultScreenDockWindowBorder(ScreenDockWindow window,
JComponent target)
Creates a new border
|
ResizingLayoutManager(ScreenDockWindow window,
Component windowComponent)
Creates a new layout manager
|
ScreenDockWindowHandle(Dockable dockable,
ScreenDockWindow window,
WindowConfiguration configuration)
Creates a new handle.
|
ScreenWindowShapeAdapter(ScreenDockWindow screenDockWindow,
Window window)
Creates a new adapter.
|
WindowMover(ScreenDockWindow window)
Creates a new mover
|