public class LayerControlButtonPanel extends OMComponentPanel implements java.awt.event.ActionListener, java.beans.PropertyChangeListener
The LayerControlButtonPanel takes these properties:
# Direction buttons are laid out, vertical or horizontal (vertical is default). orientation=vertical # Flag on whether to insert buttons onto LayersPanel (true by default). embedded=true # Configuration setting when embedding into LayersPanel (WEST, # NORTH, EAST, SOUTH, NORTH_SOUTH) NORTH_SOUTH puts up button above # list, down button below list. configuration=WEST # Flag to put button that lets the user delete layers (true by default). delete=true # Flag to put button that lets the user add layers, if the # LayersAddPanel is discovered in the MapHandler (true by default) add=true
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
add |
protected static javax.swing.ImageIcon |
addclickedgif |
protected static javax.swing.ImageIcon |
addgif |
protected boolean |
addLayers |
static java.lang.String |
AddLayersProperty |
protected javax.swing.JButton |
bottom |
protected static javax.swing.ImageIcon |
bottomclickedgif |
protected static javax.swing.ImageIcon |
bottomgif |
protected int |
boxOrientation |
protected java.lang.String |
configuration |
static java.lang.String |
ConfigurationProperty |
static java.lang.String |
DefaultConfiguration |
protected javax.swing.JButton |
delete |
protected static javax.swing.ImageIcon |
deleteclickedgif |
protected static javax.swing.ImageIcon |
deletegif |
protected boolean |
deleteLayers |
static java.lang.String |
DeleteLayersProperty |
protected javax.swing.JButton |
down |
protected static javax.swing.ImageIcon |
downclickedgif |
protected static javax.swing.ImageIcon |
downgif |
static java.lang.String |
EAST_CONFIG |
protected boolean |
embedded |
static java.lang.String |
EmbeddedProperty |
static java.lang.String |
HORIZONTAL_CONFIG |
protected LayerAddPanel |
layerAddPanel |
static java.lang.String |
NORTH_CONFIG |
static java.lang.String |
NORTH_SOUTH_CONFIG |
static java.lang.String |
OrientationProperty |
protected Layer |
selected |
static java.lang.String |
SOUTH_CONFIG |
protected javax.swing.JButton |
top |
protected static javax.swing.ImageIcon |
topclickedgif |
protected static javax.swing.ImageIcon |
topgif |
protected javax.swing.JButton |
up |
protected static javax.swing.ImageIcon |
upclickedgif |
protected static javax.swing.ImageIcon |
upgif |
protected static java.net.URL |
urladd |
protected static java.net.URL |
urladdc |
protected static java.net.URL |
urlbottom |
protected static java.net.URL |
urlbottomc |
protected static java.net.URL |
urldelete |
protected static java.net.URL |
urldeletec |
protected static java.net.URL |
urldown |
protected static java.net.URL |
urldownc |
protected static java.net.URL |
urltop |
protected static java.net.URL |
urltopc |
protected static java.net.URL |
urlup |
protected static java.net.URL |
urlupc |
static java.lang.String |
VERTICAL_CONFIG |
static java.lang.String |
WEST_CONFIG |
beanContextChildSupport, i18n, isolated, orientation, propertyPrefix, windowSupport
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
LayerControlButtonPanel() |
LayerControlButtonPanel(LayersPanel panel) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Method associated with the ActionListener interface.
|
protected void |
createInterface() |
void |
findAndInit(java.lang.Object someObj) |
void |
findAndUndo(java.lang.Object someObj) |
LayerAddPanel |
getLayerAddPanel()
Get the panel interface to dynamically add layers.
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the
current values of the OMComponent.
|
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting the
properties able to be set on this PropertyConsumer.
|
void |
propertyChange(java.beans.PropertyChangeEvent pce) |
void |
removeLayersPanel(LayersPanel panel) |
void |
setLayerAddPanel(LayerAddPanel lap)
Set the panel that brings up an interface to dynamically add
layers.
|
void |
setLayersPanel(LayersPanel panel)
Sets this panel to control the LayersPanel.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent.
|
addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, fireVetoableChange, getBeanContext, getOrientation, getPropertyPrefix, getWindowSupport, isIsolated, removeVetoableChangeListener, setBeanContext, setIsolated, setOrientation, setProperties, setPropertyPrefix, setWindowSupport
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, isPaintingOrigin, 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
add, add, 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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, transferFocusBackward, transferFocusUpCycle
protected static transient java.net.URL urlup
protected static transient javax.swing.ImageIcon upgif
protected static transient java.net.URL urlupc
protected static transient javax.swing.ImageIcon upclickedgif
protected static transient java.net.URL urltop
protected static transient javax.swing.ImageIcon topgif
protected static transient java.net.URL urltopc
protected static transient javax.swing.ImageIcon topclickedgif
protected static transient java.net.URL urldown
protected static transient javax.swing.ImageIcon downgif
protected static transient java.net.URL urldownc
protected static transient javax.swing.ImageIcon downclickedgif
protected static transient java.net.URL urlbottom
protected static transient javax.swing.ImageIcon bottomgif
protected static transient java.net.URL urlbottomc
protected static transient javax.swing.ImageIcon bottomclickedgif
protected static transient java.net.URL urldelete
protected static transient javax.swing.ImageIcon deletegif
protected static transient java.net.URL urldeletec
protected static transient javax.swing.ImageIcon deleteclickedgif
protected static transient java.net.URL urladd
protected static transient javax.swing.ImageIcon addgif
protected static transient java.net.URL urladdc
protected static transient javax.swing.ImageIcon addclickedgif
protected javax.swing.JButton add
protected javax.swing.JButton delete
protected javax.swing.JButton top
protected javax.swing.JButton up
protected javax.swing.JButton down
protected javax.swing.JButton bottom
protected LayerAddPanel layerAddPanel
public static final java.lang.String OrientationProperty
public static final java.lang.String ConfigurationProperty
public static final java.lang.String EmbeddedProperty
public static final java.lang.String DeleteLayersProperty
public static final java.lang.String AddLayersProperty
public static final java.lang.String HORIZONTAL_CONFIG
public static final java.lang.String VERTICAL_CONFIG
public static final java.lang.String WEST_CONFIG
public static final java.lang.String EAST_CONFIG
public static final java.lang.String NORTH_CONFIG
public static final java.lang.String SOUTH_CONFIG
public static final java.lang.String NORTH_SOUTH_CONFIG
public static final java.lang.String DefaultConfiguration
protected int boxOrientation
protected java.lang.String configuration
protected boolean embedded
protected boolean deleteLayers
protected boolean addLayers
protected Layer selected
public LayerControlButtonPanel()
public LayerControlButtonPanel(LayersPanel panel)
public void removeLayersPanel(LayersPanel panel)
public void setLayersPanel(LayersPanel panel)
protected void createInterface()
public void setLayerAddPanel(LayerAddPanel lap)
public LayerAddPanel getLayerAddPanel()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- ActionEventpublic void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
public void findAndInit(java.lang.Object someObj)
findAndInit
in interface LightMapHandlerChild
findAndInit
in class OMComponentPanel
public void findAndUndo(java.lang.Object someObj)
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class OMComponentPanel
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponentPanel
setProperties
in interface PropertyConsumer
setProperties
in class OMComponentPanel
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponentPanel
getProperties
in interface PropertyConsumer
getProperties
in class OMComponentPanel
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponentPanel
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class OMComponentPanel
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details