bibliothek.gui.dock.common.mode
Class CMaximizedMode
java.lang.Object
bibliothek.gui.dock.facile.mode.AbstractLocationMode<M>
bibliothek.gui.dock.facile.mode.MaximizedMode<CMaximizedModeArea>
bibliothek.gui.dock.common.mode.CMaximizedMode
- All Implemented Interfaces:
- CLocationMode, LocationMode, Mode<Location>, Iterable<CMaximizedModeArea>
public class CMaximizedMode
- extends MaximizedMode<CMaximizedModeArea>
- implements CLocationMode
Manages CMaximizedModeArea
s.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.facile.mode.MaximizedMode |
applyDone, applyStarting, current, ensureNotHidden, getExtendedMode, getMaximizeArea, getMaximizeArea, getMaximizeBehavior, getMaximizingElement, getMaximizingElement, getNextMaximizeArea, getSettingFactory, getUniqueIdentifier, getUnmaximizedMode, isCurrentMode, isDefaultMode, maximize, maximize, process, readSetting, runApply, setManager, setMaximizeBehavior, switchMode, unmaximize, unmaximize, unmaximize, writeSetting |
Methods inherited from class bibliothek.gui.dock.facile.mode.AbstractLocationMode |
add, addLocationModeListener, apply, createHandle, get, get, get, getActionsFor, getController, getDefaultArea, getManager, getRepresentation, isModeAvailable, isRepresenting, iterator, listeners, remove, removeLocationModeListener, setActionProvider, setController, setDefaultArea |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMaximizedMode
public CMaximizedMode(CControl control)
- Creates a new mode.
- Parameters:
control
- the control in whose realm this mode works.
getCLocation
public CLocation getCLocation(Dockable dockable)
- Description copied from interface:
CLocationMode
- Gets the location of
dockable
which is in this mode.
- Specified by:
getCLocation
in interface CLocationMode
- Parameters:
dockable
- the element whose location is asked
- Returns:
- the location or
null
if it cannot be determined
getCLocation
public CLocation getCLocation(Dockable dockable,
Location location)
- Description copied from interface:
CLocationMode
- Gets the location of
dockable
which might or might not
be a child of this mode.
- Specified by:
getCLocation
in interface CLocationMode
- Parameters:
dockable
- the elementlocation
- the location dockable
is supposed to be in
if in this mode.
- Returns:
- the location or
null
if it cannot be determined
isBasicMode
public boolean isBasicMode()
- Description copied from interface:
CLocationMode
- 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 same
DockStation
s), but if in doubt the
basic mode has more weight.
- Specified by:
isBasicMode
in interface CLocationMode
- Returns:
true
if this is a basic mode
respectWorkingAreas
public boolean respectWorkingAreas(DockStation station)
- Description copied from interface:
CLocationMode
- Tells whether
Dockable
s which have this mode applied should
respect the settings for CWorkingArea
s.
- Specified by:
respectWorkingAreas
in interface CLocationMode
- Parameters:
station
- the station which is the parent of the Dockable
s
- Returns:
true
if the settings should be respected, false
otherwise