|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.bbn.openmap.gui.OMComponentPanel
com.bbn.openmap.gui.BasicMapPanel
com.bbn.openmap.gui.DockMapPanel
public class DockMapPanel
The DockMapPanel is a MapPanel that uses a DockPanel for its layout.
Like BasicMapPanel, the Panel creates a MapBean for its center area. It creates a MapHandler to use to hold all of its OpenMap components, and uses the PropertyHandler given to it in its constructor to create and configure all of the application components. The best way to add components to the MapPanel is to get the MapHandler from it and add the component to that. The DockMapPanel also adds itself to its MapHandler
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| 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 | |
|---|---|
protected BasicDockPanel |
dockPanel
|
| Fields inherited from class com.bbn.openmap.gui.BasicMapPanel |
|---|
logger, mapBean, mapHandler, menuList, propertyHandler, SET_NAME_PROPERTY, setName |
| Fields inherited from class com.bbn.openmap.gui.OMComponentPanel |
|---|
beanContextChildSupport, i18n, isolated, orientation, propertyPrefix, windowSupport |
| 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 com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DockMapPanel()
Create a MapPanel that creates its own PropertyHandler, which will then search the classpath, config directory and user home directory for the openmap.properties file to configure components for the MapPanel. |
|
DockMapPanel(boolean delayCreation)
Create a MapPanel with the option of delaying the search for properties until the create() call is made. |
|
DockMapPanel(PropertyHandler propertyHandler)
Create a MapPanel that configures itself with the properties contained in the PropertyHandler provided. |
|
DockMapPanel(PropertyHandler propertyHandler,
boolean delayCreation)
Create a MapPanel that configures itself with properties contained in the PropertyHandler provided, and with the option of delaying the search for properties until the create() call is made. |
|
| 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 |
addMapBeanToPanel(MapBean map)
Position the map bean in this panel according to the layout manger. |
protected void |
addMapPanelChild(MapPanelChild mpc)
Add a child to the MapPanel. |
protected void |
createComponents()
The constructor calls this method that creates the MapHandler and MapBean, and then tells the PropertyHandler to create the components described in its properties. |
protected java.awt.LayoutManager |
createLayoutManager()
The constructor calls this method that sets the LayoutManager for this MapPanel. |
void |
dock(javax.swing.JComponent outter,
javax.swing.JComponent inner)
Dock the given child onto the given parent, which is itself a child. |
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. |
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 |
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 |
void |
dockSomewhere(javax.swing.JComponent child)
Dock the given child somewhere on the DockPanel. |
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 |
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 |
void |
externalFrame(javax.swing.JComponent child)
Set the component to an external frame |
javax.swing.JComponent |
getBackgroundComponent()
Get the background component. |
DockConstraint |
getConstraint(javax.swing.JComponent child)
Get the constraint on the given child. |
void |
internalFrame(javax.swing.JComponent child)
Set the component to an internal frame |
void |
remove(java.awt.Component comp)
We need to handle removing the component specially. |
void |
removeAll()
We need to handle removing all components specially. |
void |
removeConstraint(javax.swing.JComponent child)
Remove a constraint on a child. |
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). |
| Methods inherited from class com.bbn.openmap.gui.BasicMapPanel |
|---|
addMapComponent, addProperties, addProperties, addProperties, addProperty, appendProperty, appendProperty, create, createMapBean, createMapBean, dispose, findAndInit, findAndUndo, getMapBean, getMapComponent, getMapComponentByType, getMapComponentsByType, getMapHandler, getMapMenu, getMapMenuBar, getProperties, getPropertyHandler, isSetName, prependProperty, prependProperty, removeMapComponent, removeMarker, removeProperty, setMapBean, setProperties, setPropertyHandler, setSetName |
| Methods inherited from class com.bbn.openmap.gui.OMComponentPanel |
|---|
addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, fireVetoableChange, getBeanContext, getOrientation, getProperties, getPropertyInfo, getPropertyPrefix, getWindowSupport, isIsolated, removeVetoableChangeListener, setBeanContext, setIsolated, setOrientation, setProperties, setPropertyPrefix, setWindowSupport |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
| Methods inherited from class java.awt.Container |
|---|
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, 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 |
| Methods inherited from interface java.beans.beancontext.BeanContextChild |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected BasicDockPanel dockPanel
| Constructor Detail |
|---|
public DockMapPanel()
public DockMapPanel(boolean delayCreation)
create() call is made.
delayCreation - true to let the MapPanel know that the
artful programmer will call create()public DockMapPanel(PropertyHandler propertyHandler)
public DockMapPanel(PropertyHandler propertyHandler,
boolean delayCreation)
create() call is made.
delayCreation - true to let the MapPanel know that the
artful programmer will call create()| Method Detail |
|---|
protected final java.awt.LayoutManager createLayoutManager()
BasicMapPanel
createLayoutManager in class BasicMapPanelprotected final void addMapBeanToPanel(MapBean map)
BasicMapPanel
addMapBeanToPanel in class BasicMapPanelprotected void createComponents()
BasicMapPanel
createComponents in class BasicMapPanelprotected void addMapPanelChild(MapPanelChild mpc)
addMapPanelChild in class BasicMapPanelpublic javax.swing.JComponent getBackgroundComponent()
DockPanel
getBackgroundComponent in interface DockPanelpublic void setBackgroundComponent(javax.swing.JComponent back)
DockPanel
setBackgroundComponent in interface DockPanel
public void setConstraint(javax.swing.JComponent child,
DockConstraint c)
DockPanel
setConstraint in interface DockPanelpublic DockConstraint getConstraint(javax.swing.JComponent child)
DockPanel
getConstraint in interface DockPanelpublic 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)
DockPanel
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 DockPanelpublic void dockNorth(javax.swing.JComponent child)
DockPanel
dockNorth in interface DockPanel
public void dockNorth(javax.swing.JComponent child,
int idx)
DockPanel
dockNorth in interface DockPanelpublic void dockSouth(javax.swing.JComponent child)
DockPanel
dockSouth in interface DockPanel
public void dockSouth(javax.swing.JComponent child,
int idx)
DockPanel
dockSouth in interface DockPanelpublic void dockEast(javax.swing.JComponent child)
DockPanel
dockEast in interface DockPanel
public void dockEast(javax.swing.JComponent child,
int idx)
DockPanel
dockEast in interface DockPanelpublic void dockWest(javax.swing.JComponent child)
DockPanel
dockWest in interface DockPanel
public void dockWest(javax.swing.JComponent child,
int idx)
DockPanel
dockWest in interface DockPanelpublic void dockSomewhere(javax.swing.JComponent child)
DockPanel
dockSomewhere in interface DockPanel
public void dock(javax.swing.JComponent outter,
javax.swing.JComponent inner)
DockPanel
dock in interface DockPanel
public void dock(javax.swing.JComponent outter,
javax.swing.JComponent inner,
int idx)
DockPanel
dock in interface DockPanelpublic void internalFrame(javax.swing.JComponent child)
DockPanel
internalFrame in interface DockPanelpublic void externalFrame(javax.swing.JComponent child)
DockPanel
externalFrame in interface DockPanelpublic 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.Containerpublic void remove(java.awt.Component comp)
remove in class java.awt.Containerpublic void removeAll()
removeAll in class java.awt.Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||