|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.stack.tab.layouting.Size
public class Size
A Size is used by a LayoutBlock to describe the layout
that fits to some size.
| Nested Class Summary | |
|---|---|
static class |
Size.Type
What type of size a Size describes. |
| Constructor Summary | |
|---|---|
Size(Size.Type type,
java.awt.Dimension size)
Creates a new size |
|
Size(Size.Type type,
int width,
int height)
Creates a new size. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Gets the vertical amount of pixels. |
Size.Type |
getType()
Gets the type of this size. |
int |
getWidth()
Gets the horizontal amount of pixels. |
boolean |
isMinimum()
Tells whether this Size describes the minimum size
some component requires. |
boolean |
isPreferred()
Tells whether this Size describes the preferred size
some component requires. |
java.awt.Dimension |
toDimension()
Returns this size as Dimension. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Size(Size.Type type,
int width,
int height)
type - what kind of size this describeswidth - horizontal amount of pixelsheight - vertical amount of pixels
public Size(Size.Type type,
java.awt.Dimension size)
type - what kind of size this describessize - the amount of pixels| Method Detail |
|---|
public boolean isMinimum()
Size describes the minimum size
some component requires.
true if this is a minimum sizepublic boolean isPreferred()
Size describes the preferred size
some component requires.
true if this is a preferred sizepublic Size.Type getType()
nullpublic int getWidth()
public int getHeight()
public java.awt.Dimension toDimension()
Dimension.
Dimensionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||