Interface CElementPerspective
- All Known Subinterfaces:
CDockablePerspective,CStationPerspective
- All Known Implementing Classes:
AbstractCDockablePerspective,CExternalizePerspective,CGridPerspective,CMinimizePerspective,CWorkingPerspective,MultipleCDockablePerspective,SingleCDockablePerspective
public interface CElementPerspective
Represents a dockable or a station in a
CPerspective.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionGetsthisas dockable, if this is a dockable.Getsthisas station, if this is a station.intern()Gets the internal representation for this element.
IfasDockable()returns a non-nullvalue, thenintern().asDockable()must not returnnulleither.
IfasStation()returns a non-nullvalue, thenintern().asStation()must not returnnulleither.
-
Method Details
-
intern
CommonElementPerspective intern()Gets the internal representation for this element.
IfasDockable()returns a non-nullvalue, thenintern().asDockable()must not returnnulleither.
IfasStation()returns a non-nullvalue, thenintern().asStation()must not returnnulleither.- Returns:
- the internal representation
-
asDockable
CDockablePerspective asDockable()Getsthisas dockable, if this is a dockable.- Returns:
thisornull
-
asStation
CStationPerspective asStation()Getsthisas station, if this is a station.- Returns:
thisornull
-