WISA.wisa3D
Class MultiSplitPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--WISA.wisa3D.MultiSplitPane
All Implemented Interfaces:
java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class MultiSplitPane
extends javax.swing.JComponent
implements javax.swing.event.MouseInputListener

Überschrift: Wisa3D Beschreibung: Copyright: Copyright (c) 1999 Organisation: IAI-FZK

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MultiSplitPane(javax.swing.JComponent[] values)
          Construct a new MultiSplitPane with the specified inner components.
MultiSplitPane(javax.swing.JComponent[] values, int orientation)
          Construct a new MultiSplitPane with the specified inner components and orientation.
MultiSplitPane(java.lang.String[] values)
          Construct a new MultiSplitPane with JLabels as inner components.
MultiSplitPane(java.lang.String[] values, int orientation)
          Construct a new MultiSplitPane with JLabels as inner components and the specified orientation.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an ActionListener to this MultiSplitPane.
 void addLink(MultiSplitPane link)
          Adds a link to another MultiSplitPane.
 void addLink(MultiSplitPane link, boolean viceversa)
          Adds a link to another MultiSplitPane.
 void doLayout()
           
 float[] getSliderPositionRatios()
           
 int[] getSliderPositions()
           
 int getSliderThickness()
          Returns the slider thickness of this MutliSplitPane.
 int getThickness()
          Returns the thickness of this MutliSplitPane.
 int[] getWidths()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void processActionEvent()
           
 void removeActionListener(java.awt.event.ActionListener l)
          Removes an ActionListener from this MultiSplitPane.
 void setSliderPositionRatios(float[] ratios)
           
 void setSliderPositions(int[] positions)
           
 void setSliderPositionsEqualSized()
           
protected  void setSliderPositionVerified(java.awt.Point position, int which)
          Sets the position of the specified slider and checks if this is a valid position.
 void setSliderThickness(int thickness)
          Sets the slider thickness of this component.
 void setThickness(int thickness)
          Sets the thickness of this component.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiSplitPane

public MultiSplitPane(java.lang.String[] values)
Construct a new MultiSplitPane with JLabels as inner components.

Parameters:
values - The names for the JLabels.

MultiSplitPane

public MultiSplitPane(java.lang.String[] values,
                      int orientation)
Construct a new MultiSplitPane with JLabels as inner components and the specified orientation.

Parameters:
values - The names for the JLabels.
orientation - Valid value are SwingConstants.HORIZONTAL and SwingConstants.VERTICAL.

MultiSplitPane

public MultiSplitPane(javax.swing.JComponent[] values)
Construct a new MultiSplitPane with the specified inner components.

Parameters:
values - The inner components of this MultiSplitPane.

MultiSplitPane

public MultiSplitPane(javax.swing.JComponent[] values,
                      int orientation)
Construct a new MultiSplitPane with the specified inner components and orientation.

Parameters:
values - The inner components of this MultiSplitPane.
orientation - Valid value are SwingConstants.HORIZONTAL and SwingConstants.VERTICAL.
Method Detail

addLink

public void addLink(MultiSplitPane link)
Adds a link to another MultiSplitPane. Both MultiSplitPanes must have the same number of inner components.

Parameters:
link - The link to be added.

addLink

public void addLink(MultiSplitPane link,
                    boolean viceversa)
Adds a link to another MultiSplitPane. Both MultiSplitPanes must have the same number of inner components. If viceversa is true a link to this MultiPlitPane is added to the specified pane too.

Parameters:
link - The link to be added.
viceversa - If true a viceversa link is generated.

setSliderPositions

public void setSliderPositions(int[] positions)

setSliderPositionRatios

public void setSliderPositionRatios(float[] ratios)

setSliderPositionsEqualSized

public void setSliderPositionsEqualSized()

getSliderPositions

public int[] getSliderPositions()

getSliderPositionRatios

public float[] getSliderPositionRatios()

getWidths

public int[] getWidths()

doLayout

public void doLayout()
Overrides:
doLayout in class java.awt.Container

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to this MultiSplitPane. The ActionListeners will be informed when the weights of the inner components have changed.

Parameters:
l - The ActionListener to be added.

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener from this MultiSplitPane.

Parameters:
l - The ActionListener to be removed.

setThickness

public void setThickness(int thickness)
Sets the thickness of this component. If this is a horizontal MultiSplitPane the thickness is its heigth otherwise its width. The default value is 20.

Parameters:
thickness - The thickness of this MultiSPlitPane.

getThickness

public int getThickness()
Returns the thickness of this MutliSplitPane.

Returns:
The thickness of this MultiSplitPane.

setSliderThickness

public void setSliderThickness(int thickness)
Sets the slider thickness of this component. The default value is 4.

Parameters:
thickness - The slider thickness of this MultiSPlitPane.

getSliderThickness

public int getSliderThickness()
Returns the slider thickness of this MutliSplitPane.

Returns:
The slider thickness of this MultiSplitPane.

processActionEvent

public void processActionEvent()

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

setSliderPositionVerified

protected void setSliderPositionVerified(java.awt.Point position,
                                         int which)
Sets the position of the specified slider and checks if this is a valid position.

Parameters:
which - The slider to be repositioned.

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener