java.lang.Object
javafx.scene.control.SkinBase<Window>
jfxtras.internal.scene.control.skin.window.DefaultWindowSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<Window>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
init()
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
-
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
-
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
-
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
-
-
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 classjavafx.scene.control.SkinBase<Window>
-
computeMinWidth
protected double computeMinWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidth
in classjavafx.scene.control.SkinBase<Window>
-
computePrefWidth
protected double computePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidth
in classjavafx.scene.control.SkinBase<Window>
-
computeMinHeight
protected double computeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeight
in classjavafx.scene.control.SkinBase<Window>
-