public class UIUtils extends Object
Constructor and Description |
---|
UIUtils() |
Modifier and Type | Method and Description |
---|---|
static Color |
mix(Color c1,
Color c2,
double c1Weight)
Mix colors
c1 and c2 by ratios c1Weight and (1-c1Weight) , respectively. |
static void |
setMinimumHeight(Component component,
int minimumHeight)
Set the minimum height of a component (leaving the minimum width untouched).
|
static void |
setMinimumWidth(Component component,
int minimumWidth)
Set the minimum width of a component (leaving the minimum height untouched).
|
static void |
setPreferredHeight(Component component,
int preferredHeight)
Set the preferred height of a component (leaving the preferred width untouched).
|
static void |
setPreferredWidth(Component component,
int preferredWidth)
Set the preferred width of a component (leaving the preferred height untouched).
|
public static Color mix(Color c1, Color c2, double c1Weight)
c1
and c2
by ratios c1Weight
and (1-c1Weight)
, respectively.public static void setPreferredWidth(Component component, int preferredWidth)
public static void setPreferredHeight(Component component, int preferredHeight)
public static void setMinimumWidth(Component component, int minimumWidth)
public static void setMinimumHeight(Component component, int minimumHeight)
Copyright © 2015–2021 Fiji. All rights reserved.