public class ProjectionStack extends OMComponent implements java.awt.event.ActionListener, ProjectionListener
Modifier and Type | Class and Description |
---|---|
class |
ProjectionStack.ProjHolder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BackProjCmd |
protected java.util.Stack<ProjectionStack.ProjHolder> |
backStack |
static java.lang.String |
ClearBackStackCmd |
static java.lang.String |
ClearForwardStackCmd |
static java.lang.String |
ClearStacksCmd |
protected ProjectionStack.ProjHolder |
currentProjection
The currentProjection should be the top item on the backStack.
|
protected java.lang.String |
currentProjectionID |
static int |
DEFAULT_MAX_SIZE |
protected java.awt.Container |
face |
static java.lang.String |
ForwardProjCmd |
protected java.util.Stack<ProjectionStack.ProjHolder> |
forwardStack |
protected MapBean |
mapBean |
static int |
REMEMBER_ALL |
protected int |
stackSize |
protected ProjectionStackSupport |
triggers |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
ProjectionStack()
Create the projection submenu.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae) |
void |
addProjectionStackTrigger(ProjectionStackTrigger trigger)
ProjectionStackTriggers should call this method, and all will be well.
|
protected ProjectionStack.ProjHolder |
backPop()
Take a ProjHolder off the forwardStack, and push it on the backStack.
|
void |
clearStacks(boolean clearBackStack,
boolean clearForwardStack)
Clear out the chosen projection stacks and fire an event to update the
triggers on stack status.
|
void |
findAndInit(java.lang.Object someObj)
Look at the object received in a MapHandler status message and connect to
it if necessary.
|
void |
findAndUndo(java.lang.Object someObj)
Look at the object received in a MapHandler status message and disconnect
from it if necessary.
|
void |
fireStackStatus() |
void |
fireStackStatus(boolean enableBackButton,
boolean enableForwardButton) |
MapBean |
getMapBean() |
protected ProjectionFactory |
getProjectionFactory(ProjectionEvent e) |
protected ProjectionStack.ProjHolder |
pop()
Take a ProjHolder off the backStack, and push it on the forward stack.
|
void |
projectionChanged(ProjectionEvent e)
The Map projection has changed.
|
protected ProjectionStack.ProjHolder |
push(ProjectionStack.ProjHolder proj)
Put a new ProjHolder on the backStack, to remember for later in case we
need to back up.
|
void |
removeProjectionStackTrigger(ProjectionStackTrigger trigger)
ProjectionStackTriggers should call this method, and all will be well.
|
void |
setMapBean(MapBean map) |
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
public static final int DEFAULT_MAX_SIZE
public static final int REMEMBER_ALL
protected transient ProjectionStack.ProjHolder currentProjection
protected transient java.lang.String currentProjectionID
protected transient java.awt.Container face
protected transient MapBean mapBean
protected int stackSize
public static final transient java.lang.String BackProjCmd
public static final transient java.lang.String ForwardProjCmd
public static final transient java.lang.String ClearBackStackCmd
public static final transient java.lang.String ClearForwardStackCmd
public static final transient java.lang.String ClearStacksCmd
protected java.util.Stack<ProjectionStack.ProjHolder> backStack
protected java.util.Stack<ProjectionStack.ProjHolder> forwardStack
protected ProjectionStackSupport triggers
public void setMapBean(MapBean map)
public MapBean getMapBean()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
protected ProjectionFactory getProjectionFactory(ProjectionEvent e)
public void projectionChanged(ProjectionEvent e)
projectionChanged
in interface ProjectionListener
e
- ProjectionEventpublic void clearStacks(boolean clearBackStack, boolean clearForwardStack)
clearBackStack
- clear out the backward projection stack.clearForwardStack
- clear out the forward projection stack.protected ProjectionStack.ProjHolder pop()
protected ProjectionStack.ProjHolder backPop()
protected ProjectionStack.ProjHolder push(ProjectionStack.ProjHolder proj)
proj
- ProjHolder.public void fireStackStatus()
public void fireStackStatus(boolean enableBackButton, boolean enableForwardButton)
public void addProjectionStackTrigger(ProjectionStackTrigger trigger)
public void removeProjectionStackTrigger(ProjectionStackTrigger trigger)
public void findAndUndo(java.lang.Object someObj)
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class MapHandlerChild
public void findAndInit(java.lang.Object someObj)
findAndInit
in interface LightMapHandlerChild
findAndInit
in class MapHandlerChild
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details