Package bibliothek.gui.dock.common.mode
Interface CLocationMode
- All Superinterfaces:
LocationMode,Mode<Location>
- All Known Implementing Classes:
CExternalizedMode,CMaximizedMode,CMinimizedMode,CNormalMode
LocationMode offering methods to work with CLocation.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionGets an object that represents this type of mode in aCPerspective.getCLocation(Dockable dockable) Gets the location ofdockablewhich is in this mode.getCLocation(Dockable dockable, Location location) Gets the location ofdockablewhich might or might not be a child of this mode.booleanTells whether this mode is a basic mode or not.booleanrespectWorkingAreas(DockStation station) Tells whetherDockables which have this mode applied should respect the settings forCWorkingAreas.Methods inherited from interface bibliothek.gui.dock.facile.mode.LocationMode
addLocationModeListener, aside, ensureNotHidden, getExtendedMode, getManager, getRepresentation, getRepresentationIds, isCurrentMode, isRepresenting, removeLocationModeListener, setController, setManager, shouldAutoFocusMethods inherited from interface bibliothek.gui.dock.support.mode.Mode
apply, current, getActionsFor, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
-
Method Details
-
getCLocation
Gets the location ofdockablewhich is in this mode.- Parameters:
dockable- the element whose location is asked- Returns:
- the location or
nullif it cannot be determined
-
getCLocation
Gets the location ofdockablewhich might or might not be a child of this mode.- Parameters:
dockable- the elementlocation- the locationdockableis supposed to be in if in this mode.- Returns:
- the location or
nullif it cannot be determined
-
isBasicMode
boolean isBasicMode()Tells whether this mode is a basic mode or not. There are basic and advanced modes. A basic and an advanced mode may share the same representation (the sameDockStations), but if in doubt the basic mode has more weight.- Returns:
trueif this is a basic mode
-
respectWorkingAreas
Tells whetherDockables which have this mode applied should respect the settings forCWorkingAreas.- Parameters:
station- the station which is the parent of theDockables- Returns:
trueif the settings should be respected,falseotherwise
-
createPerspective
LocationModePerspective createPerspective()Gets an object that represents this type of mode in aCPerspective.- Returns:
- the perspective version of
this
-