Class CBaseLocation
java.lang.Object
bibliothek.gui.dock.common.CLocation
bibliothek.gui.dock.common.location.CBaseLocation
A location based on a
CContentArea.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaside()Deprecated.expandProperty(DockableProperty property, CLocationExpandStrategy strategy) Tries to create a location that resemblesproperty.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 contentarea to which this location relates.Gets the parent location of this location.Creates a location describing a minimized element at the right.minimalEast(int index) Creates a location describing a minimized element at the right.Creates a location describing a minimized element at the top.minimalNorth(int index) Creates a location describing a minimized element at the top.Creates a location describing a minimized element at the bottom.minimalSouth(int index) Creates a location describing a minimized element at the bottom.Creates a location describing a minimized element at the left.minimalWest(int index) Creates a location describing a minimized element at the left.normal()Gets a location that points to the center of theCContentArea.normalEast(double size) Creates a location describing a normalized element at the east of the normalized-area.normalNorth(double size) Creates a location describing a normalized element at the north of the normalized-area.normalRectangle(double x, double y, double width, double height) Creates a location describing a normalized element at a given location.normalSouth(double size) Creates a location describing a normalized element at the south of the normalized-area.normalWest(double size) Creates a location describing a normalized element at the west of the normalized-area.toString()
-
Constructor Details
-
CBaseLocation
-
CBaseLocation
public CBaseLocation()
-
-
Method Details
-
getContentArea
Gets the contentarea to which this location relates.- Returns:
- the center or
nullif the default center is meant.
-
getParent
Description copied from class:CLocationGets the parent location of this location. Some root-locations may never have a parent. -
normal
Gets a location that points to the center of theCContentArea.- Returns:
- the location pointing to the center where normalized dockables are shown
-
normalRectangle
Creates a location describing a normalized element at a given location. Note that the normalized area is seen as a rectangle of size 1/1.- Parameters:
x- the x-coordinate, a value between 0 and 1y- the y-coordinate, a value between 0 and 1width- the width,x + widthshould be less or equal to 1height- the height,y + heightshould be less or equal to 1- Returns:
- the new location
-
normalNorth
Creates a location describing a normalized element at the north of the normalized-area.- Parameters:
size- the relative size of the element, a value between 0 (no space) and 1 (all space).- Returns:
- the new location
-
normalSouth
Creates a location describing a normalized element at the south of the normalized-area.- Parameters:
size- the relative size of the element, a value between 0 (no space) and 1 (all space).- Returns:
- the new location
-
normalEast
Creates a location describing a normalized element at the east of the normalized-area.- Parameters:
size- the relative size of the element, a value between 0 (no space) and 1 (all space).- Returns:
- the new location
-
normalWest
Creates a location describing a normalized element at the west of the normalized-area.- Parameters:
size- the relative size of the element, a value between 0 (no space) and 1 (all space).- Returns:
- the new location
-
minimalNorth
Creates a location describing a minimized element at the top.- Returns:
- the new location
-
minimalNorth
Creates a location describing a minimized element at the top.- Parameters:
index- the location in the list of minimized elements- Returns:
- the new location
-
minimalSouth
Creates a location describing a minimized element at the bottom.- Returns:
- the new location
-
minimalSouth
Creates a location describing a minimized element at the bottom.- Parameters:
index- the location in the list of minimized elements- Returns:
- the new location
-
minimalEast
Creates a location describing a minimized element at the right.- Returns:
- the new location
-
minimalEast
Creates a location describing a minimized element at the right.- Parameters:
index- the location in the list of minimized elements- Returns:
- the new location
-
minimalWest
Creates a location describing a minimized element at the left.- Returns:
- the new location
-
minimalWest
Creates a location describing a minimized element at the left.- Parameters:
index- the location in the list of minimized elements- Returns:
- the new location
-
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
-
findMode
Description copied from class:CLocationGets the mode this location represents. -
expandProperty
Description copied from class:CLocationTries to create a location that resemblesproperty.- Overrides:
expandPropertyin classCLocation- Parameters:
property- some locationstrategy- a strategy helping to convert the properties- Returns:
- a location whose
CLocation.findProperty()would createpropertyagain, ornullin case thatpropertycan't be used
-
findRoot
Description copied from class:CLocationGets the name of the station this location belongs to. This can be the id of anyCStation. -
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. -
toString
-
CLocation.aside()for an explanation.