public class GridBagPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ANCHOR
By default, anchor to the left
|
static int |
DEFAULT_FILL
By default, fill horizontally, not vertically
|
static java.awt.Insets |
DEFAULT_INSETS
By default, 1 pixel of margin surrounding component
|
static int |
DEFAULT_PADDING_X
Default padding on X axis
|
static int |
DEFAULT_PADDING_Y
Default padding on Y axis
|
static double |
DEFAULT_WEIGHT_X
Default weight on X axis
|
static double |
DEFAULT_WEIGHT_Y
Default weight on Y axis
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
GridBagPanel()
Create a new GridBagPanel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.awt.Component component,
int row,
int col)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int anchor)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy,
int padx,
int pady)
Add a component to the Panel, constraining it with the given parameters.
|
void |
add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy,
int padx,
int pady,
java.awt.Insets insets)
Add a component to the Panel, constraining it with the given parameters.
|
java.awt.Dimension |
getMaximumSize()
Get the maximum size of the component.
|
java.awt.Dimension |
getPreferredSize()
Get the preferred size of the component.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String ID
public static final int DEFAULT_ANCHOR
public static final int DEFAULT_FILL
public static final double DEFAULT_WEIGHT_X
public static final double DEFAULT_WEIGHT_Y
public static final int DEFAULT_PADDING_X
public static final int DEFAULT_PADDING_Y
public static final java.awt.Insets DEFAULT_INSETS
public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMaximumSize()
getMaximumSize in class javax.swing.JComponentpublic void add(java.awt.Component component,
int row,
int col)
component - The componentrow - Row numbercol - Col numberpublic void add(java.awt.Component component,
int row,
int col,
int anchor)
component - The componentrow - Row numbercol - Col numberanchor - GridBagConstraints anchorpublic void add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan)
component - The componentrow - Row numbercol - Col numberrspan - Row spancspan - Col spanpublic void add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill)
component - The componentrow - Row numbercol - Col numberrspan - Row spancspan - Col spananchor - GridBagLayout anchorfill - GridBagLayout fillpublic void add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy)
component - The componentrow - Row numbercol - Col numberrspan - Row spancspan - Col spananchor - GridBagLayout anchorfill - GridBagLayout fillwx - Weight along X axiswy - Weight along Y axispublic void add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy,
int padx,
int pady)
component - The componentrow - Row numbercol - Col numberrspan - Row spancspan - Col spananchor - GridBagLayout anchorfill - GridBagLayout fillwx - Weight along X axiswy - Weight along Y axispadx - Padding on X axispady - Padding on Y axispublic void add(java.awt.Component component,
int row,
int col,
int rspan,
int cspan,
int anchor,
int fill,
double wx,
double wy,
int padx,
int pady,
java.awt.Insets insets)
component - The componentrow - Row numbercol - Col numberrspan - Row spancspan - Col spananchor - GridBagLayout anchorfill - GridBagLayout fillwx - Weight along X axiswy - Weight along Y axispadx - Padding on X axispady - Padding on Y axisinsets - MarginCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona