All Packages Class Hierarchy This Package Previous Next Index
Class figPac.fUtil
java.lang.Object
|
+----figPac.fUtil
- public final class fUtil
- extends Object
-
anchor
-
-
fill
-
-
gridheight
-
-
gridwidth
-
-
insets
-
-
ipadx
-
-
ipady
-
-
weightx
-
-
weighty
-
-
fUtil()
-
-
constrain(Container, Component, GridBagConstraints)
- Mounts a component in a container using user supplied GridBagConstraints.
-
constrain(Container, Component, int, int)
- Mounts a component in a container using GridBagConstraints default values.
-
constrain(Container, Component, int, int, GridBagConstraints)
- Mounts a component in a container using user supplied GridBagConstraints.
-
defaultConstraint(int, int)
- Returns a GridBagConstraints with the default settings.
-
deleteWhiteSpace(String)
- Deletes all white space from the input string.
-
format(double, int, int)
- Formats a double.
-
reset()
- Resets the GridBagConstraints default settings to the original ones.
-
snap(double, int)
- Rounds a double to a specified precision.
gridwidth
public static int gridwidth
gridheight
public static int gridheight
fill
public static int fill
anchor
public static int anchor
ipadx
public static int ipadx
ipady
public static int ipady
weightx
public static double weightx
weighty
public static double weighty
insets
public static Insets insets
fUtil
public fUtil()
format
public static String format(double a,
int width,
int precision)
- Formats a double.
- Parameters:
- a - The double to be formatted.
- width - The minimum length of the formatted string.
- precision - The number of digits to follow the decimal point.
- Returns:
- A string giving the formatted representation of a.
snap
public static double snap(double in,
int precision)
- Rounds a double to a specified precision.
reset
public static void reset()
- Resets the GridBagConstraints default settings to the original ones.
constrain
public static void constrain(Container container,
Component component,
int grid_x,
int grid_y)
- Mounts a component in a container using GridBagConstraints default values.
- Parameters:
- container - The container.
- component - The component.
- grid_x - The horizontal position of the component in the grid.
- grid_y - The vertical position of the component in the grid.
constrain
public static void constrain(Container container,
Component component,
int grid_x,
int grid_y,
GridBagConstraints c)
- Mounts a component in a container using user supplied GridBagConstraints.
- Parameters:
- container - The container.
- component - The component.
- grid_x - The horizontal position of the component in the grid.
- grid_y - The vertical position of the component in the grid.
- c - The GridBagConstraints.
constrain
public static void constrain(Container container,
Component component,
GridBagConstraints c)
- Mounts a component in a container using user supplied GridBagConstraints.
- Parameters:
- container - The container.
- component - The component.
- c - The GridBagConstraints.
defaultConstraint
public static GridBagConstraints defaultConstraint(int grid_x,
int grid_y)
- Returns a GridBagConstraints with the default settings.
deleteWhiteSpace
public static String deleteWhiteSpace(String in)
- Deletes all white space from the input string.
All Packages Class Hierarchy This Package Previous Next Index