|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JLayeredPane com.bbn.openmap.gui.dock.BasicDockPanel
public class BasicDockPanel
A component that has a background component and docking children.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
---|
javax.swing.JLayeredPane.AccessibleJLayeredPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JLayeredPane |
---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
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 com.bbn.openmap.gui.dock.DockPanel |
---|
BACKGROUND |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BasicDockPanel()
|
Method Summary | |
---|---|
java.awt.Component |
add(java.awt.Component comp)
We need to handle adding the component specially. |
void |
add(java.awt.Component comp,
java.lang.Object constraints)
We need to handle adding the component specially. |
protected void |
dock(DockWrapper outter,
DockWrapper inner)
Dock the given child onto the given parent, which is itself a child of this class. |
protected void |
dock(DockWrapper outter,
DockWrapper inner,
int idx)
Dock the given child onto the given parent, which is itself a child of this class. |
void |
dock(javax.swing.JComponent outter,
javax.swing.JComponent inner)
Dock the given child onto the given parent, which is itself a child of this class. |
void |
dock(javax.swing.JComponent outter,
javax.swing.JComponent inner,
int idx)
Dock the given child onto the given parent, which is itself a child of this class. |
protected void |
dockEast(DockWrapper wrapper)
|
protected void |
dockEast(DockWrapper wrapper,
int idx)
Dock the given child into the given position on the MapPanel |
void |
dockEast(javax.swing.JComponent child)
Dock child on the DockPanel. |
void |
dockEast(javax.swing.JComponent child,
int idx)
Dock the given child into the given position on the DockPanel |
protected void |
dockNorth(DockWrapper wrapper)
|
protected void |
dockNorth(DockWrapper wrapper,
int idx)
Dock the given child into the given position on the MapPanel |
void |
dockNorth(javax.swing.JComponent child)
Dock child on the DockPanel. |
void |
dockNorth(javax.swing.JComponent child,
int idx)
Dock the given child into the given position on the DockPanel |
protected void |
dockSomewhere(DockWrapper wrapper)
Dock the given child somewhere... |
void |
dockSomewhere(javax.swing.JComponent child)
Dock the given child somewhere... |
protected void |
dockSouth(DockWrapper wrapper)
|
protected void |
dockSouth(DockWrapper wrapper,
int idx)
Dock the given child into the given position on the MapPanel |
void |
dockSouth(javax.swing.JComponent child)
Dock child on the DockPanel. |
void |
dockSouth(javax.swing.JComponent child,
int idx)
Dock the given child into the given position on the DockPanel |
protected void |
dockWest(DockWrapper wrapper)
|
protected void |
dockWest(DockWrapper wrapper,
int idx)
Dock the given child into the given position on the MapPanel |
void |
dockWest(javax.swing.JComponent child)
Dock child on the DockPanel. |
void |
dockWest(javax.swing.JComponent child,
int idx)
Dock the given child into the given position on the DockPanel |
protected void |
externalFrame(DockWrapper wrapper)
Set the component to an internal frame |
void |
externalFrame(javax.swing.JComponent child)
Set the component to an external frame |
protected void |
freeWrapper(DockWrapper w)
Remove the wrapper from wherever it is currently |
javax.swing.JComponent |
getBackgroundComponent()
Get the background component. |
DockConstraint |
getConstraint(javax.swing.JComponent child)
Get the constraint on the given child. |
protected DockWrapper |
getEast()
|
protected DockWrapper |
getNorth()
|
protected int |
getOverlapTolerance()
|
protected DockWrapper |
getSouth()
|
protected DockWrapper |
getWest()
|
protected DockWrapper |
getWrapper(javax.swing.JComponent child)
|
protected void |
internalFrame(DockWrapper wrapper)
Set the component to an internal frame |
void |
internalFrame(javax.swing.JComponent child)
Set the component to an internal frame |
void |
remove(java.awt.Component comp)
|
void |
removeAll()
|
void |
removeConstraint(javax.swing.JComponent child)
Remove a constraint on a child. |
protected void |
removeWrapper(DockWrapper wrapper)
|
void |
setBackgroundComponent(javax.swing.JComponent back)
Set the background component. |
void |
setCanClose(javax.swing.JComponent child,
boolean b)
Set that the child can be closed. |
void |
setCanDockEast(javax.swing.JComponent child,
boolean b)
Set that the child can dock on the top-level east. |
void |
setCanDockNorth(javax.swing.JComponent child,
boolean b)
Set that the child can dock on the top-level north. |
void |
setCanDockSouth(javax.swing.JComponent child,
boolean b)
Set that the child can dock on the top-level south. |
void |
setCanDockWest(javax.swing.JComponent child,
boolean b)
Set that the child can dock on the top-level west. |
void |
setCanExternalFrame(javax.swing.JComponent child,
boolean b)
Set that the child can be become an external frame. |
void |
setCanInternalFrame(javax.swing.JComponent child,
boolean b)
Set that the child can be become an internal frame. |
void |
setCanOcclude(javax.swing.JComponent child,
boolean b)
Set that the given child can sit in front of the background component, without forcing the background component to be resized to make room. |
void |
setCanResize(javax.swing.JComponent child,
boolean b)
Set that the child component can be user-resized. |
void |
setCanTab(javax.swing.JComponent child,
boolean b)
Set that the child component can be tabbed up, if docked in the same location as other tab-able components. |
void |
setCanTransparent(javax.swing.JComponent child,
boolean b)
Set the child component to have a transparent background. |
void |
setConstraint(javax.swing.JComponent child,
DockConstraint c)
Set the constraint on the given child. |
void |
setPreferredHeight(javax.swing.JComponent child,
int i)
Set the childs preferred height. |
void |
setPreferredWidth(javax.swing.JComponent child,
int i)
Set the childs preferred width. |
void |
setTabName(javax.swing.JComponent child,
java.lang.String tabName)
Set the name of the tab to use when the component is tabbed (if it can tab). |
protected void |
setWrapper(javax.swing.JComponent child,
DockWrapper w)
|
Methods inherited from class javax.swing.JLayeredPane |
---|
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, setLayer, setLayer, setPosition |
Methods inherited from class javax.swing.JComponent |
---|
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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, addContainerListener, 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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, hide, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicDockPanel()
Method Detail |
---|
public javax.swing.JComponent getBackgroundComponent()
DockPanel
getBackgroundComponent
in interface DockPanel
public void setBackgroundComponent(javax.swing.JComponent back)
DockPanel
setBackgroundComponent
in interface DockPanel
public void setConstraint(javax.swing.JComponent child, DockConstraint c)
DockPanel
setConstraint
in interface DockPanel
public DockConstraint getConstraint(javax.swing.JComponent child)
DockPanel
getConstraint
in interface DockPanel
public void removeConstraint(javax.swing.JComponent child)
DockPanel
removeConstraint
in interface DockPanel
public void setPreferredHeight(javax.swing.JComponent child, int i)
DockPanel
setPreferredHeight
in interface DockPanel
public void setPreferredWidth(javax.swing.JComponent child, int i)
DockPanel
setPreferredWidth
in interface DockPanel
public void setCanOcclude(javax.swing.JComponent child, boolean b)
DockPanel
setCanOcclude
in interface DockPanel
public void setCanTransparent(javax.swing.JComponent child, boolean b)
DockPanel
setCanTransparent
in interface DockPanel
public void setCanResize(javax.swing.JComponent child, boolean b)
DockPanel
setCanResize
in interface DockPanel
public void setCanTab(javax.swing.JComponent child, boolean b)
DockPanel
setCanTab
in interface DockPanel
public void setTabName(javax.swing.JComponent child, java.lang.String tabName)
setTabName
in interface DockPanel
public void setCanExternalFrame(javax.swing.JComponent child, boolean b)
DockPanel
setCanExternalFrame
in interface DockPanel
public void setCanInternalFrame(javax.swing.JComponent child, boolean b)
DockPanel
setCanInternalFrame
in interface DockPanel
public void setCanClose(javax.swing.JComponent child, boolean b)
DockPanel
setCanClose
in interface DockPanel
public void setCanDockNorth(javax.swing.JComponent child, boolean b)
DockPanel
setCanDockNorth
in interface DockPanel
public void setCanDockSouth(javax.swing.JComponent child, boolean b)
DockPanel
setCanDockSouth
in interface DockPanel
public void setCanDockEast(javax.swing.JComponent child, boolean b)
DockPanel
setCanDockEast
in interface DockPanel
public void setCanDockWest(javax.swing.JComponent child, boolean b)
DockPanel
setCanDockWest
in interface DockPanel
public void dockNorth(javax.swing.JComponent child)
DockPanel
dockNorth
in interface DockPanel
public void dockNorth(javax.swing.JComponent child, int idx)
DockPanel
dockNorth
in interface DockPanel
protected void dockNorth(DockWrapper wrapper)
protected void dockNorth(DockWrapper wrapper, int idx)
public void dockSouth(javax.swing.JComponent child)
DockPanel
dockSouth
in interface DockPanel
public void dockSouth(javax.swing.JComponent child, int idx)
DockPanel
dockSouth
in interface DockPanel
protected void dockSouth(DockWrapper wrapper)
protected void dockSouth(DockWrapper wrapper, int idx)
public void dockEast(javax.swing.JComponent child)
DockPanel
dockEast
in interface DockPanel
public void dockEast(javax.swing.JComponent child, int idx)
DockPanel
dockEast
in interface DockPanel
protected void dockEast(DockWrapper wrapper)
protected void dockEast(DockWrapper wrapper, int idx)
public void dockWest(javax.swing.JComponent child)
DockPanel
dockWest
in interface DockPanel
public void dockWest(javax.swing.JComponent child, int idx)
DockPanel
dockWest
in interface DockPanel
protected void dockWest(DockWrapper wrapper)
protected void dockWest(DockWrapper wrapper, int idx)
public void dock(javax.swing.JComponent outter, javax.swing.JComponent inner)
dock
in interface DockPanel
public void dock(javax.swing.JComponent outter, javax.swing.JComponent inner, int idx)
dock
in interface DockPanel
protected void dock(DockWrapper outter, DockWrapper inner)
protected void dock(DockWrapper outter, DockWrapper inner, int idx)
public void internalFrame(javax.swing.JComponent child)
internalFrame
in interface DockPanel
protected void internalFrame(DockWrapper wrapper)
public void externalFrame(javax.swing.JComponent child)
externalFrame
in interface DockPanel
protected void externalFrame(DockWrapper wrapper)
public void dockSomewhere(javax.swing.JComponent child)
dockSomewhere
in interface DockPanel
protected void dockSomewhere(DockWrapper wrapper)
public java.awt.Component add(java.awt.Component comp)
add
in class java.awt.Container
public void add(java.awt.Component comp, java.lang.Object constraints)
add
in class java.awt.Container
public void remove(java.awt.Component comp)
remove
in class java.awt.Container
public void removeAll()
removeAll
in class javax.swing.JLayeredPane
protected DockWrapper getNorth()
protected DockWrapper getSouth()
protected DockWrapper getEast()
protected DockWrapper getWest()
protected int getOverlapTolerance()
protected void setWrapper(javax.swing.JComponent child, DockWrapper w)
protected DockWrapper getWrapper(javax.swing.JComponent child)
protected void removeWrapper(DockWrapper wrapper)
protected void freeWrapper(DockWrapper w)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |