|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alee.utils.SizeUtils
public final class SizeUtils
This class provides a set of utilities to modify component sizes.
Constructor Summary | |
---|---|
SizeUtils()
|
Method Summary | ||
---|---|---|
static
|
getMaximumHeight(C component)
Returns component maximum height. |
|
static
|
getMaximumWidth(C component)
Returns component maximum width. |
|
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
|
setMaximumHeight(C component,
int maximumHeight)
Sets component maximum height. |
|
static
|
setMaximumWidth(C component,
int maximumWidth)
Sets component maximum 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
|
setPreferredSize(C component,
int width,
int height)
Sets component preferred size. |
|
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> int getMaximumWidth(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setMaximumWidth(C component, int maximumWidth)
C
- component typecomponent
- component to processmaximumWidth
- new component maximum width
public static <C extends java.awt.Component> int getMaximumHeight(C component)
C
- component typecomponent
- component to process
public static <C extends java.awt.Component> C setMaximumHeight(C component, int maximumHeight)
C
- component typecomponent
- component to processmaximumHeight
- new component maximum 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
public static <C extends java.awt.Component> C setPreferredSize(C component, int width, int height)
component
- component to processwidth
- component preferred widthheight
- component preferred height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |