|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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,
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. |
Dimension |
toDimension()
Returns this size as Dimension . |
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 pixelspublic Size(Size.Type type, Dimension size)
type
- what kind of size this describessize
- the amount of pixelsMethod 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()
null
public int getWidth()
public int getHeight()
public Dimension toDimension()
Dimension
.
Dimension
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |