Class CSplitLocation
java.lang.Object
bibliothek.gui.dock.common.CLocation
bibliothek.gui.dock.common.location.CSplitLocation
- Direct Known Subclasses:
CContentAreaCenterLocation,CGridAreaLocation,CWorkingAreaLocation
This location is used to describe a
SplitDockStation.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new locationCSplitLocation(CLocation parent) Creates a new location -
Method Summary
Modifier and TypeMethodDescriptionaside()Deprecated.east(double size) Creates a location that describes a space in the right part of theSplitDockStation.east(double size, long nodeId) Creates a location that describes a space in the right part of theSplitDockStation.findMode()Gets the mode this location represents.findProperty(DockableProperty successor) Gets a path describing this location in terms of the DockingFrames.findRoot()Gets the name of the station this location belongs to.Gets the parent location of this location.north(double size) Creates a location that describes a space in the upper part of theSplitDockStation.north(double size, long nodeId) Creates a location that describes a space in the upper part of theSplitDockStation.rectangle(double x, double y, double width, double height) Creates a location which occupies a sub-rectangle of theSplitDockStationwhich is described by this location.south(double size) Creates a location that describes a space in the lower part of theSplitDockStation.south(double size, long nodeId) Creates a location that describes a space in the lower part of theSplitDockStation.stack()Creates a new location which represents a position in a stack that covers the wholeSplitDockStation.stack(int index) Creates a new location which represents a position in a stack that covers the wholeSplitDockStation.toString()west(double size) Creates a location that describes a space in the left part of theSplitDockStation.west(double size, long nodeId) Creates a location that describes a space in the left part of theSplitDockStation.Methods inherited from class bibliothek.gui.dock.common.CLocation
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
-
Constructor Details
-
CSplitLocation
public CSplitLocation()Creates a new location -
CSplitLocation
Creates a new location- Parameters:
parent- the parent location, can benull
-
-
Method Details
-
aside
Deprecated.seeCLocation.aside()for an explanation.Description copied from class:CLocationReturns aCLocationthat describes the location of an element that should be inserted next to this location. -
getParent
Description copied from class:CLocationGets the parent location of this location. Some root-locations may never have a parent. -
rectangle
Creates a location which occupies a sub-rectangle of theSplitDockStationwhich is described by this location. All arguments of this method must be between 0 and 1, andx+widthandy+heightshould be smaller or equal to 1.- Parameters:
x- the relative x coordinatey- the relative y coordinatewidth- the relative widthheight- the relative height- Returns:
- the location describing a rectangle
-
stack
Creates a new location which represents a position in a stack that covers the wholeSplitDockStation.- Returns:
- the new location
-
stack
Creates a new location which represents a position in a stack that covers the wholeSplitDockStation.- Parameters:
index- the index within the stack- Returns:
- the new location
-
north
Creates a location that describes a space in the upper part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1- Returns:
- the new location
-
north
Creates a location that describes a space in the upper part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1nodeId- the unique identifier of the new node, can be -1- Returns:
- the new location
-
south
Creates a location that describes a space in the lower part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1- Returns:
- the new location
-
south
Creates a location that describes a space in the lower part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1nodeId- the unique identifier of the new node, can be -1- Returns:
- the new location
-
east
Creates a location that describes a space in the right part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1- Returns:
- the new location
-
east
Creates a location that describes a space in the right part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1nodeId- the unique identifier of the new node, can be -1- Returns:
- the new location
-
west
Creates a location that describes a space in the left part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1- Returns:
- the new location
-
west
Creates a location that describes a space in the left part of theSplitDockStation.- Parameters:
size- the size of the space, between 0 and 1nodeId- the unique identifier of the new node, can be -1- Returns:
- the new location
-
findMode
Description copied from class:CLocationGets the mode this location represents. -
findRoot
Description copied from class:CLocationGets the name of the station this location belongs to. This can be the id of anyCStation. -
findProperty
Description copied from class:CLocationGets a path describing this location in terms of the DockingFrames.- Specified by:
findPropertyin classCLocation- Parameters:
successor- the path of the elements above this location ornull- Returns:
- the path to this location or
null, can also besuccessor
-
toString
-
CLocation.aside()for an explanation.