Overview
Interface for rectangular elements which can be sized by their height and width.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
sizeToFitCanvas | Boolean |
If true this element will be sized to the dimensions of its containing canvas |
Protected |
Inherited Attributes
javafx.ui.canvas.CanvasElement
public | name | type |
---|---|---|
parentCanvasElement | CanvasElement |
The containing element of this element. |
Function Summary
- protected abstract onSizeToFitCanvas(value: Boolean, ) : Void
- public abstract setSize(width: Number, height: Number, ) : Void
-
Sets the size of this element to (width, height).
Inherited Functions
javafx.ui.canvas.CanvasElement
- public getCanvas() : Canvas
-
Convenience method to obtain the containing canvas.
- public bound getContainer() : Container
-
Returns the canvas element that contains this element
- public bound hasParent() : Boolean
- public lower() : Void
-
raise this element below its previous sibling
- protected onSetCanvas(canvas: Canvas, ) : Void
- public raise() : Void
-
raise this element above its next sibling
- public toBack() : Void
-
move this element before all of its previous siblings
- public toFront() : Void
-
move this element after all of its following siblings
Attributes
public sizeToFitCanvas: Boolean
If true this element will be sized to the dimensions of its containing canvas
Functions
public abstract setSize(width: Number, height: Number, ):Void
-
Parameters
- width
- height
Sets the size of this element to (width, height).