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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate Windowprivate booleanprivate doubleprivate javafx.animation.Timelineprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate booleanprivate booleanprivate booleanprivate booleanprivate ResizeModeprivate javafx.scene.layout.Paneprivate doubleprivate TitleBarprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) doubledoubledoubleprivate voidinit()private voidprotected booleanbooleanprotected voidlayoutChildren(double x, double y, double w, double h) voidremoveNode(javafx.scene.Node n) voidsetMaxScale(double maxScale) voidsetMinScale(double minScale) voidsetScaleIncrement(double scaleIncrement) voidsetZoomable(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:
layoutChildrenin classjavafx.scene.control.SkinBase<Window>
-
computeMinWidth
protected double computeMinWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classjavafx.scene.control.SkinBase<Window>
-
computePrefWidth
protected double computePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<Window>
-
computeMinHeight
protected double computeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classjavafx.scene.control.SkinBase<Window>
-