public class GUIUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.DecimalFormat |
df2 |
static java.awt.Color |
event |
static java.awt.Color |
eventConflict |
static java.awt.Color |
eventDetailsBackground |
static java.awt.Color |
eventDetailsColor |
static java.awt.Color |
eventFulfilled |
static java.awt.Color |
eventStrange |
static java.awt.Color |
eventViolated |
static java.awt.Color |
panelBackground |
static java.awt.Color |
panelTextColor |
static java.awt.Color |
panelTextTitleColor |
static java.awt.Color |
panelTitleColor |
static java.awt.Color |
resolutionEvent |
static java.awt.Color |
resolutionEventFulfilled |
static java.awt.Color |
resolutionEventViolated |
static java.awt.Color |
tabBackground |
static java.awt.Color |
tabForeground |
static java.awt.Color |
tabTitle |
Constructor and Description |
---|
GUIUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addToGridBagLayout(int x,
int y,
javax.swing.JComponent container,
java.awt.Component component) |
static void |
addToGridBagLayout(int x,
int y,
javax.swing.JComponent container,
java.awt.Component component,
double weightx,
double weighty) |
static void |
addToGridBagLayout(int x,
int y,
javax.swing.JComponent container,
java.awt.Component component,
java.awt.GridBagConstraints constraint) |
static javax.swing.JLabel |
prepareLabel(double i,
java.text.DecimalFormat df)
This method creates a new
JLabel correctly formatted |
static javax.swing.JLabel |
prepareLabel(int i)
This method creates a new
JLabel correctly formatted |
static javax.swing.JLabel |
prepareLabel(int i,
int alignment,
java.awt.Color foreground)
This method creates a new
JLabel correctly formatted |
static javax.swing.JLabel |
prepareLabel(java.lang.String s)
This method creates a new
JLabel correctly formatted |
static javax.swing.JLabel |
prepareLabel(java.lang.String s,
int alignment,
java.awt.Color foreground)
This method creates a new
JLabel correctly formatted |
static javax.swing.JLabel |
prepareTitle(java.lang.String s)
This method creates a new
JLabel correctly formatted in order to
be a frame title |
static javax.swing.JComponent |
prepareTitleBordered(java.lang.String s) |
static javax.swing.JLabel |
prepareTitleLabel(java.lang.String s)
This method creates a new
JLabel correctly formatted as a title |
static javax.swing.JLabel |
prepareVericalTitleLabel(java.lang.String s)
This method creates a new
JLabel correctly formatted as a title |
public static java.awt.Color tabBackground
public static java.awt.Color tabForeground
public static java.awt.Color tabTitle
public static java.awt.Color panelBackground
public static java.awt.Color panelTitleColor
public static java.awt.Color panelTextColor
public static java.awt.Color panelTextTitleColor
public static java.awt.Color event
public static java.awt.Color eventViolated
public static java.awt.Color eventFulfilled
public static java.awt.Color eventStrange
public static java.awt.Color eventConflict
public static java.awt.Color resolutionEvent
public static java.awt.Color resolutionEventViolated
public static java.awt.Color resolutionEventFulfilled
public static java.awt.Color eventDetailsBackground
public static java.awt.Color eventDetailsColor
public static java.text.DecimalFormat df2
public static javax.swing.JLabel prepareTitle(java.lang.String s)
JLabel
correctly formatted in order to
be a frame titles
- the string to be inserted into the labelpublic static javax.swing.JComponent prepareTitleBordered(java.lang.String s)
public static javax.swing.JLabel prepareLabel(java.lang.String s)
JLabel
correctly formatteds
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareLabel(java.lang.String s, int alignment, java.awt.Color foreground)
JLabel
correctly formatteds
- the string to be inserted into the labelalignment
- the alignmentforeground
- the foreground colorpublic static javax.swing.JLabel prepareLabel(int i)
JLabel
correctly formattedi
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareLabel(double i, java.text.DecimalFormat df)
JLabel
correctly formattedi
- the string to be inserted into the labeldf
- the decimal format to usepublic static javax.swing.JLabel prepareLabel(int i, int alignment, java.awt.Color foreground)
JLabel
correctly formattedi
- the string to be inserted into the labelalignment
- the alignmentforeground
- the foreground colorpublic static javax.swing.JLabel prepareTitleLabel(java.lang.String s)
JLabel
correctly formatted as a titles
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareVericalTitleLabel(java.lang.String s)
JLabel
correctly formatted as a titles
- the string to be inserted into the labelpublic static void addToGridBagLayout(int x, int y, javax.swing.JComponent container, java.awt.Component component)
x
- y
- container
- component
- public static void addToGridBagLayout(int x, int y, javax.swing.JComponent container, java.awt.Component component, java.awt.GridBagConstraints constraint)
x
- y
- container
- component
- constraint
- public static void addToGridBagLayout(int x, int y, javax.swing.JComponent container, java.awt.Component component, double weightx, double weighty)
x
- y
- container
- component
- weightx
- weighty
-