bibliothek.gui.dock.station.flap.layer
Class WindowDropLayer
java.lang.Object
bibliothek.gui.dock.station.layer.DefaultDropLayer
bibliothek.gui.dock.station.flap.layer.WindowDropLayer
- All Implemented Interfaces:
- DockStationDropLayer
public class WindowDropLayer
- extends DefaultDropLayer
Describes the area covered by the currently open FlapWindow
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowDropLayer
public WindowDropLayer(FlapDockStation station)
- Creates a new layer.
- Parameters:
station
- the owner of this level
contains
public boolean contains(int x,
int y)
- Description copied from interface:
DockStationDropLayer
- Tells whether this
level
contains the point x/y
, which is the position
of the mouse on the screen.
- Specified by:
contains
in interface DockStationDropLayer
- Overrides:
contains
in class DefaultDropLayer
- Parameters:
x
- the x-coordinate of the mouse on the screeny
- the y-coordinate of the mouse on the screen
- Returns:
true
if this
level contains x/y
, false
otherwise
modify
public DockStationDropLayer modify(DockStationDropLayer child)
- Description copied from interface:
DockStationDropLayer
- This method is called for any
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
.
- Specified by:
modify
in interface DockStationDropLayer
- Overrides:
modify
in class DefaultDropLayer
- Parameters:
child
- the child to modify, this method may either directly modify child
, create a wrapper or
a copy of child
- Returns:
- either
child
or a new DockStationDropLayer
replacing child
, not null