Class DefaultWindowSkin

java.lang.Object
javafx.scene.control.SkinBase<Window>
jfxtras.internal.scene.control.skin.window.DefaultWindowSkin
All Implemented Interfaces:
javafx.scene.control.Skin<Window>

public class DefaultWindowSkin extends javafx.scene.control.SkinBase<Window>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
     
    private Window
     
    private boolean
     
    private double
     
    private javafx.animation.Timeline
     
    private double
     
    private double
     
    private double
     
    private double
     
    private double
     
    private double
     
    private boolean
     
    private boolean
     
    private boolean
     
    private boolean
     
    private ResizeMode
     
    private javafx.scene.layout.Pane
     
    private double
     
    private TitleBar
     
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    double
     
    double
     
    double
     
    private void
     
    private void
     
    protected boolean
     
    boolean
     
    protected void
    layoutChildren(double x, double y, double w, double h)
     
    void
    removeNode(javafx.scene.Node n)
     
    void
    setMaxScale(double maxScale)
     
    void
    setMinScale(double minScale)
     
    void
    setScaleIncrement(double scaleIncrement)
     
    void
    setZoomable(boolean zoomable)
     

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mouseX

      private double mouseX
    • mouseY

      private double mouseY
    • nodeX

      private double nodeX
    • nodeY

      private double nodeY
    • dragging

      private boolean dragging
    • zoomable

      private boolean zoomable
    • minScale

      private double minScale
    • maxScale

      private double maxScale
    • scaleIncrement

      private double scaleIncrement
    • resizeMode

      private ResizeMode resizeMode
    • RESIZE_TOP

      private boolean RESIZE_TOP
    • RESIZE_LEFT

      private boolean RESIZE_LEFT
    • RESIZE_BOTTOM

      private boolean RESIZE_BOTTOM
    • RESIZE_RIGHT

      private boolean RESIZE_RIGHT
    • titleBar

      private TitleBar titleBar
    • control

      private Window control
    • root

      private javafx.scene.layout.Pane root
    • contentScale

      private double contentScale
    • oldHeight

      private double oldHeight
    • minimizeTimeLine

      private javafx.animation.Timeline minimizeTimeLine
  • Constructor Details

    • DefaultWindowSkin

      public DefaultWindowSkin(Window w)
  • Method Details

    • init

      private void init()
    • initMouseEventHandlers

      private void initMouseEventHandlers()
    • isZoomable

      public boolean isZoomable()
      Returns:
      the zoomable
    • setZoomable

      public void setZoomable(boolean zoomable)
      Parameters:
      zoomable - the zoomable to set
    • isDragging

      protected boolean isDragging()
      Returns:
      the dragging
    • removeNode

      public void removeNode(javafx.scene.Node n)
    • getMinScale

      public double getMinScale()
      Returns:
      the minScale
    • setMinScale

      public void setMinScale(double minScale)
      Parameters:
      minScale - the minScale to set
    • getMaxScale

      public double getMaxScale()
      Returns:
      the maxScale
    • setMaxScale

      public void setMaxScale(double maxScale)
      Parameters:
      maxScale - the maxScale to set
    • getScaleIncrement

      public double getScaleIncrement()
      Returns:
      the scaleIncrement
    • setScaleIncrement

      public void setScaleIncrement(double scaleIncrement)
      Parameters:
      scaleIncrement - the scaleIncrement to set
    • layoutChildren

      protected void layoutChildren(double x, double y, double w, double h)
      Overrides:
      layoutChildren in class javafx.scene.control.SkinBase<Window>
    • computeMinWidth

      protected double computeMinWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class javafx.scene.control.SkinBase<Window>
    • computePrefWidth

      protected double computePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefWidth in class javafx.scene.control.SkinBase<Window>
    • computeMinHeight

      protected double computeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinHeight in class javafx.scene.control.SkinBase<Window>