C - component typepublic interface SizeMethods<C extends java.awt.Component>
extends com.alee.utils.swing.SwingMethods
SwingMethods,
SizeUtils| Modifier and Type | Field and Description |
|---|---|
static int |
UNDEFINED
Undefined size value constant.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumHeight()
Returns component maximum height.
|
int |
getMaximumWidth()
Returns component maximum width.
|
int |
getMinimumHeight()
Returns component minimum height.
|
int |
getMinimumWidth()
Returns component minimum width.
|
int |
getPreferredHeight()
Returns component preferred height.
|
java.awt.Dimension |
getPreferredSize()
Returns component preferred size.
|
int |
getPreferredWidth()
Returns component preferred width.
|
C |
setMaximumHeight(int maximumHeight)
Sets component maximum height.
|
C |
setMaximumWidth(int maximumWidth)
Sets component maximum width.
|
C |
setMinimumHeight(int minimumHeight)
Sets component minimum height.
|
C |
setMinimumWidth(int minimumWidth)
Sets component minimum width.
|
C |
setPreferredHeight(int preferredHeight)
Sets component preferred height.
|
C |
setPreferredSize(int width,
int height)
Sets component preferred size.
|
C |
setPreferredWidth(int preferredWidth)
Sets component preferred width.
|
static final int UNDEFINED
int getPreferredWidth()
C setPreferredWidth(int preferredWidth)
UNDEFINED to let component choose preferred width on its own.preferredWidth - new component preferred widthint getPreferredHeight()
C setPreferredHeight(int preferredHeight)
UNDEFINED to let component choose preferred height on its own.preferredHeight - new component preferred heightint getMinimumWidth()
C setMinimumWidth(int minimumWidth)
UNDEFINED to let component choose minimum width on its own.minimumWidth - new component minimum widthint getMinimumHeight()
C setMinimumHeight(int minimumHeight)
UNDEFINED to let component choose minimum height on its own.minimumHeight - new component minimum heightint getMaximumWidth()
C setMaximumWidth(int maximumWidth)
UNDEFINED to let component choose maximum width on its own.maximumWidth - new component maximum widthint getMaximumHeight()
C setMaximumHeight(int maximumHeight)
UNDEFINED to let component choose maximum height on its own.maximumHeight - new component maximum heightjava.awt.Dimension getPreferredSize()
C setPreferredSize(int width, int height)
width - component preferred widthheight - component preferred height