|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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(Object obj)
|
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(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(DataOutputStream out)
Stores the contents of this DockableProperty in a stream. |
void |
store(XElement element)
Stores the contents of this property as xml element. |
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 child| Method Detail |
|---|
public DockableProperty copy()
DockablePropertysuccessor must be
copied as well.
thispublic String getFactoryID()
DockablePropertyDockablePropertyFactory which
can create this type of DockableProperty.
DockablePropertyFactory
public void store(DataOutputStream out)
throws IOException
DockablePropertysuccessor (if there is one) must
not be saved.
out - the stream to write in
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 changed
public void load(DataInputStream in)
throws IOException
DockableProperty
in - the stream to read
IOException - if anything unexpected happenspublic void load(XElement element)
DockablePropertyDockableProperty 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 String toString()
toString in class Objectpublic int hashCode()
hashCode in class AbstractDockablePropertypublic boolean equals(Object obj)
equals in class AbstractDockableProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||