|
||||||||||
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.split.SplitDockProperty
public class SplitDockProperty
This property stores the location and the size of each child of a
SplitDockStation
. The property assumes 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 | |
---|---|
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. |
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. |
int |
hashCode()
|
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 |
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(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 |
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 DockableProperty copy()
DockableProperty
successor
must be
copied as well.
this
public java.lang.String getFactoryID()
DockableProperty
DockablePropertyFactory
which
can create this type of DockableProperty.
DockablePropertyFactory
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 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 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 |