|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.AbstractDockableProperty
bibliothek.gui.dock.station.split.SplitDockProperty
public class SplitDockProperty
This property stores the location and the size of each child of a
SplitDockStation
. The property asumes that the station itself
has a size of 1/1, and the top left edge is 0/0.
Field Summary | |
---|---|
static SplitDockProperty |
EAST
A property covering the right quarter of the station |
static SplitDockProperty |
NORTH
A property covering the top quarter of the station |
static SplitDockProperty |
SOUTH
A property covering the bottom quarter of the station |
static SplitDockProperty |
WEST
A property covering the left quarter of the station |
Constructor Summary | |
---|---|
SplitDockProperty()
Constructs a new property with size and location equal to 0/0 |
|
SplitDockProperty(double x,
double y,
double width,
double height)
Creates a new property with the given values. |
Method Summary | |
---|---|
String |
getFactoryID()
Gest the unique name of the DockablePropertyFactory which
can create this type of DockableProperty. |
double |
getHeight()
Gets the height of the child. |
double |
getWidth()
Gets the width of the child. |
double |
getX()
Gets the x-coordinate of the child. |
double |
getY()
Gets the y-coordinate of the child. |
void |
load(DataInputStream in)
Reads the contents of this DockableProperty from a stream. |
void |
setHeight(double height)
Sets the height of the child. |
void |
setWidth(double width)
Sets the width of the child. |
void |
setX(double x)
Sets the x-coordinate of the child. |
void |
setY(double y)
Sets the y-coordinate of the child. |
void |
store(DataOutputStream out)
Stores the contents of this DockableProperty in a stream. |
String |
toString()
|
Methods inherited from class bibliothek.gui.dock.AbstractDockableProperty |
---|
getSuccessor, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SplitDockProperty EAST
public static final SplitDockProperty WEST
public static final SplitDockProperty NORTH
public static final SplitDockProperty SOUTH
Constructor Detail |
---|
public SplitDockProperty()
public SplitDockProperty(double x, double y, double width, double height)
SplitDockStation
can handle values that are out of bounds.
x
- the x-coordinatey
- the y-coordinatewidth
- the width of the childheight
- the height of the childMethod Detail |
---|
public String getFactoryID()
DockableProperty
DockablePropertyFactory
which
can create this type of DockableProperty.
DockablePropertyFactory
public void store(DataOutputStream out) throws IOException
DockableProperty
successor
(if there is one) must
not be saved.
out
- the stream to write in
IOException
- if anything unexpected happenspublic void load(DataInputStream in) throws IOException
DockableProperty
in
- the stream to read
IOException
- if anything unexpected happenspublic double getHeight()
setHeight(double)
public void setHeight(double height)
height
- the height, should be between 0 and 1public double getWidth()
setWidth(double)
public void setWidth(double width)
width
- the width, should be between 0 and 1public double getX()
setX(double)
public void setX(double x)
x
- the coordinate, should be between 0 and 1public double getY()
setY(double)
public void setY(double y)
y
- the coordinate, should be between 0 and 1public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |