Package org.luwrain.graphical
Class ResizableCanvas
java.lang.Object
Canvas
org.luwrain.graphical.ResizableCanvas
public final class ResizableCanvas
extends Canvas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindWidthAndHeight
(StackPane pane) boolean
double
prefHeight
(double width) double
prefWidth
(double height)
-
Constructor Details
-
ResizableCanvas
public ResizableCanvas() -
ResizableCanvas
public ResizableCanvas(int width, int height)
-
-
Method Details
-
isResizable
public boolean isResizable() -
prefWidth
public double prefWidth(double height) -
prefHeight
public double prefHeight(double width) -
bindWidthAndHeight
public void bindWidthAndHeight(StackPane pane)
-