com.ontimize.util.gis.client.gui.panels.actions
Class ShowScaleAction
java.lang.Object
com.ontimize.util.gis.client.gui.panels.actions.ShowScaleAction
- All Implemented Interfaces:
- IPopupMenuAction, java.awt.event.ActionListener, java.util.EventListener
public class ShowScaleAction
- extends java.lang.Object
- implements IPopupMenuAction
Popup menu panel action. Shows a scale bar generated automatically.
Code:
<com.ontimize.util.gis.client.gui.panels.components.PopupMenuItem
attr="POPUP_MENU_ITEM_SHOW_SCALE"
img="com/ontimize/util/gis/client/gui/images/environment.png"
actionClass="com.ontimize.util.gis.client.gui.panels.actions.ShowScaleAction"/>
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected void |
initScale()
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Set a parameter value for this action. |
void |
setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
Set a group of parameters stored in a hashtable in [name, value] pairs. |
void |
setParentItem(PopupMenuItem popupItem)
Set action parent item |
void |
setResourceBundle(java.util.ResourceBundle res)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
viewer
protected IGisViewer viewer
SCALE_HEIGHT
protected static java.lang.String SCALE_HEIGHT
SCALE_WIDTH
protected static java.lang.String SCALE_WIDTH
scale
protected ScalePanel scale
scaleVisible
protected boolean scaleVisible
ShowScaleAction
public ShowScaleAction()
ShowScaleAction
public ShowScaleAction(IGisViewer viewer)
initScale
protected void initScale()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
setParameter
public void setParameter(java.lang.String name,
java.lang.Object value)
- Description copied from interface:
IPopupMenuAction
- Set a parameter value for this action. The definition
of this parameter in the xml code is using the
FormAttribute
element
- Specified by:
setParameter in interface IPopupMenuAction
- Parameters:
name - Parameter namevalue - Parameter value
setParameters
public void setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
- Description copied from interface:
IPopupMenuAction
- Set a group of parameters stored in a hashtable in [name, value] pairs.
- Specified by:
setParameters in interface IPopupMenuAction
- Parameters:
params - Hashtable containing the popup menu action configuration parameters
setResourceBundle
public void setResourceBundle(java.util.ResourceBundle res)
- Specified by:
setResourceBundle in interface IPopupMenuAction
setParentItem
public void setParentItem(PopupMenuItem popupItem)
- Description copied from interface:
IPopupMenuAction
- Set action parent item
- Specified by:
setParentItem in interface IPopupMenuAction
- Parameters:
popupItem - Parent item