|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.graphics.SwingTool
public class SwingTool
Static helper methods used by the swing application.
| Field Summary | |
|---|---|
static Dimension |
DIALOG_SIZE
|
static Dimension |
FRAME_PREFERRED_SIZE
|
static Dimension |
FRAME_SIZE
|
| Constructor Summary | |
|---|---|
SwingTool()
|
|
| Method Summary | |
|---|---|
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.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Dimension DIALOG_SIZE
public static final Dimension FRAME_SIZE
public static final Dimension FRAME_PREFERRED_SIZE
| Constructor Detail |
|---|
public SwingTool()
| Method Detail |
|---|
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.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||