public interface StationModeArea extends ModeArea
DockStation
which can be accessed
through Mode
s.Modifier and Type | Method and Description |
---|---|
DockableProperty |
getLocation(Dockable child)
Gets the location of
dockable which is a child
of this station. |
boolean |
setLocation(Dockable dockable,
DockableProperty location,
AffectedSet set)
Sets the location of
dockable to location
and tries to ensure that dockable is a child of this station.
This method may completely fail to change the location of dockable , for example because
a DockAcceptance does not allow the dockable to be moved. |
addModeAreaListener, autoDefaultArea, getStation, getUniqueId, isChild, isLocationRoot, removeModeAreaListener, setController, setMode
DockableProperty getLocation(Dockable child)
dockable
which is a child
of this station.child
- the childnull
boolean setLocation(Dockable dockable, DockableProperty location, AffectedSet set)
dockable
to location
and tries to ensure that dockable
is a child of this station.
This method may completely fail to change the location of dockable
, for example because
a DockAcceptance
does not allow the dockable to be moved. In such cases false
is
returned.dockable
- the new or old childlocation
- the new location, may be null
set
- this method has to store all Dockable
s which might have changed their
mode in the set.true
if docakble
is now a child of this StationModeArea
, false
if not