public class SwingTool extends Object
| Modifier and Type | Field and Description |
|---|---|
static Dimension |
DIALOG_SIZE |
static Dimension |
FRAME_PREFERRED_SIZE |
static Dimension |
FRAME_SIZE |
| Constructor and Description |
|---|
SwingTool() |
| Modifier and Type | Method and Description |
|---|---|
static org.sigtec.graphix.widget.BasicDialog |
createDialog(String key,
org.sigtec.graphix.GuiBundle guiBundle)
Creates a new dialog with some default settings.
|
static GridBagConstraints |
createGridBagConstraint(int gridX,
int gridY)
Creates a new GridBagConstraints instance.
|
static GridBagConstraints |
createGridBagConstraint(int gridX,
int gridY,
int width,
int height) |
static GridBagConstraints |
createGridBagConstraint(int gridX,
int gridY,
int width,
int height,
int alignment)
Creates a new GridBagConstraints instance.
|
static org.sigtec.graphix.widget.BasicInternalFrame |
createInternalFrame(String key,
org.sigtec.graphix.GuiBundle guiBundle)
Creates a new internal frame with some default settings.
|
static JMenu |
createMenu(String name,
Action[] actions)
Creates a JMenu
|
static JMenuItem |
createMenuItem(Action action,
ImageIcon icon)
Creates a new menu item with the given action.
|
static JPopupMenu |
createPopupMenu(Action[] actions)
Creates a pop-up menu.
|
static ScrollableList |
createScrollableList(ListModel model,
int height,
int width)
Returns a scrollable list.
|
static void |
initFrame(org.sigtec.graphix.widget.BasicInternalFrame frame)
Initialises a frame..
|
public static final Dimension DIALOG_SIZE
public static final Dimension FRAME_SIZE
public static final Dimension FRAME_PREFERRED_SIZE
public static GridBagConstraints createGridBagConstraint(int gridX, int gridY, int width, int height, int alignment)
gridX - the x position.gridY - the y position.width - number of columns to span.height - number of rows to span.public static GridBagConstraints createGridBagConstraint(int gridX, int gridY, int width, int height)
public static GridBagConstraints createGridBagConstraint(int gridX, int gridY)
gridX - the x position.gridY - the y position.public static org.sigtec.graphix.widget.BasicDialog createDialog(String key, org.sigtec.graphix.GuiBundle guiBundle)
key - the key of the dialogue to be created.public static org.sigtec.graphix.widget.BasicInternalFrame createInternalFrame(String key, org.sigtec.graphix.GuiBundle guiBundle)
key - the key of the internal frame to be created.public static void initFrame(org.sigtec.graphix.widget.BasicInternalFrame frame)
frame - the frame to be initialised.public static JMenuItem createMenuItem(Action action, ImageIcon icon)
action - the action to be used.icon - the icon the icon to be used.public static JMenu createMenu(String name, Action[] actions)
name - the name of the menu.actions - an array of actions.public static JPopupMenu createPopupMenu(Action[] actions)
actions - an array of actions.public static ScrollableList createScrollableList(ListModel model, int height, int width)
model - the list model.height - the height of the component.width - the width of the component.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.