de.unibi.techfak.jpredictor.gui
Class GuiTools
java.lang.Object
de.unibi.techfak.jpredictor.gui.GuiTools
public class GuiTools
- extends java.lang.Object
inits the look and feel for all windows
|
Field Summary |
static java.lang.String |
LOOKANDFEEL
Specify the look and feel to use. |
|
Method Summary |
static void |
drawGrid(javax.swing.JComponent comp,
java.awt.Graphics g,
int xGridSpace,
int yGridSpace)
Draws a grid within a JComponent using the graphics
settings. |
static void |
initLookAndFeel()
Inits the look and feel by analyzing the global String
LOOKANDFEEL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOOKANDFEEL
public static java.lang.String LOOKANDFEEL
- Specify the look and feel to use. Valid values are
null
(use the default), "Metal", "System", "Motif", "GTK+", "Windows"
GuiTools
public GuiTools()
initLookAndFeel
public static void initLookAndFeel()
- Inits the look and feel by analyzing the global String
LOOKANDFEEL.
drawGrid
public static void drawGrid(javax.swing.JComponent comp,
java.awt.Graphics g,
int xGridSpace,
int yGridSpace)
- Draws a grid within a
JComponent using the graphics
settings. Set xGridSpace to -1, if only horizontal
lines are to be drawn, and yGridSpace to -1 for only
vertical lines.
- Parameters:
comp - The component the grid is to be drawn inside.g - The graphics object used for drawing.xGridSpace - The space between two vertical lines.yGridSpace - The space between two horizontal lines.