|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yasl.layout.YASLLayoutUtils
Collects static util methods for manipulating Layouts.
| Method Summary | |
static Dimension |
determineMaxSize(JComponent[] items)
Checks the preferred size for each item and returns a Dimension holding the largest width and height encountered. |
static void |
normalizeComponents(JComponent[] components)
Takes an array of JComponents and adjusts the preferred size such that all components are the same size, ie all components are the same size as the largest component. |
static void |
normalizeComponentsHeight(JComponent[] components)
Takes an array of JComponents and adjusts the preferred height such that all components have the same height, ie all components have the same height as the largest component. |
static void |
normalizeComponentsWidth(JComponent[] components)
Takes an array of JComponents and adjusts the preferred width such that all components have the same width, ie all components have the same width as the largest component. |
static void |
setMaximumHeight(int height,
JComponent[] items)
|
static void |
setMaximumSize(Dimension maxDim,
JComponent[] items)
|
static void |
setMaximumWidth(int width,
JComponent[] items)
|
static void |
setPreferredHeight(int height,
JComponent[] items)
|
static void |
setPreferredSize(Dimension prefDim,
JComponent[] items)
|
static void |
setPreferredWidth(int width,
JComponent[] items)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void normalizeComponents(JComponent[] components)
This is particularly useful for normalizing a row or column of buttons.
components - JComponent[]public static void normalizeComponentsWidth(JComponent[] components)
components - JComponent[]public static void normalizeComponentsHeight(JComponent[] components)
components - JComponent[]public static Dimension determineMaxSize(JComponent[] items)
items - JComponent[]
public static void setPreferredSize(Dimension prefDim,
JComponent[] items)
public static void setMaximumSize(Dimension maxDim,
JComponent[] items)
public static void setPreferredHeight(int height,
JComponent[] items)
public static void setMaximumHeight(int height,
JComponent[] items)
public static void setPreferredWidth(int width,
JComponent[] items)
public static void setMaximumWidth(int width,
JComponent[] items)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||