public class CExternalizePerspective extends Object implements CStationPerspective
CExternalizeArea.| Modifier and Type | Class and Description |
|---|---|
class |
CExternalizePerspective.CommonScreenDockPerspective
This type of object is used by the
CExternalizePerspective as intern representation. |
| Constructor and Description |
|---|
CExternalizePerspective(String id,
Path typeId)
Creates a new, empty perspective.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(CDockablePerspective dockable,
int x,
int y,
int width,
int height)
Adds
dockable at location x/y with size width/height to
this area. |
void |
add(CDockablePerspective dockable,
int x,
int y,
int width,
int height,
boolean fullscreen)
Adds
dockable at location x/y with size width/height to
this area. |
void |
add(CDockablePerspective dockable,
Rectangle bounds)
Adds
dockable width boundaries bounds to this area. |
void |
add(CDockablePerspective dockable,
Rectangle bounds,
boolean fullscreen)
Adds
dockable width boundaries bounds to this area. |
void |
addPlaceholder(CDockablePerspective dockable,
int x,
int y,
int width,
int height)
Adds a placeholder for
dockable and all its children to this
area. |
void |
addPlaceholder(CDockablePerspective dockable,
Rectangle bounds)
Adds a placeholder for
dockable and all its children to this
area. |
void |
addPlaceholder(Path placeholder,
int x,
int y,
int width,
int height)
Adds
placeholder to this area. |
void |
addPlaceholder(Path placeholder,
Rectangle bounds)
Adds
placeholder to this area. |
CDockablePerspective |
asDockable()
Gets
this as dockable, if this is a dockable. |
CStationPerspective |
asStation()
Gets
this as station, if this is a station. |
String |
getFactoryID() |
CPerspective |
getPerspective()
Gets the perspective which presents this station.
|
PlaceholderMap |
getPlaceholders() |
Path |
getTypeId()
Gets the unique id denoting the type of this
CStation, this should be the
exact same result as CStation.getTypeId() will return. |
String |
getUniqueId()
Gets the unique identifier of this station.
|
ScreenDockPerspective.ScreenPerspectiveWindow |
getWindow(CDockablePerspective dockable)
Gets an object that stores all the properties that are associated with
dockable. |
int |
indexOf(CDockablePerspective dockable)
Gets the location of
dockable. |
CExternalizePerspective.CommonScreenDockPerspective |
intern()
Gets the internal representation for this element.
|
boolean |
isRoot()
Tells whether this is a root station or not.
|
boolean |
isWorkingArea()
Tells whether this station will act as a
working area. |
boolean |
remove(CDockablePerspective dockable)
Removes
dockable from this area. |
CDockablePerspective |
remove(int index)
Removes the
index'th dockable of this area. |
void |
setPerspective(CPerspective perspective)
Informs this station by which perspective it is used.
|
void |
setPlaceholders(PlaceholderMap placeholders) |
void |
setRoot(boolean root)
Sets the root station flag.
|
public String getUniqueId()
CStationPerspectivegetUniqueId in interface CStationPerspectivepublic Path getTypeId()
CStationPerspectiveCStation, this should be the
exact same result as CStation.getTypeId() will return.getTypeId in interface CStationPerspectivenullpublic boolean isRoot()
CStationPerspectiveisRoot in interface CStationPerspectiveCStationPerspective.setRoot(boolean)public void setRoot(boolean root)
CStationPerspectiveroot parameter when calling
CControl.addStation(bibliothek.gui.dock.common.CStation, boolean). The location of a Dockable is
always relative to its nearest root-station parent.CControl.addStation(bibliothek.gui.dock.common.CStation, boolean) will
never be overridden by the flag set in the perspective.setRoot in interface CStationPerspectivepublic void setPerspective(CPerspective perspective)
CStationPerspectivesetPerspective in interface CStationPerspectiveperspective - the perspective that uses this station or nullpublic CPerspective getPerspective()
CStationPerspectivegetPerspective in interface CStationPerspectivenullpublic void add(CDockablePerspective dockable, Rectangle bounds)
dockable width boundaries bounds to this area.dockable - the element to add, not nullbounds - the boundaries of dockablepublic void add(CDockablePerspective dockable, int x, int y, int width, int height)
dockable at location x/y with size width/height to
this area.dockable - the element to add, not nullx - the x-coordinate on the screeny - the y-coordinate on the screenwidth - the width of the windowheight - the height of the windowpublic void add(CDockablePerspective dockable, Rectangle bounds, boolean fullscreen)
dockable width boundaries bounds to this area.dockable - the element to add, not nullbounds - the boundaries of dockablefullscreen - whether dockable should be extended to fullscreen modepublic void add(CDockablePerspective dockable, int x, int y, int width, int height, boolean fullscreen)
dockable at location x/y with size width/height to
this area.dockable - the element to add, not nullx - the x-coordinate on the screeny - the y-coordinate on the screenwidth - the width of the windowheight - the height of the windowfullscreen - whether dockable should be extended to fullscreen modepublic void addPlaceholder(CDockablePerspective dockable, Rectangle bounds)
dockable and all its children to this
area.dockable - the element whose placeholder should be insertedbounds - the location and size of dockablepublic void addPlaceholder(CDockablePerspective dockable, int x, int y, int width, int height)
dockable and all its children to this
area.dockable - the element whose placeholder should be insertedx - the x-coordinate on the screeny - the y-coordinate on the screenwidth - the width of the windowheight - the height of the windowpublic void addPlaceholder(Path placeholder, Rectangle bounds)
placeholder to this area.placeholder - the placeholder to add, not nullbounds - the location and size of placeholderpublic void addPlaceholder(Path placeholder, int x, int y, int width, int height)
placeholder to this area.placeholder - the placeholder to add, not nullx - the x-coordinate on the screeny - the y-coordinate on the screenwidth - the width of the windowheight - the height of the windowpublic ScreenDockPerspective.ScreenPerspectiveWindow getWindow(CDockablePerspective dockable)
dockable.dockable - the element whose window is searchednull if dockable is not known to this areapublic boolean remove(CDockablePerspective dockable)
dockable from this area.dockable - the element to removetrue if dockable was found and removed, false
otherwise.public CDockablePerspective remove(int index)
index'th dockable of this area.index - the index of a child of this areanull if the element is not a CDockablePerspectivepublic int indexOf(CDockablePerspective dockable)
dockable.dockable - some child of this areapublic CExternalizePerspective.CommonScreenDockPerspective intern()
CElementPerspectiveCElementPerspective.asDockable() returns a non-null value, then intern().asDockable() must not
return null either.CElementPerspective.asStation() returns a non-null value, then intern().asStation() must not
return null either.intern in interface CElementPerspectivepublic CDockablePerspective asDockable()
CElementPerspectivethis as dockable, if this is a dockable.asDockable in interface CElementPerspectivethis or nullpublic CStationPerspective asStation()
CElementPerspectivethis as station, if this is a station.asStation in interface CElementPerspectivethis or nullpublic String getFactoryID()
public PlaceholderMap getPlaceholders()
public void setPlaceholders(PlaceholderMap placeholders)
public boolean isWorkingArea()
CStationPerspectiveworking area.isWorkingArea in interface CStationPerspectiveCopyright © 2018. All rights reserved.