- java.lang.Object
-
- javafx.stage.Window
-
- javafx.stage.PopupWindow
-
- javafx.scene.control.PopupControl
-
- eu.ess.xaos.ui.control.NavigatorPopup
-
- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
public class NavigatorPopup extends PopupControl
A popup window that shows 9 buttons to perform the following operation: zoom in/out/100%, pan up/right/down/left, forward/backward.The implementation of the actions associated with the popup is left to the client code, that must add the corresponding callbacks.
Typical usage is the following:
NavigatorPopup popup = new NavigatorPopup(); popup.setOn... ... popup.setOn... popup.show(ownerNode, cursorScreenX, cursorScreenY);
Note:
PopupWindow.anchorLocationProperty()
is set toPopupWindow.AnchorLocation.CONTENT_TOP_LEFT
. Changing this value will result in a wrong popup location.- Author:
- claudiorosati
-
-
Property Summary
-
Properties inherited from class javafx.scene.control.PopupControl
id, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, style
-
Properties inherited from class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindow
-
Properties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.scene.control.PopupControl
PopupControl.CSSBridge
-
Nested classes/interfaces inherited from class javafx.stage.PopupWindow
PopupWindow.AnchorLocation
-
-
Field Summary
-
Fields inherited from class javafx.scene.control.PopupControl
bridge, USE_COMPUTED_SIZE, USE_PREF_SIZE
-
-
Constructor Summary
Constructors Constructor Description NavigatorPopup()
Create a newNavigatorPopup
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventHandler<Event>
getOnPanDown()
Gets the value of the property onPanDown.EventHandler<Event>
getOnPanLeft()
Gets the value of the property onPanLeft.EventHandler<Event>
getOnPanRight()
Gets the value of the property onPanRight.EventHandler<Event>
getOnPanUp()
Gets the value of the property onPanUp.EventHandler<Event>
getOnRedo()
Gets the value of the property onRedo.EventHandler<Event>
getOnUndo()
Gets the value of the property onUndo.EventHandler<Event>
getOnZoomIn()
Gets the value of the property onZoomIn.EventHandler<Event>
getOnZoomOut()
Gets the value of the property onZoomOut.EventHandler<Event>
getOnZoomToOne()
Gets the value of the property onZoomToOne.boolean
isPanDownDisabled()
Gets the value of the property panDownDisabled.boolean
isPanLeftDisabled()
Gets the value of the property panLeftDisabled.boolean
isPanRightDisabled()
Gets the value of the property panRightDisabled.boolean
isPanUpDisabled()
Gets the value of the property panUpDisabled.boolean
isRedoDisabled()
Gets the value of the property redoDisabled.boolean
isUndoDisabled()
Gets the value of the property undoDisabled.boolean
isZoomInDisabled()
Gets the value of the property zoomInDisabled.boolean
isZoomOutDisabled()
Gets the value of the property zoomOutDisabled.boolean
isZoomToOneDisabled()
Gets the value of the property zoomToOneDisabled.ObjectProperty<EventHandler<Event>>
onPanDownProperty()
ObjectProperty<EventHandler<Event>>
onPanLeftProperty()
ObjectProperty<EventHandler<Event>>
onPanRightProperty()
ObjectProperty<EventHandler<Event>>
onPanUpProperty()
ObjectProperty<EventHandler<Event>>
onRedoProperty()
ObjectProperty<EventHandler<Event>>
onUndoProperty()
ObjectProperty<EventHandler<Event>>
onZoomInProperty()
ObjectProperty<EventHandler<Event>>
onZoomOutProperty()
ObjectProperty<EventHandler<Event>>
onZoomToOneProperty()
BooleanProperty
panDownDisabledProperty()
BooleanProperty
panLeftDisabledProperty()
BooleanProperty
panRightDisabledProperty()
BooleanProperty
panUpDisabledProperty()
BooleanProperty
redoDisabledProperty()
void
setOnPanDown(EventHandler<Event> value)
Sets the value of the property onPanDown.void
setOnPanLeft(EventHandler<Event> value)
Sets the value of the property onPanLeft.void
setOnPanRight(EventHandler<Event> value)
Sets the value of the property onPanRight.void
setOnPanUp(EventHandler<Event> value)
Sets the value of the property onPanUp.void
setOnRedo(EventHandler<Event> value)
Sets the value of the property onRedo.void
setOnUndo(EventHandler<Event> value)
Sets the value of the property onUndo.void
setOnZoomIn(EventHandler<Event> value)
Sets the value of the property onZoomIn.void
setOnZoomOut(EventHandler<Event> value)
Sets the value of the property onZoomOut.void
setOnZoomToOne(EventHandler<Event> value)
Sets the value of the property onZoomToOne.void
setPanDownDisabled(boolean disabled)
Sets the value of the property panDownDisabled.void
setPanLeftDisabled(boolean disabled)
Sets the value of the property panLeftDisabled.void
setPanRightDisabled(boolean disabled)
Sets the value of the property panRightDisabled.void
setPanUpDisabled(boolean disabled)
Sets the value of the property panUpDisabled.void
setRedoDisabled(boolean disabled)
Sets the value of the property redoDisabled.void
setUndoDisabled(boolean disabled)
Sets the value of the property undoDisabled.void
setZoomInDisabled(boolean disabled)
Sets the value of the property zoomInDisabled.void
setZoomOutDisabled(boolean disabled)
Sets the value of the property zoomOutDisabled.void
setZoomToOneDisabled(boolean disabled)
Sets the value of the property zoomToOneDisabled.void
show(Node ownerNode, double anchorX, double anchorY)
void
show(Window ownerWindow, double anchorX, double anchorY)
BooleanProperty
undoDisabledProperty()
BooleanProperty
zoomInDisabledProperty()
BooleanProperty
zoomOutDisabledProperty()
BooleanProperty
zoomToOneDisabledProperty()
-
Methods inherited from class javafx.scene.control.PopupControl
createDefaultSkin, getClassCssMetaData, 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, styleProperty
-
Methods inherited from class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show
-
Methods inherited from class javafx.stage.Window
addEventFilter, 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
-
-
-
-
Property Detail
-
onPanDown
public final ObjectProperty<EventHandler<Event>> onPanDownProperty
- See Also:
getOnPanDown()
,setOnPanDown(EventHandler)
-
onPanLeft
public final ObjectProperty<EventHandler<Event>> onPanLeftProperty
- See Also:
getOnPanLeft()
,setOnPanLeft(EventHandler)
-
onPanRight
public final ObjectProperty<EventHandler<Event>> onPanRightProperty
- See Also:
getOnPanRight()
,setOnPanRight(EventHandler)
-
onPanUp
public final ObjectProperty<EventHandler<Event>> onPanUpProperty
- See Also:
getOnPanUp()
,setOnPanUp(EventHandler)
-
onRedo
public final ObjectProperty<EventHandler<Event>> onRedoProperty
- See Also:
getOnRedo()
,setOnRedo(EventHandler)
-
onUndo
public final ObjectProperty<EventHandler<Event>> onUndoProperty
- See Also:
getOnUndo()
,setOnUndo(EventHandler)
-
onZoomIn
public final ObjectProperty<EventHandler<Event>> onZoomInProperty
- See Also:
getOnZoomIn()
,setOnZoomIn(EventHandler)
-
onZoomOut
public final ObjectProperty<EventHandler<Event>> onZoomOutProperty
- See Also:
getOnZoomOut()
,setOnZoomOut(EventHandler)
-
onZoomToOne
public final ObjectProperty<EventHandler<Event>> onZoomToOneProperty
- See Also:
getOnZoomToOne()
,setOnZoomToOne(EventHandler)
-
panDownDisabled
public final BooleanProperty panDownDisabledProperty
- See Also:
isPanDownDisabled()
,setPanDownDisabled(boolean)
-
panLeftDisabled
public final BooleanProperty panLeftDisabledProperty
- See Also:
isPanLeftDisabled()
,setPanLeftDisabled(boolean)
-
panRightDisabled
public final BooleanProperty panRightDisabledProperty
- See Also:
isPanRightDisabled()
,setPanRightDisabled(boolean)
-
panUpDisabled
public final BooleanProperty panUpDisabledProperty
- See Also:
isPanUpDisabled()
,setPanUpDisabled(boolean)
-
redoDisabled
public final BooleanProperty redoDisabledProperty
- See Also:
isRedoDisabled()
,setRedoDisabled(boolean)
-
undoDisabled
public final BooleanProperty undoDisabledProperty
- See Also:
isUndoDisabled()
,setUndoDisabled(boolean)
-
zoomInDisabled
public final BooleanProperty zoomInDisabledProperty
- See Also:
isZoomInDisabled()
,setZoomInDisabled(boolean)
-
zoomOutDisabled
public final BooleanProperty zoomOutDisabledProperty
- See Also:
isZoomOutDisabled()
,setZoomOutDisabled(boolean)
-
zoomToOneDisabled
public final BooleanProperty zoomToOneDisabledProperty
-
-
Constructor Detail
-
NavigatorPopup
public NavigatorPopup()
Create a newNavigatorPopup
instance.
-
-
Method Detail
-
onPanDownProperty
public final ObjectProperty<EventHandler<Event>> onPanDownProperty()
- See Also:
getOnPanDown()
,setOnPanDown(EventHandler)
-
getOnPanDown
public final EventHandler<Event> getOnPanDown()
Gets the value of the property onPanDown.- Property description:
-
setOnPanDown
public final void setOnPanDown(EventHandler<Event> value)
Sets the value of the property onPanDown.- Property description:
-
onPanLeftProperty
public final ObjectProperty<EventHandler<Event>> onPanLeftProperty()
- See Also:
getOnPanLeft()
,setOnPanLeft(EventHandler)
-
getOnPanLeft
public final EventHandler<Event> getOnPanLeft()
Gets the value of the property onPanLeft.- Property description:
-
setOnPanLeft
public final void setOnPanLeft(EventHandler<Event> value)
Sets the value of the property onPanLeft.- Property description:
-
onPanRightProperty
public final ObjectProperty<EventHandler<Event>> onPanRightProperty()
- See Also:
getOnPanRight()
,setOnPanRight(EventHandler)
-
getOnPanRight
public final EventHandler<Event> getOnPanRight()
Gets the value of the property onPanRight.- Property description:
-
setOnPanRight
public final void setOnPanRight(EventHandler<Event> value)
Sets the value of the property onPanRight.- Property description:
-
onPanUpProperty
public final ObjectProperty<EventHandler<Event>> onPanUpProperty()
- See Also:
getOnPanUp()
,setOnPanUp(EventHandler)
-
getOnPanUp
public final EventHandler<Event> getOnPanUp()
Gets the value of the property onPanUp.- Property description:
-
setOnPanUp
public final void setOnPanUp(EventHandler<Event> value)
Sets the value of the property onPanUp.- Property description:
-
onRedoProperty
public final ObjectProperty<EventHandler<Event>> onRedoProperty()
- See Also:
getOnRedo()
,setOnRedo(EventHandler)
-
getOnRedo
public final EventHandler<Event> getOnRedo()
Gets the value of the property onRedo.- Property description:
-
setOnRedo
public final void setOnRedo(EventHandler<Event> value)
Sets the value of the property onRedo.- Property description:
-
onUndoProperty
public final ObjectProperty<EventHandler<Event>> onUndoProperty()
- See Also:
getOnUndo()
,setOnUndo(EventHandler)
-
getOnUndo
public final EventHandler<Event> getOnUndo()
Gets the value of the property onUndo.- Property description:
-
setOnUndo
public final void setOnUndo(EventHandler<Event> value)
Sets the value of the property onUndo.- Property description:
-
onZoomInProperty
public final ObjectProperty<EventHandler<Event>> onZoomInProperty()
- See Also:
getOnZoomIn()
,setOnZoomIn(EventHandler)
-
getOnZoomIn
public final EventHandler<Event> getOnZoomIn()
Gets the value of the property onZoomIn.- Property description:
-
setOnZoomIn
public final void setOnZoomIn(EventHandler<Event> value)
Sets the value of the property onZoomIn.- Property description:
-
onZoomOutProperty
public final ObjectProperty<EventHandler<Event>> onZoomOutProperty()
- See Also:
getOnZoomOut()
,setOnZoomOut(EventHandler)
-
getOnZoomOut
public final EventHandler<Event> getOnZoomOut()
Gets the value of the property onZoomOut.- Property description:
-
setOnZoomOut
public final void setOnZoomOut(EventHandler<Event> value)
Sets the value of the property onZoomOut.- Property description:
-
onZoomToOneProperty
public final ObjectProperty<EventHandler<Event>> onZoomToOneProperty()
- See Also:
getOnZoomToOne()
,setOnZoomToOne(EventHandler)
-
getOnZoomToOne
public final EventHandler<Event> getOnZoomToOne()
Gets the value of the property onZoomToOne.- Property description:
-
setOnZoomToOne
public final void setOnZoomToOne(EventHandler<Event> value)
Sets the value of the property onZoomToOne.- Property description:
-
panDownDisabledProperty
public final BooleanProperty panDownDisabledProperty()
- See Also:
isPanDownDisabled()
,setPanDownDisabled(boolean)
-
isPanDownDisabled
public final boolean isPanDownDisabled()
Gets the value of the property panDownDisabled.- Property description:
-
setPanDownDisabled
public final void setPanDownDisabled(boolean disabled)
Sets the value of the property panDownDisabled.- Property description:
-
panLeftDisabledProperty
public final BooleanProperty panLeftDisabledProperty()
- See Also:
isPanLeftDisabled()
,setPanLeftDisabled(boolean)
-
isPanLeftDisabled
public final boolean isPanLeftDisabled()
Gets the value of the property panLeftDisabled.- Property description:
-
setPanLeftDisabled
public final void setPanLeftDisabled(boolean disabled)
Sets the value of the property panLeftDisabled.- Property description:
-
panRightDisabledProperty
public final BooleanProperty panRightDisabledProperty()
- See Also:
isPanRightDisabled()
,setPanRightDisabled(boolean)
-
isPanRightDisabled
public final boolean isPanRightDisabled()
Gets the value of the property panRightDisabled.- Property description:
-
setPanRightDisabled
public final void setPanRightDisabled(boolean disabled)
Sets the value of the property panRightDisabled.- Property description:
-
panUpDisabledProperty
public final BooleanProperty panUpDisabledProperty()
- See Also:
isPanUpDisabled()
,setPanUpDisabled(boolean)
-
isPanUpDisabled
public final boolean isPanUpDisabled()
Gets the value of the property panUpDisabled.- Property description:
-
setPanUpDisabled
public final void setPanUpDisabled(boolean disabled)
Sets the value of the property panUpDisabled.- Property description:
-
redoDisabledProperty
public final BooleanProperty redoDisabledProperty()
- See Also:
isRedoDisabled()
,setRedoDisabled(boolean)
-
isRedoDisabled
public final boolean isRedoDisabled()
Gets the value of the property redoDisabled.- Property description:
-
setRedoDisabled
public final void setRedoDisabled(boolean disabled)
Sets the value of the property redoDisabled.- Property description:
-
undoDisabledProperty
public final BooleanProperty undoDisabledProperty()
- See Also:
isUndoDisabled()
,setUndoDisabled(boolean)
-
isUndoDisabled
public final boolean isUndoDisabled()
Gets the value of the property undoDisabled.- Property description:
-
setUndoDisabled
public final void setUndoDisabled(boolean disabled)
Sets the value of the property undoDisabled.- Property description:
-
zoomInDisabledProperty
public final BooleanProperty zoomInDisabledProperty()
- See Also:
isZoomInDisabled()
,setZoomInDisabled(boolean)
-
isZoomInDisabled
public final boolean isZoomInDisabled()
Gets the value of the property zoomInDisabled.- Property description:
-
setZoomInDisabled
public final void setZoomInDisabled(boolean disabled)
Sets the value of the property zoomInDisabled.- Property description:
-
zoomOutDisabledProperty
public final BooleanProperty zoomOutDisabledProperty()
- See Also:
isZoomOutDisabled()
,setZoomOutDisabled(boolean)
-
isZoomOutDisabled
public final boolean isZoomOutDisabled()
Gets the value of the property zoomOutDisabled.- Property description:
-
setZoomOutDisabled
public final void setZoomOutDisabled(boolean disabled)
Sets the value of the property zoomOutDisabled.- Property description:
-
zoomToOneDisabledProperty
public final BooleanProperty zoomToOneDisabledProperty()
-
isZoomToOneDisabled
public final boolean isZoomToOneDisabled()
Gets the value of the property zoomToOneDisabled.- Property description:
-
setZoomToOneDisabled
public final void setZoomToOneDisabled(boolean disabled)
Sets the value of the property zoomToOneDisabled.- Property description:
-
show
public void show(Window ownerWindow, double anchorX, double anchorY)
- Overrides:
show
in classPopupWindow
-
show
public void show(Node ownerNode, double anchorX, double anchorY)
- Overrides:
show
in classPopupWindow
-
-