public class WindowDropLayer extends DefaultDropLayer
FlapWindow
.Constructor and Description |
---|
WindowDropLayer(FlapDockStation station)
Creates a new layer.
|
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. |
DockStationDropLayer |
modify(DockStationDropLayer child)
This method is called for any
DockStationDropLayer whose station
is a child to the station of this level. |
canCompare, compare, getComponent, getPriority, getStation, setPriority
public WindowDropLayer(FlapDockStation station)
station
- the owner of this levelpublic 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 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