public class UIResizableContainer
extends javax.swing.JPanel
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
UIResizableContainer(int direction) |
UIResizableContainer(javax.swing.JComponent upPane,
int direction) |
UIResizableContainer(javax.swing.JComponent upPane,
javax.swing.JComponent downPane,
int direction) |
限定符和类型 | 方法和说明 |
---|---|
void |
addParameterPane(javax.swing.JComponent pane) |
int |
getContainerWidth()
得到容器的宽度
|
javax.swing.JComponent |
getDownPane()
得到下子面板
|
javax.swing.JComponent |
getParameterPane()
得到参数面板
|
int |
getParameterPaneHeight()
获取参数面板高度
|
java.awt.Dimension |
getPreferredSize() |
int |
getToolPaneY()
得到上下子面板的高度
|
javax.swing.JComponent |
getUpPane()
得到上子面板
|
static void |
main(java.lang.String... args)
主函数
|
void |
refreshDownPane()
刷新下面板
|
void |
removeParameterPane() |
void |
replaceDownPane(javax.swing.JComponent pane)
替换下子面板
|
void |
replaceUpPane(javax.swing.JComponent pane)
替换上子面板
|
void |
setContainerWidth(int width)
设置面板宽度
|
void |
setDownPane(javax.swing.JComponent downPane) |
void |
setDownPaneVisible(boolean isVisible) |
void |
setLastContainerWidth(int containerWidth)
设置关闭设计器前最后一次面板的宽度
|
void |
setLastToolPaneY(int toolPaneY)
设置关闭设计器前最后一次上下子面板的高度
|
void |
setParameterHeight(int height)
设置参数面板高度
|
void |
setVerticalDragEnabled(boolean isEnabled)
设置是否允许拖拽
|
void |
setWindow2PreferWidth()
将面板设置成最佳的宽度
|
addAncestorListener, 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, getMaximumSize, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
public UIResizableContainer(int direction)
public UIResizableContainer(javax.swing.JComponent upPane, javax.swing.JComponent downPane, int direction)
public UIResizableContainer(javax.swing.JComponent upPane, int direction)
public void setVerticalDragEnabled(boolean isEnabled)
isEnabled
- public void setContainerWidth(int width)
width
- public void setDownPaneVisible(boolean isVisible)
public void setDownPane(javax.swing.JComponent downPane)
public void setWindow2PreferWidth()
public int getParameterPaneHeight()
public void setParameterHeight(int height)
height
- public int getToolPaneY()
public void setLastToolPaneY(int toolPaneY)
toolPaneY
- public int getContainerWidth()
public void setLastContainerWidth(int containerWidth)
containerWidth
- public java.awt.Dimension getPreferredSize()
getPreferredSize
在类中 javax.swing.JComponent
public void replaceUpPane(javax.swing.JComponent pane)
pane
- 面板public void replaceDownPane(javax.swing.JComponent pane)
pane
- 面板public void addParameterPane(javax.swing.JComponent pane)
public void removeParameterPane()
public javax.swing.JComponent getUpPane()
public javax.swing.JComponent getDownPane()
public javax.swing.JComponent getParameterPane()
public void refreshDownPane()
public static void main(java.lang.String... args)
args
- 参数