public class UiUtil
extends java.lang.Object
User interface utilities and constants.
| Modifier and Type | Field and Description |
|---|---|
static int |
DLG_HGAP
Horizontal gap between content and dialog border.
|
static int |
DLG_VGAP
Vertical gap between content and dialog border.
|
static int |
HGAP
Horizontal gap between components/controls.
|
static java.lang.String |
LABEL_COLON
Text that follows a label.
|
static java.lang.Object |
TEXT_ANTIALIAS_HINT
Best looking anti-aliasing setting for text from experimental results on several systems.
|
static int |
VGAP
Vertical gap between components/controls.
|
| Constructor and Description |
|---|
UiUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addLabelSuffix(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String label)
Add a colon prompt after a text label if it does not have a colon.
|
static java.lang.String |
getLabelText(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String key)
Get a label from resources, and if it does not have a colon, add it.
|
static java.awt.Point |
moveOnScreen(java.awt.Point point,
java.awt.Rectangle rectangle)
Move the point in screen coordinates so the specified rectangle fits on screen.
|
static void |
runOnUIThread(java.lang.Runnable runnable)
Runs the specified code on the Event Dispatch thread (the UI thread).
|
public static final int HGAP
public static final int VGAP
public static final int DLG_HGAP
public static final int DLG_VGAP
public static final java.lang.String LABEL_COLON
public static java.lang.Object TEXT_ANTIALIAS_HINT
public static void runOnUIThread(java.lang.Runnable runnable)
runnable - Code to run on the UI thread.public static java.awt.Point moveOnScreen(java.awt.Point point,
java.awt.Rectangle rectangle)
point - The point in screen coordinates.rectangle - The rectangle to fit.public static java.lang.String getLabelText(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String key)
resources - Resource provider.key - String key to look up in the resourcespublic static java.lang.String addLabelSuffix(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String label)
resources - Resource provider.label - String to add the colon to.