|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.layout.AbstractDockableProperty bibliothek.gui.dock.station.screen.ScreenDockProperty
public class ScreenDockProperty
This property is used on ScreenDockStations
to determine the bounds of the dialogs
.
Constructor Summary | |
---|---|
ScreenDockProperty()
Constructs a new property |
|
ScreenDockProperty(int x,
int y,
int width,
int height)
Constructs a new property |
|
ScreenDockProperty(int x,
int y,
int width,
int height,
Path placeholder)
Constructs a new property |
|
ScreenDockProperty(int x,
int y,
int width,
int height,
Path placeholder,
boolean fullscreen)
Constructs a new property |
Method Summary | |
---|---|
DockableProperty |
copy()
Gets a copy of this property, the successor must be
copied as well. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFactoryID()
Gets the unique name of the DockablePropertyFactory which
can create this type of DockableProperty. |
int |
getHeight()
Gets the height of the dialog. |
Path |
getPlaceholder()
Gets the name of this location. |
int |
getWidth()
Gets the width of the dialog. |
int |
getX()
Gets the x-coordinate of the dialog. |
int |
getY()
Gets the y-coordinate of the dialog |
int |
hashCode()
|
boolean |
isFullscreen()
Tells whether this location describes an element that is in fullscreen mode. |
void |
load(java.io.DataInputStream in)
Reads the contents of this DockableProperty from a stream. |
void |
load(XElement element)
Reads the contents of this DockableProperty from an
xml element. |
void |
setFullscreen(boolean fullscreen)
Sets the fullscreen mode |
void |
setHeight(int height)
Sets the height of the dialog. |
void |
setPlaceholder(Path placeholder)
Sets the name of this location. |
void |
setWidth(int width)
Sets the width of the dialog. |
void |
setX(int x)
Sets the location of the left size of the dialog. |
void |
setY(int y)
Sets the location of the top side of the dialog. |
void |
store(java.io.DataOutputStream out)
Stores the contents of this DockableProperty in a stream. |
void |
store(XElement element)
Stores the contents of this property as xml element. |
java.lang.String |
toString()
|
Methods inherited from class bibliothek.gui.dock.layout.AbstractDockableProperty |
---|
copy, equalsNoSuccessor, getSuccessor, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScreenDockProperty()
public ScreenDockProperty(int x, int y, int width, int height)
x
- the x-coordinate of the dialogy
- the y-coordinate of the dialogwidth
- the width of the dialogheight
- the height of the dialogpublic ScreenDockProperty(int x, int y, int width, int height, Path placeholder)
x
- the x-coordinate of the dialogy
- the y-coordinate of the dialogwidth
- the width of the dialogheight
- the height of the dialogplaceholder
- the name of this location, can be null
public ScreenDockProperty(int x, int y, int width, int height, Path placeholder, boolean fullscreen)
x
- the x-coordinate of the dialogy
- the y-coordinate of the dialogwidth
- the width of the dialogheight
- the height of the dialogplaceholder
- the name of this property, can be null
fullscreen
- if set, then the window should actually be in fullscreen modeMethod Detail |
---|
public java.lang.String getFactoryID()
DockableProperty
DockablePropertyFactory
which
can create this type of DockableProperty.
DockablePropertyFactory
public DockableProperty copy()
DockableProperty
successor
must be
copied as well.
this
public void store(java.io.DataOutputStream out) throws java.io.IOException
DockableProperty
successor
(if there is one) must
not be saved.
out
- the stream to write in
java.io.IOException
- if anything unexpected happenspublic void store(XElement element)
DockableProperty
element
- the element into which to write, the attributes of
this element should not be changedpublic void load(java.io.DataInputStream in) throws java.io.IOException
DockableProperty
in
- the stream to read
java.io.IOException
- if anything unexpected happenspublic void load(XElement element)
DockableProperty
DockableProperty
from an
xml element.
element
- the element that was written earlier by this propertypublic int getHeight()
setHeight(int)
public void setHeight(int height)
height
- the heightpublic int getWidth()
setWidth(int)
public void setWidth(int width)
width
- the new widthpublic int getX()
setX(int)
public void setX(int x)
x
- the x-coordinatepublic int getY()
setY(int)
public void setY(int y)
y
- the y-coordinatepublic boolean isFullscreen()
public void setFullscreen(boolean fullscreen)
fullscreen
- the new statepublic void setPlaceholder(Path placeholder)
placeholder
- the name, can be null
public Path getPlaceholder()
null
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class AbstractDockableProperty
public boolean equals(java.lang.Object obj)
equals
in class AbstractDockableProperty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |