Class FocusBehavior

    • Field Detail

      • UNFOCUSED_STYLE

        public static final java.lang.String UNFOCUSED_STYLE
        Defines the default CSS styling for the InfiniteCanvas: no background, no border.
        See Also:
        Constant Field Values
      • FOCUSED_STYLE

        public static final java.lang.String FOCUSED_STYLE
        Defines the CSS styling that is used to highlight a focused viewer.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FocusBehavior

        public FocusBehavior()
    • Method Detail

      • addAnchoreds

        protected void addAnchoreds​(java.util.Collection<? extends IVisualPart<? extends javafx.scene.Node>> targets,
                                    java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> anchoreds)
        Description copied from class: AbstractBehavior
        Adds the given anchoreds as children to the root part and anchors them to the given target parts.
        Overrides:
        addAnchoreds in class AbstractBehavior
        Parameters:
        targets - The anchorages for the anchoreds.
        anchoreds - The anchored (feedback or handle) parts.
      • addViewerFocusedFeedback

        protected void addViewerFocusedFeedback()
        Adds viewer focused feedback.
      • applyFocusToVisual

        protected void applyFocusToVisual()
        Transfers the keyboard focus to JavaFX, i.e. calls Node.requestFocus() on the visual of the focus part, or on the root visual if no part is focused.
      • refreshFocusFeedback

        protected void refreshFocusFeedback()
        Refreshes focus feedback, i.e. adds or removes feedback.
      • removeViewerFocusedFeedback

        protected void removeViewerFocusedFeedback()
        Removes viewer focused feedback.