public class CExternalizedLocation extends AbstractStackholdingLocation
findProperty
Modifier and Type | Field and Description |
---|---|
static CLocation |
STATION
A location describing the externalize station with the id
CControl.EXTERNALIZED_STATION_ID . |
Constructor and Description |
---|
CExternalizedLocation(CLocation parent,
int x,
int y,
int width,
int height)
Creates a new location.
|
CExternalizedLocation(int x,
int y,
int width,
int height)
Creates a new location.
|
Modifier and Type | Method and Description |
---|---|
CLocation |
aside()
Deprecated.
see
CLocation.aside() for an explanation. |
ExtendedMode |
findMode()
Gets the mode this location represents.
|
DockableProperty |
findProperty(DockableProperty successor)
Gets a path describing this location in terms of the
DockingFrames.
|
String |
findRoot()
Gets the name of the station this location belongs to.
|
int |
getHeight()
Gets the height of the element.
|
CLocation |
getParent()
Gets the parent location, if there is any.
|
int |
getWidth()
Gets the width of the element.
|
int |
getX()
Gets the left end of the element.
|
int |
getY()
Gets the top end of the element.
|
CMaximalExternalizedLocation |
maximize()
Returns a location describing an element with the coordinates of this
location but that was maximized.
|
String |
toString() |
stack, stack
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
public static final CLocation STATION
CControl.EXTERNALIZED_STATION_ID
.public CExternalizedLocation(int x, int y, int width, int height)
x
- the x-coordinate in pixely
- the y-coordinate in pixelwidth
- the width in pixelheight
- the height in pixelpublic CExternalizedLocation(CLocation parent, int x, int y, int width, int height)
parent
- the parent location, can be null
x
- the x-coordinate in pixely
- the y-coordinate in pixelwidth
- the width in pixelheight
- the height in pixelpublic String findRoot()
CLocation
CStation
.public ExtendedMode findMode()
CLocation
public DockableProperty findProperty(DockableProperty successor)
CLocation
findProperty
in class CLocation
successor
- the path of the elements above this location or null
null
, can also be successor
public CMaximalExternalizedLocation maximize()
@Deprecated public CLocation aside()
CLocation.aside()
for an explanation.CLocation
CLocation
that describes the location of an element
that should be inserted next to this location.public CLocation getParent()
public int getX()
public int getY()
public int getWidth()
public int getHeight()