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. |
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, setPrioritypublic ScreenWindowLayer(ScreenDockStation station, ScreenDockWindow window)
public boolean contains(int x,
int y)
DockStationDropLayerlevel contains the point x/y, which is the position
of the mouse on the screen.contains in interface DockStationDropLayercontains in class DefaultDropLayerx - 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 Component getComponent()
DockStationDropLayerComponent which is associated with this level. The Component can be used to order
levels because Components can overlap each other. This is an optional method, a result of
null is perfectly valid.getComponent in interface DockStationDropLayergetComponent in class DefaultDropLayernullpublic DockStationDropLayer modify(DockStationDropLayer child)
DockStationDropLayerDockStationDropLayer 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 DockStationDropLayermodify in class DefaultDropLayerchild - the child to modify, this method may either directly modify child, create a wrapper or
a copy of childchild or a new DockStationDropLayer replacing child, not nullCopyright © 2017 Docking Frames. All rights reserved.