|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.common.CLocation
public abstract class CLocation
A class describing the location of a CDockable
. CLocation
s
are combined, and a whole path of CLocation
s describes an actual
location. Some examples how to create a path of locations:
// an externalized element CLocation location = CLocation.external( 20, 20, 400, 300 ); // a minimized element at the left side of the default panel CLocation location = CLocation.base().minimalWest(); // an element in the lower right corner on a stack (tapped pane): CLocation location = CLocation.base().normalSouth( 0.5 ).east( 0.5 ).stack( 2 ); // an element in the middle on a specific CContentArea CContentArea area = ... CLocation location = CLocation.base( area ).normalRectangle( 0.25, 0.25, 0.5, 0.5 );
Constructor Summary | |
---|---|
CLocation()
|
Method Summary | |
---|---|
abstract CLocation |
aside()
Returns a CLocation that describes the location of an element
that should be inserted next to this location. |
static CBaseLocation |
base()
Creates a new location that tells all children to use the default center. |
static CBaseLocation |
base(CContentArea center)
Creates a new location that tells all children to use a station defined on center . |
static CExternalizedLocation |
external(int x,
int y,
int width,
int height)
Creates a new location representing the externalized mode. |
abstract CDockable.ExtendedMode |
findMode()
Gets the mode this location represents. |
DockableProperty |
findProperty()
Gets a path describing this location in terms of the DockingFrames. |
abstract DockableProperty |
findProperty(DockableProperty successor)
Gets a path describing this location in terms of the DockingFrames. |
abstract String |
findRoot()
Gets the name of the station this location belongs to. |
static CMaximizedLocation |
maximized()
Creates a location representing the maximized mode. |
static CWorkingAreaLocation |
working(CWorkingArea area)
Creates a new location representing the given CWorkingArea . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLocation()
Method Detail |
---|
public static CBaseLocation base(CContentArea center)
center
.
center
- the base of all new locations, can be null
center
public static CBaseLocation base()
public static CWorkingAreaLocation working(CWorkingArea area)
CWorkingArea
.
area
- an area
area
public static CExternalizedLocation external(int x, int y, int width, int height)
x
- the x-coordinate in pixelsy
- the y-coordinate in pixelswidth
- the width in pixelsheight
- the height in pixels
public static CMaximizedLocation maximized()
public abstract String findRoot()
null
if this location
does not have enough information to find the rootpublic abstract CDockable.ExtendedMode findMode()
null
public DockableProperty findProperty()
null
public abstract DockableProperty findProperty(DockableProperty successor)
successor
- the path of the elements above this location or null
null
public abstract CLocation aside()
CLocation
that describes the location of an element
that should be inserted next to this location.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |