|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.utils.SizeUtils
public final class SizeUtils
This class provides a set of utilities to modify component sizes.
Constructor Summary | |
---|---|
SizeUtils()
|
Method Summary | ||
---|---|---|
static
|
getMinimumHeight(C component)
Returns component minimum height. |
|
static
|
getMinimumWidth(C component)
Returns component minimum width. |
|
static
|
getPreferredHeight(C component)
Returns component preferred height. |
|
static
|
getPreferredSize(C component,
java.awt.Dimension actualPreferredSize)
Returns component preferred size. |
|
static
|
getPreferredWidth(C component)
Returns component preferred width. |
|
static
|
setMinimumHeight(C component,
int minimumHeight)
Sets component minimum height. |
|
static
|
setMinimumWidth(C component,
int minimumWidth)
Sets component minimum width. |
|
static
|
setPreferredHeight(C component,
int preferredHeight)
Sets component preferred height. |
|
static
|
setPreferredWidth(C component,
int preferredWidth)
Sets component preferred width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SizeUtils()
Method Detail |
---|
public static <C extends java.awt.Component> int getPreferredWidth(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setPreferredWidth(C component, int preferredWidth)
C
- component typecomponent
- component to processpreferredWidth
- new component preferred width
public static <C extends java.awt.Component> int getPreferredHeight(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setPreferredHeight(C component, int preferredHeight)
C
- component typecomponent
- component to processpreferredHeight
- new component preferred height
public static <C extends java.awt.Component> int getMinimumWidth(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setMinimumWidth(C component, int minimumWidth)
C
- component typecomponent
- component to processminimumWidth
- new component minimum width
public static <C extends java.awt.Component> int getMinimumHeight(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setMinimumHeight(C component, int minimumHeight)
C
- component typecomponent
- component to processminimumHeight
- new component minimum height
public static <C extends java.awt.Component> java.awt.Dimension getPreferredSize(C component, java.awt.Dimension actualPreferredSize)
C
- component typecomponent
- component to processactualPreferredSize
- actual component preferred size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |