public class OrientingDockStationEvent extends Object
OrientedDockStation if one or many children
changed their orientation.| Constructor and Description |
|---|
OrientingDockStationEvent(OrientingDockStation station)
Creates a new event, this is equivalent of calling
OrientingDockStationEvent(OrientingDockStation, Dockable[]) with
the children array set to null |
OrientingDockStationEvent(OrientingDockStation station,
Dockable[] children)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Dockable> |
getChildren()
Gets all affected children, the collection is not modifiable.
|
OrientingDockStation |
getStation()
Gets the source of the event.
|
boolean |
isAffected(Dockable dockable)
Tells whether
dockable was affected by the event. |
public OrientingDockStationEvent(OrientingDockStation station)
OrientingDockStationEvent(OrientingDockStation, Dockable[]) with
the children array set to nullstation - the source of the eventpublic OrientingDockStationEvent(OrientingDockStation station, Dockable[] children)
station - the source of the eventchildren - the affected children or null, if
null then all children of station
are affectedpublic OrientingDockStation getStation()
public boolean isAffected(Dockable dockable)
dockable was affected by the event.dockable - some dockable which may or may not be affectedtrue if dockable may have changed its
orientationpublic Collection<Dockable> getChildren()
DockablesCopyright © 2018. All rights reserved.