Module xaos.ui

Class 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 to PopupWindow.AnchorLocation.CONTENT_TOP_LEFT. Changing this value will result in a wrong popup location.

    Author:
    claudiorosati