public class ProjMapBeanKeyListener extends MapBeanKeyListener implements ProjectionStackTrigger
Modifier and Type | Field and Description |
---|---|
protected PanSupport |
panners |
protected ListenerSupport<java.awt.event.ActionListener> |
projListeners |
protected ZoomSupport |
zoomers |
protected float |
zoomFactor
Default Zoom In Factor is 2, meaning that the scale number will
be cut in half to zoom in and doubled to zoom out.
|
mapBean
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
ProjMapBeanKeyListener() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener al)
Add an ActionListener for events that trigger events to shift
the Projection stack.
|
void |
findAndInit(java.lang.Object someObj)
In addition to the MapBean, find a projection stack so the less
than/greater than works on that.
|
void |
findAndUndo(java.lang.Object someObj)
The childrenRemoved has been changed to go through its iterator to call
this method with every object.
|
protected void |
fireProjectionStackEvent(java.lang.String command)
Called by keyReleased when the period/comma keys are pressed.
|
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
removeActionListener(java.awt.event.ActionListener al)
Remove an ActionListener that receives events that trigger
events to shift the Projection stack.
|
void |
setMapBean(MapBean map)
In addition to the super.setMapBean() method, also sets the
MapBean as a zoom and pan listener.
|
void |
updateProjectionStackStatus(boolean containsBackProjections,
boolean containsForwardProjections)
To receive a status to let the trigger know if any projections
in the forward or backward stacks exist, possibly to disable
any gui widgets.
|
getMapBean, keyPressed, keyTyped
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected transient float zoomFactor
protected PanSupport panners
protected ZoomSupport zoomers
protected ListenerSupport<java.awt.event.ActionListener> projListeners
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class MapBeanKeyListener
public void setMapBean(MapBean map)
setMapBean
in class MapBeanKeyListener
protected void fireProjectionStackEvent(java.lang.String command)
public void addActionListener(java.awt.event.ActionListener al)
addActionListener
in interface ProjectionStackTrigger
public void removeActionListener(java.awt.event.ActionListener al)
removeActionListener
in interface ProjectionStackTrigger
public void updateProjectionStackStatus(boolean containsBackProjections, boolean containsForwardProjections)
updateProjectionStackStatus
in interface ProjectionStackTrigger
containsBackProjections
- there is at least one past
projection in the back cache.containsForwardProjections
- there is at least one future
projection in the forward cache. Used when a past
projection is being used.public void findAndInit(java.lang.Object someObj)
findAndInit
in interface LightMapHandlerChild
findAndInit
in class MapBeanKeyListener
public void findAndUndo(java.lang.Object someObj)
MapHandlerChild
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class MapBeanKeyListener
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details