|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ptc.wgmecad.GriddedPanel
A simple helper class that provides various easy to understand methods that lays out the components using the GridBagLayout.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private static int |
C_BOTH
|
private static int |
C_HEIGHT
|
private static int |
C_HORZ
|
private static int |
C_NONE
|
private static int |
C_WEST
|
private static int |
C_WIDTH
|
private GridBagConstraints |
constraints
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GriddedPanel()
Creates a grid bag layout panel using a default insets constraints. |
|
GriddedPanel(Insets insets)
Creates a grid bag layout panel using the specified insets constraints. |
Method Summary | |
void |
addAnchoredComponent(JComponent component,
int row,
int col,
int anchor)
Adds the component to the specified row and col that anchors at the specified position. |
void |
addAnchoredComponent(JComponent component,
int row,
int col,
int width,
int height,
int anchor)
Adds the component to the specified row and col that spans across a specified number of columns and rows that anchors at the specified position. |
void |
addAnchoredFilledComponent(JComponent component,
int row,
int col,
int anchor,
int fill)
Adds the component to the specified row and col with the specified filling direction. |
void |
addComponent(JComponent component,
int row,
int col)
Adds the component to the specified row and col. |
void |
addComponent(JComponent component,
int row,
int col,
int width,
int height)
Adds the component to the specified row and col that spans across a specified number of columns and rows. |
void |
addComponent(JComponent component,
int row,
int col,
int width,
int height,
int anchor,
int fill)
Adds the component to the specified row and col that spans across a specified number of columns and rows with the specified filling direction and an anchoring position. |
void |
addFilledComponent(JComponent component,
int row,
int col)
Adds the component to the specified row and col filling the column horizontally. |
void |
addFilledComponent(JComponent component,
int row,
int col,
int fill)
Adds the component to the specified row and col with the specified filling direction. |
void |
addFilledComponent(JComponent component,
int row,
int col,
int width,
int height,
int fill)
Adds the component to the specified row and col that spans across a specified number of columns and rows with the specified filling direction. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private GridBagConstraints constraints
private static final int C_HORZ
private static final int C_BOTH
private static final int C_NONE
private static final int C_WEST
private static final int C_WIDTH
private static final int C_HEIGHT
Constructor Detail |
public GriddedPanel()
public GriddedPanel(Insets insets)
Method Detail |
public void addComponent(JComponent component, int row, int col)
public void addComponent(JComponent component, int row, int col, int width, int height)
public void addAnchoredComponent(JComponent component, int row, int col, int anchor)
public void addAnchoredComponent(JComponent component, int row, int col, int width, int height, int anchor)
public void addAnchoredFilledComponent(JComponent component, int row, int col, int anchor, int fill)
public void addFilledComponent(JComponent component, int row, int col)
public void addFilledComponent(JComponent component, int row, int col, int fill)
public void addFilledComponent(JComponent component, int row, int col, int width, int height, int fill)
public void addComponent(JComponent component, int row, int col, int width, int height, int anchor, int fill)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |