Class CExternalizedLocation
java.lang.Object
bibliothek.gui.dock.common.CLocation
bibliothek.gui.dock.common.location.AbstractStackholdingLocation
bibliothek.gui.dock.common.location.CExternalizedLocation
- Direct Known Subclasses:
CMaximalExternalizedLocation
A location representing an externalized element.
- Author:
- Benjamin Sigg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CLocationA location describing the externalize station with the idCControl.EXTERNALIZED_STATION_ID. -
Constructor Summary
ConstructorsConstructorDescriptionCExternalizedLocation(int x, int y, int width, int height) Creates a new location.CExternalizedLocation(CLocation parent, int x, int y, int width, int height) Creates a new location. -
Method Summary
Modifier and TypeMethodDescriptionaside()Deprecated.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.intGets the height of the element.Gets the parent location, if there is any.intgetWidth()Gets the width of the element.intgetX()Gets the left end of the element.intgetY()Gets the top end of the element.maximize()Returns a location describing an element with the coordinates of this location but that was maximized.toString()Methods inherited from class bibliothek.gui.dock.common.location.AbstractStackholdingLocation
stack, stackMethods inherited from class bibliothek.gui.dock.common.CLocation
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
-
Field Details
-
STATION
A location describing the externalize station with the idCControl.EXTERNALIZED_STATION_ID.
-
-
Constructor Details
-
CExternalizedLocation
public CExternalizedLocation(int x, int y, int width, int height) Creates a new location.- Parameters:
x- the x-coordinate in pixely- the y-coordinate in pixelwidth- the width in pixelheight- the height in pixel
-
CExternalizedLocation
Creates a new location.- Parameters:
parent- the parent location, can benullx- the x-coordinate in pixely- the y-coordinate in pixelwidth- the width in pixelheight- the height in pixel
-
-
Method Details
-
findRoot
Description copied from class:CLocationGets the name of the station this location belongs to. This can be the id of anyCStation. -
findMode
Description copied from class:CLocationGets the mode this location represents. -
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
-
maximize
Returns a location describing an element with the coordinates of this location but that was maximized.- Returns:
- the maximized version of this location
-
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
-
getParent
Gets the parent location, if there is any. -
getX
public int getX()Gets the left end of the element.- Returns:
- the x coordinate
-
getY
public int getY()Gets the top end of the element.- Returns:
- the y coordinate
-
getWidth
public int getWidth()Gets the width of the element.- Returns:
- the width
-
getHeight
public int getHeight()Gets the height of the element.- Returns:
- the height
-
CLocation.aside()for an explanation.