public abstract class AbstractMapPopupAction extends AbstractAction implements MapPopupAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
AbstractMapPopupAction()
Creates a new AbstractMapPopupAction object.
|
AbstractMapPopupAction(String name)
Creates a new AbstractMapPopupAction object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MapPopupAction other)
Comparison based on the
MapPopupAction.getPosition() operation. |
com.vividsolutions.jts.geom.Point |
getPoint()
Returns the
Point where the action was triggered. |
JMenu |
getSubmenu()
In some cases it's preferred to show a whole menu in the upcoming popup menu and not only one single menu item.
|
boolean |
isActive(boolean featuresSubjacent)
The action may decide whether it shall be shown in the upcoming popup menu or not.
|
void |
setPoint(com.vividsolutions.jts.geom.Point point)
Setter for the
Point where the action will be triggered. |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPositionaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledactionPerformedpublic AbstractMapPopupAction()
public AbstractMapPopupAction(String name)
name - DOCUMENT ME!public com.vividsolutions.jts.geom.Point getPoint()
MapPopupActionPoint where the action was triggered.getPoint in interface MapPopupActionpoint where the action was triggeredpublic void setPoint(com.vividsolutions.jts.geom.Point point)
MapPopupActionPoint where the action will be triggered.setPoint in interface MapPopupActionpoint - the point where the action will be triggeredpublic boolean isActive(boolean featuresSubjacent)
true if there is no subjacent feature,
false otherwise.isActive in interface MapPopupActionfeaturesSubjacent - true, if the action popup menu was triggered over a feature,
false otherwisetrue, if the action shall be displayed, false otherwisepublic int compareTo(MapPopupAction other)
MapPopupAction.getPosition() operation.compareTo in interface Comparable<MapPopupAction>other - the other object0 if the relative position to each other cannot be
determined/does not matter.public JMenu getSubmenu()
MapPopupActiongetSubmenu in interface MapPopupActionCopyright © 2012–2026 cismet GmbH. All rights reserved.