Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.gui.awt
Class MultiSplitPane  view MultiSplitPane download MultiSplitPane.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.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 Class Summary
(package private) static class MultiSplitPane.Bounds
           
static class MultiSplitPane.Divider
           
 class MultiSplitPane.Node
          Manages component tree.
 
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
 
Field Summary
(package private)  boolean continuousLayout
           
(package private)  int dividerWidth
           
(package private)  MultiSplitPane.Divider drag
           
(package private)  com.imagero.util.HashBag hashBag
           
(package private)  java.util.HashMap ht
           
(package private)  boolean independentMode
           
private  int nodeCount
           
(package private)  float resizeWeight
           
(package private)  MultiSplitPane.Node root
           
(package private)  MultiSplitPane.Node selectedNode
           
 
Fields inherited from class java.awt.Panel
 
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 com.imagero.gui.awt.SplitConstants
ALIGN_LEFT, ALIGN_RIGHT, HORIZONTAL_SPLIT, VERTICAL_SPLIT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MultiSplitPane()
           
 
Method Summary
protected  void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
          Adds component to JMultiSplitPane.
private  void addToHashBag(boolean includeRoot)
           
 javax.swing.tree.TreeModel createTreeModel()
           
 void doLayout()
          Layout the components in this container.
 java.awt.Component getComponentAt(int x, int y)
          Returns the component located at the specified point.
 int getDividerWidth()
           
 java.awt.Dimension getMinimumSize()
          Returns the minimum size of this container.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size of this container.
 float getResizeWeight()
           
 boolean isContinuousLayout()
          determine if child components should be are continuously redisplayed and layed out during dragging the divider.
 boolean isIndependentMode()
           
 void paint(java.awt.Graphics g)
          Paints this container.
private  void renumber()
           
private  void resize()
           
 void saveDividerLocation()
           
 void setContinuousLayout(boolean continuousLayout)
           
 void setDividerWidth(int dividerWidth)
           
 void setIndependentMode(boolean independentMode)
           
 void setLayout(java.awt.LayoutManager mgr)
          does nothing - JMultiSplitPane controls its Layout by itself
 void setResizeWeight(float resizeWeight)
           
protected  void split(java.awt.Component child, java.awt.Component add, int orientation, int align)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MultiSplitPane

public MultiSplitPane()
Method Detail

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)