All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fUtil

java.lang.Object
   |
   +----figPac.fUtil

public final class fUtil
extends Object

Variable Index

 o anchor
 o fill
 o gridheight
 o gridwidth
 o insets
 o ipadx
 o ipady
 o weightx
 o weighty

Constructor Index

 o fUtil()

Method Index

 o constrain(Container, Component, GridBagConstraints)
Mounts a component in a container using user supplied GridBagConstraints.
 o constrain(Container, Component, int, int)
Mounts a component in a container using GridBagConstraints default values.
 o constrain(Container, Component, int, int, GridBagConstraints)
Mounts a component in a container using user supplied GridBagConstraints.
 o defaultConstraint(int, int)
Returns a GridBagConstraints with the default settings.
 o deleteWhiteSpace(String)
Deletes all white space from the input string.
 o format(double, int, int)
Formats a double.
 o reset()
Resets the GridBagConstraints default settings to the original ones.
 o snap(double, int)
Rounds a double to a specified precision.

Variables

 o gridwidth
 public static int gridwidth
 o gridheight
 public static int gridheight
 o fill
 public static int fill
 o anchor
 public static int anchor
 o ipadx
 public static int ipadx
 o ipady
 public static int ipady
 o weightx
 public static double weightx
 o weighty
 public static double weighty
 o insets
 public static Insets insets

Constructors

 o fUtil
 public fUtil()

Methods

 o 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.
 o snap
 public static double snap(double in,
                           int precision)
Rounds a double to a specified precision.

 o reset
 public static void reset()
Resets the GridBagConstraints default settings to the original ones.

 o 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.
 o 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.
 o 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.
 o defaultConstraint
 public static GridBagConstraints defaultConstraint(int grid_x,
                                                    int grid_y)
Returns a GridBagConstraints with the default settings.

 o deleteWhiteSpace
 public static String deleteWhiteSpace(String in)
Deletes all white space from the input string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index