viewtify.ui.canvas
EnhancedCanvas
javafx.scene.canvas.CanvasNode
javafx.event.EventTargetPropertyAccessHelperStyleHelperEnhancedCanvas,EnhancedCanvasjavafx.css.StyleableVisibleHelperEnhancedCanvas
EnhancedCanvas()
ui()EnhancedCanvas
EnhancedCanvas |
bindSizeTo(javafx.scene.layout.Regionparent)EnhancedCanvas
javafx.scene.layout.Regionparent)javafx.scene.layout.Regionparent |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
bindSizeTo(doublewidth, javafx.scene.layout.Regionheight)EnhancedCanvas
doublewidth, javafx.scene.layout.Regionheight)doublewidth |
|
javafx.scene.layout.Regionheight |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
bindSizeTo(javafx.scene.layout.Regionwidth, doubleheight)EnhancedCanvas
javafx.scene.layout.Regionwidth, doubleheight)javafx.scene.layout.Regionwidth |
|
doubleheight |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
context(Consumerjavafx.scene.canvas.GraphicsContextcontext)EnhancedCanvas
Consumerjavafx.scene.canvas.GraphicsContextcontext)Consumercontext |
|
EnhancedCanvas |
Configure graphic context.
clear()EnhancedCanvas
EnhancedCanvas |
Chainable API. |
Clear all drawing figure on this canvas.
width(doublewidth)EnhancedCanvas
doublewidth)doublewidth |
A width to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
height(doubleheight)EnhancedCanvas
doubleheight)doubleheight |
A height to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
size(doublewidth, doubleheight)EnhancedCanvas
doublewidth, doubleheight)doublewidth |
A width to set. |
doubleheight |
A height to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
lineWidth(doublewidth)EnhancedCanvas
doublewidth)doublewidth |
A width to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
textBaseLine(javafx.geometry.VPosbaseLine)EnhancedCanvas
javafx.geometry.VPosbaseLine)javafx.geometry.VPosbaseLine |
A baseLine to set. |
EnhancedCanvas |
Chainable API. |
Set the text base line of this canvas.
fillColor(stylist.value.Colorcolor)EnhancedCanvas
stylist.value.Colorcolor)stylist.value.Colorcolor |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor(intred, intgreen, intblue)EnhancedCanvas
intred, intgreen, intblue)intred |
A red element. |
intgreen |
A green element. |
intblue |
A blue element. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor(intred, intgreen, intblue, doublealpha)EnhancedCanvas
intred, intgreen, intblue, doublealpha)intred |
A red element. |
intgreen |
A green element. |
intblue |
A blue element. |
doublealpha |
|
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor(javafx.scene.paint.Colorcolor)EnhancedCanvas
javafx.scene.paint.Colorcolor)javafx.scene.paint.Colorcolor |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
strokeColor(stylist.value.Colorcolor)EnhancedCanvas
stylist.value.Colorcolor)stylist.value.Colorcolor |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor(intred, intgreen, intblue)EnhancedCanvas
intred, intgreen, intblue)intred |
A red element. |
intgreen |
A green element. |
intblue |
A blue element. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor(intred, intgreen, intblue, doublealpha)EnhancedCanvas
intred, intgreen, intblue, doublealpha)intred |
A red element. |
intgreen |
A green element. |
intblue |
A blue element. |
doublealpha |
|
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor(javafx.scene.paint.Colorcolor)EnhancedCanvas
javafx.scene.paint.Colorcolor)javafx.scene.paint.Colorcolor |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
fontSize()double
double |
Get the current font size.
font(doublesize)EnhancedCanvas
doublesize)doublesize |
A font size to set. |
EnhancedCanvas |
Chainable API. |
Configure font size..
font(doublesize, javafx.scene.text.FontWeightweight)EnhancedCanvas
doublesize, javafx.scene.text.FontWeightweight)doublesize |
A font size to set. |
javafx.scene.text.FontWeightweight |
|
EnhancedCanvas |
Chainable API. |
Configure font size..
strokeText(Objecttext, doublex, doubley)EnhancedCanvas
Objecttext, doublex, doubley)Objecttext |
A text to draw. |
doublex |
X position. |
doubley |
Y position. |
EnhancedCanvas |
Chainable API. |
Stroke text on the specified position.
strokeText(Objecttext, doublex, doubley, doublewidth)EnhancedCanvas
Objecttext, doublex, doubley, doublewidth)Objecttext |
A text to draw. |
doublex |
X position. |
doubley |
Y position. |
doublewidth |
A text width. |
EnhancedCanvas |
Chainable API. |
Stroke text on the specified position.
fillText(Objecttext, doublex, doubley)EnhancedCanvas
Objecttext, doublex, doubley)Objecttext |
A text to draw. |
doublex |
X position. |
doubley |
Y position. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
fillText(Objecttext, doublex, doubley, doublewidth)EnhancedCanvas
Objecttext, doublex, doubley, doublewidth)Objecttext |
A text to draw. |
doublex |
X position. |
doubley |
Y position. |
doublewidth |
A text width. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
fillRect(doublex, doubley, doublewidth, doubleheight)EnhancedCanvas
doublex, doubley, doublewidth, doubleheight)doublex |
X position. |
doubley |
Y position. |
doublewidth |
A width. |
doubleheight |
A height. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
drawWhen(kiss.SignalTtiming, BiConsumerT, EnhancedCanvasdrawing)EnhancedCanvas
kiss.SignalTtiming, BiConsumerT, EnhancedCanvasdrawing)T |
|
kiss.Signaltiming |
|
BiConsumerdrawing |
|
EnhancedCanvas |
Chainable API. |
Draw your art when the specified timing.