| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
AUTO_RESIZE_ALL_COMPONENTS
Proportionately resize all component when panel is resized
|
static int |
AUTO_RESIZE_LAST_COMPONENT
Auto resize last component only when panel is resized
|
static int |
AUTO_RESIZE_OFF
Do not auto resize column when panel is resized.
|
protected int |
autoResizeMode
This mode value determines if panel automatically resizes the
width or height.
|
protected int |
gap
The gap between components.
|
static int |
HORIZONTAL
Splits components in a horizontal orientation.
|
static int |
MIN_COMPONENT_SIZE
The minimum component size.
|
protected int |
orientation
The split orientation.
|
protected static int |
SPLIT_HIDDEN_THICKNESS
The thickness for the hidden split bar.
|
protected static int |
SPLIT_LINE_THICKNESS
The thickness for the split line.
|
static int |
VERTICAL
Splits components in a vertical orientation.
|
insets, PanelInsets, PanelLayoutfocusTraversable| コンストラクタと説明 |
|---|
SplitPanel(int orientation)
Creates a new split panel with the specified orientation.
|
SplitPanel(int orientation,
int gap)
Creates a new split panel with the specified orientation and gaps.
|
SplitPanel(int orientation,
int gap,
java.awt.Insets insets)
Creates a new split panel with the specified orientation and gaps.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
Adds the specified component to this container.
|
int |
getAutoResizeMode()
Returns the auto resize mode of the panel.
|
int |
getGap()
Returns the gap between components.
|
java.awt.Graphics |
getGraphicsForSplit()
Returns the graphics object for split.
|
int |
getOrientation()
Returns the split orientation of this panel.
|
java.awt.Dimension |
getSizeForSplit()
Returns the size for split.
|
int[] |
getSplitSizes()
Returns the split sizes.
|
void |
layoutChanged()
Informs that the layout is changed.
|
void |
remove(int index)
Removes the component, specified by
index,
from this container. |
void |
setAutoResizeMode(int mode)
Sets the the auto resize mode of the panel.
|
void |
setGap(int gap)
Sets the gap between components.
|
void |
setLayout(java.awt.LayoutManager mgr)
Sets the layout manager for this container.
|
void |
setOrientation(int orientation)
Sets the split orientation of this panel.
|
void |
splitValueChanged(int[] newSizes)
Informs that the split value is changed.
|
addNotify, bounds, disable, doLayout, enable, enable, getBounds, getFrame, getLocation, getMinimumSize, getPreferredSize, getSize, hide, insets, isDirectNotification, isFocusTraversable, layout, location, minimumSize, postOldEvent, preferredSize, repaintNow, requestFocus, reshape, setBounds, setEnabled, setFocusTraversable, setVisible, show, show, size, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, list, list, locate, paint, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected int orientation
protected int gap
protected int autoResizeMode
public static final int VERTICAL
public static final int HORIZONTAL
public static final int AUTO_RESIZE_OFF
public static final int AUTO_RESIZE_LAST_COMPONENT
public static final int AUTO_RESIZE_ALL_COMPONENTS
public static final int MIN_COMPONENT_SIZE
protected static final int SPLIT_HIDDEN_THICKNESS
protected static final int SPLIT_LINE_THICKNESS
public SplitPanel(int orientation)
orientation - the split orientation.public SplitPanel(int orientation,
int gap)
orientation - the split orientation.gap - the gap between components.public SplitPanel(int orientation,
int gap,
java.awt.Insets insets)
orientation - the split orientation.gap - the gap between components.insets - the insets of the panel.public int getOrientation()
public void setOrientation(int orientation)
orientation - the split orientation.public int getGap()
public void setGap(int gap)
gap - the gap between componentspublic int getAutoResizeMode()
public void setAutoResizeMode(int mode)
mode - the auto resize mode.AUTO_RESIZE_OFF,
AUTO_RESIZE_LAST_COMPONENT,
AUTO_RESIZE_ALL_COMPONENTSpublic int[] getSplitSizes()
public void setLayout(java.awt.LayoutManager mgr)
setLayout クラス内 java.awt.Containermgr - the specified layout manager.public java.awt.Graphics getGraphicsForSplit()
public java.awt.Dimension getSizeForSplit()
public void splitValueChanged(int[] newSizes)
public void layoutChanged()
protected void addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
addImpl クラス内 java.awt.Containercomp - the component to be added.constraints - not applicable.index - the position of child component.public void remove(int index)
index,
from this container.remove クラス内 java.awt.Containerindex - the index of the component to be removed.