java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
com.imagero.gui.awt.MultiSplitPane
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, SplitConstants
- public class MultiSplitPane
- extends java.awt.Panel
- implements SplitConstants
MultiSplitPane
Like JMultiSplitPane, but for AWT.
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Panel |
|
| Fields inherited from class java.awt.Container |
|
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, 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, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
root
MultiSplitPane.Node root
dividerWidth
int dividerWidth
resizeWeight
float resizeWeight
ht
java.util.HashMap ht
drag
MultiSplitPane.Divider drag
continuousLayout
boolean continuousLayout
independentMode
boolean independentMode
selectedNode
MultiSplitPane.Node selectedNode
hashBag
com.imagero.util.HashBag hashBag
nodeCount
private int nodeCount
MultiSplitPane
public MultiSplitPane()
resize
private void resize()
getComponentAt
public java.awt.Component getComponentAt(int x,
int y)
- Description copied from class:
java.awt.Container
- Returns the component located at the specified point. This is done
by checking whether or not a child component claims to contain this
point. The first child component that does is returned. If no
child component claims the point, the container itself is returned,
unless the point does not exist within this container, in which
case
null is returned.
When components overlap, the first component is returned. The component
that is closest to (x, y), containing that location, is returned.
Heavyweight components take precedence of lightweight components.
This function does not ignore invisible components. If there is an invisible
component at (x,y), it will be returned.
renumber
private void renumber()
addToHashBag
private void addToHashBag(boolean includeRoot)
isIndependentMode
public boolean isIndependentMode()
setIndependentMode
public void setIndependentMode(boolean independentMode)
split
protected void split(java.awt.Component child,
java.awt.Component add,
int orientation,
int align)
isContinuousLayout
public boolean isContinuousLayout()
- determine if child components should be are continuously redisplayed
and layed out during dragging the divider.
setContinuousLayout
public void setContinuousLayout(boolean continuousLayout)
getResizeWeight
public float getResizeWeight()
setResizeWeight
public void setResizeWeight(float resizeWeight)
saveDividerLocation
public void saveDividerLocation()
setLayout
public void setLayout(java.awt.LayoutManager mgr)
- does nothing - JMultiSplitPane controls its Layout by itself
createTreeModel
public javax.swing.tree.TreeModel createTreeModel()
doLayout
public void doLayout()
- Description copied from class:
java.awt.Container
- Layout the components in this container.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
java.awt.Container
- Returns the preferred size of this container.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
java.awt.Container
- Returns the minimum size of this container.
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
java.awt.Container
- Paints this container. The implementation of this method in this
class forwards to any lightweight components in this container. If
this method is subclassed, this method should still be invoked as
a superclass method so that lightweight components are properly
drawn.
addImpl
protected void addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
- Adds component to JMultiSplitPane.
Since children in JMultiSplitPane never overlap,
order of components doesn't matters and I misuse index as orientation.
getDividerWidth
public int getDividerWidth()
setDividerWidth
public void setDividerWidth(int dividerWidth)