com.levigo.jadice.swing.util
Class UI

java.lang.Object
  extended by com.levigo.jadice.swing.util.UI

public class UI
extends Object

This is a collection of UI-related static utility methods and constants.


Method Summary
static Border createDefaultDialogBorder(Container parent, JComponent content)
          Create a border used to separate the dialog content from the frame.
static Component createRelatedHorizontalGap(Container parent, JComponent left, JComponent right)
          Create a horizontal strut used to separate two related components.
static Component createRelatedVerticalGap(Container parent, JComponent top, JComponent bottom)
          Create a vertical strut used to separate two related components.
static Component createUnrelatedHorizontalGap(Container parent, JComponent left, JComponent right)
          Create a horizontal strut used to separate two unrelated components.
static Component createUnrelatedVerticalGap(Container parent, JComponent top, JComponent bottom)
          Create a vertical strut used to separate two unrelated components.
static Insets getDialogInsets()
          Return the default insets for dialogs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDialogInsets

public static Insets getDialogInsets()
Return the default insets for dialogs.

Returns:
a (cloned) Insets instance

createRelatedHorizontalGap

public static Component createRelatedHorizontalGap(Container parent,
                                                   JComponent left,
                                                   JComponent right)
Create a horizontal strut used to separate two related components.

Parameters:
parent - the parent container
left -
right -
Returns:
a strut

createRelatedVerticalGap

public static Component createRelatedVerticalGap(Container parent,
                                                 JComponent top,
                                                 JComponent bottom)
Create a vertical strut used to separate two related components.

Parameters:
parent - the parent container
top -
bottom -
Returns:
a strut

createUnrelatedVerticalGap

public static Component createUnrelatedVerticalGap(Container parent,
                                                   JComponent top,
                                                   JComponent bottom)
Create a vertical strut used to separate two unrelated components.

Parameters:
parent - the parent container
top -
bottom -
Returns:
a strut

createUnrelatedHorizontalGap

public static Component createUnrelatedHorizontalGap(Container parent,
                                                     JComponent left,
                                                     JComponent right)
Create a horizontal strut used to separate two unrelated components.

Parameters:
parent - the parent container
left -
right -
Returns:
a strut

createDefaultDialogBorder

public static Border createDefaultDialogBorder(Container parent,
                                               JComponent content)
Create a border used to separate the dialog content from the frame.

Returns:
a border


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.