Package org.apache.sis.gui.map
Class MapMenu
Object
Window
PopupWindow
PopupControl
ContextMenu
MapMenu
- All Implemented Interfaces:
- Styleable,- EventTarget,- Skinnable
public class MapMenu
extends ContextMenu
A 
ContextMenu that can be shown in a MapCanvas.
 On construction, this menu is initially empty.
 Items can be added by the following method calls:
 - addReferenceSystems(RecentReferenceSystems):- Reference system with some items from EPSG database.
- Centered projection with the list of PositionableProjectionitems.
 
- Since:
- 1.1
Defined in the sis-javafx module
- 
Property SummaryProperties inherited from class ContextMenuonActionProperties inherited from class PopupControlid, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, styleProperties inherited from class PopupWindowanchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindowProperties inherited from class WindoweventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
- 
Nested Class SummaryNested classes/interfaces inherited from class PopupControlPopupControl.CSSBridgeNested classes/interfaces inherited from class PopupWindowPopupWindow.AnchorLocation
- 
Field SummaryFields inherited from class PopupControlbridge, USE_COMPUTED_SIZE, USE_PREF_SIZE
- 
Constructor SummaryConstructorsConstructorDescriptionMapMenu(MapCanvas canvas) Creates an initially empty menu for the given canvas.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCopyOptions(StatusBar format) Adds a menu item for copying coordinates at the mouse position where right click occurred.voidaddReferenceSystems(RecentReferenceSystems preferences) Adds menu items for CRS selection.Returns an observable value for showing the currently selected CRS as a text.Methods inherited from class ContextMenucreateDefaultSkin, getItems, getOnAction, hide, onActionProperty, setOnAction, show, showMethods inherited from class PopupControlgetClassCssMetaData, getCssMetaData, getId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getPseudoClassStates, getSkin, getStyle, getStyleableNode, getStyleableParent, getStyleClass, getTypeSelector, idProperty, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, pseudoClassStateChanged, setId, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setStyle, skinProperty, stylePropertyMethods inherited from class PopupWindowanchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, showMethods inherited from class WindowaddEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
- 
Constructor Details- 
MapMenuCreates an initially empty menu for the given canvas.- Parameters:
- canvas- the canvas for which to create menus.
 
 
- 
- 
Method Details- 
addReferenceSystemsAdds menu items for CRS selection. The menu items are in two groups:- Reference system with some items from EPSG database.
- Centered projection with the list of PositionableProjectionitems.
 - Parameters:
- preferences- handler of menu items for selecting a CRS from a list of EPSG codes. Often built from user preferences.
- Throws:
- IllegalStateException- if this method has already been invoked.
- See Also:
 
- 
addCopyOptionsAdds a menu item for copying coordinates at the mouse position where right click occurred. The coordinate reference system is determined by the status bar; it is not necessarily the coordinate reference system of the map.- Parameters:
- format- status bar determining the CRS and format to use for coordinate values.
 
- 
selectedReferenceSystemReturns an observable value for showing the currently selected CRS as a text. The value is absent ifaddReferenceSystems(RecentReferenceSystems)has never been invoked.- Returns:
- the currently selected CRS as a text.
- See Also:
 
 
-