public class ScreenWindowLayer extends DefaultDropLayer
ScreenDockWindow
resides.Constructor and Description |
---|
ScreenWindowLayer(ScreenDockStation station,
ScreenDockWindow window) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Tells whether this
level contains the point x/y , which is the position
of the mouse on the screen. |
java.awt.Component |
getComponent()
Gets a
Component which is associated with this level. |
DockStationDropLayer |
modify(DockStationDropLayer child)
This method is called for any
DockStationDropLayer whose station
is a child to the station of this level. |
canCompare, compare, getPriority, getStation, setPriority
public ScreenWindowLayer(ScreenDockStation station, ScreenDockWindow window)
public boolean contains(int x, int y)
DockStationDropLayer
level
contains the point x/y
, which is the position
of the mouse on the screen.contains
in interface DockStationDropLayer
contains
in class DefaultDropLayer
x
- the x-coordinate of the mouse on the screeny
- the y-coordinate of the mouse on the screentrue
if this
level contains x/y
, false
otherwisepublic java.awt.Component getComponent()
DockStationDropLayer
Component
which is associated with this level. The Component
can be used to order
levels because Component
s can overlap each other. This is an optional method, a result of
null
is perfectly valid.getComponent
in interface DockStationDropLayer
getComponent
in class DefaultDropLayer
null
public DockStationDropLayer modify(DockStationDropLayer child)
DockStationDropLayer
DockStationDropLayer
whose station
is a child to the station of this
level. This method may modify the level, e.g. increase or
decrease its priority. This method is called before this
level itself gets modified by its
parents. This method is called independent of whether DockStationDropLayer.contains(int, int)
returns true
or false
.modify
in interface DockStationDropLayer
modify
in class DefaultDropLayer
child
- the child to modify, this method may either directly modify child
, create a wrapper or
a copy of child
child
or a new DockStationDropLayer
replacing child
, not null