viewtify.ui.canvas
EnhancedCanvas
javafx.scene.canvas.Canvas
Node
javafx.event.EventTarget
PropertyAccessHelper
StyleHelper
EnhancedCanvas
,EnhancedCanvas
javafx.css.Styleable
VisibleHelper
EnhancedCanvas
EnhancedCanvas
()
ui
()
EnhancedCanvas
EnhancedCanvas |
bindSizeTo
(javafx.scene.layout.Region
parent
)
EnhancedCanvas
javafx.scene.layout.Region
parent
)javafx.scene.layout.Region parent |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
bindSizeTo
(double
width
, javafx.scene.layout.Region
height
)
EnhancedCanvas
double
width
, javafx.scene.layout.Region
height
)double width |
|
javafx.scene.layout.Region height |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
bindSizeTo
(javafx.scene.layout.Region
width
, double
height
)
EnhancedCanvas
javafx.scene.layout.Region
width
, double
height
)javafx.scene.layout.Region width |
|
double height |
|
EnhancedCanvas |
Bind the canvas size to the parent region.
context
(Consumerjavafx.scene.canvas.GraphicsContext
context
)
EnhancedCanvas
Consumerjavafx.scene.canvas.GraphicsContext
context
)Consumer context |
|
EnhancedCanvas |
Configure graphic context.
clear
()
EnhancedCanvas
EnhancedCanvas |
Chainable API. |
Clear all drawing figure on this canvas.
width
(double
width
)
EnhancedCanvas
double
width
)double width |
A width to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
height
(double
height
)
EnhancedCanvas
double
height
)double height |
A height to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
size
(double
width
, double
height
)
EnhancedCanvas
double
width
, double
height
)double width |
A width to set. |
double height |
A height to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
lineWidth
(double
width
)
EnhancedCanvas
double
width
)double width |
A width to set. |
EnhancedCanvas |
Chainable API. |
Set the width and height of this canvas.
textBaseLine
(javafx.geometry.VPos
baseLine
)
EnhancedCanvas
javafx.geometry.VPos
baseLine
)javafx.geometry.VPos baseLine |
A baseLine to set. |
EnhancedCanvas |
Chainable API. |
Set the text base line of this canvas.
fillColor
(stylist.value.Color
color
)
EnhancedCanvas
stylist.value.Color
color
)stylist.value.Color color |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor
(int
red
, int
green
, int
blue
)
EnhancedCanvas
int
red
, int
green
, int
blue
)int red |
A red element. |
int green |
A green element. |
int blue |
A blue element. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor
(int
red
, int
green
, int
blue
, double
alpha
)
EnhancedCanvas
int
red
, int
green
, int
blue
, double
alpha
)int red |
A red element. |
int green |
A green element. |
int blue |
A blue element. |
double alpha |
|
EnhancedCanvas |
Chainable API. |
Configure fill color.
fillColor
(javafx.scene.paint.Color
color
)
EnhancedCanvas
javafx.scene.paint.Color
color
)javafx.scene.paint.Color color |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure fill color.
strokeColor
(stylist.value.Color
color
)
EnhancedCanvas
stylist.value.Color
color
)stylist.value.Color color |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor
(int
red
, int
green
, int
blue
)
EnhancedCanvas
int
red
, int
green
, int
blue
)int red |
A red element. |
int green |
A green element. |
int blue |
A blue element. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor
(int
red
, int
green
, int
blue
, double
alpha
)
EnhancedCanvas
int
red
, int
green
, int
blue
, double
alpha
)int red |
A red element. |
int green |
A green element. |
int blue |
A blue element. |
double alpha |
|
EnhancedCanvas |
Chainable API. |
Configure stroke color.
strokeColor
(javafx.scene.paint.Color
color
)
EnhancedCanvas
javafx.scene.paint.Color
color
)javafx.scene.paint.Color color |
A color to set. |
EnhancedCanvas |
Chainable API. |
Configure stroke color.
fontSize
()
double
double |
Get the current font size.
font
(double
size
)
EnhancedCanvas
double
size
)double size |
A font size to set. |
EnhancedCanvas |
Chainable API. |
Configure font size..
font
(double
size
, javafx.scene.text.FontWeight
weight
)
EnhancedCanvas
double
size
, javafx.scene.text.FontWeight
weight
)double size |
A font size to set. |
javafx.scene.text.FontWeight weight |
|
EnhancedCanvas |
Chainable API. |
Configure font size..
strokeText
(Object
text
, double
x
, double
y
)
EnhancedCanvas
Object
text
, double
x
, double
y
)Object text |
A text to draw. |
double x |
X position. |
double y |
Y position. |
EnhancedCanvas |
Chainable API. |
Stroke text on the specified position.
strokeText
(Object
text
, double
x
, double
y
, double
width
)
EnhancedCanvas
Object
text
, double
x
, double
y
, double
width
)Object text |
A text to draw. |
double x |
X position. |
double y |
Y position. |
double width |
A text width. |
EnhancedCanvas |
Chainable API. |
Stroke text on the specified position.
fillText
(Object
text
, double
x
, double
y
)
EnhancedCanvas
Object
text
, double
x
, double
y
)Object text |
A text to draw. |
double x |
X position. |
double y |
Y position. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
fillText
(Object
text
, double
x
, double
y
, double
width
)
EnhancedCanvas
Object
text
, double
x
, double
y
, double
width
)Object text |
A text to draw. |
double x |
X position. |
double y |
Y position. |
double width |
A text width. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
fillRect
(double
x
, double
y
, double
width
, double
height
)
EnhancedCanvas
double
x
, double
y
, double
width
, double
height
)double x |
X position. |
double y |
Y position. |
double width |
A width. |
double height |
A height. |
EnhancedCanvas |
Chainable API. |
Fill text on the specified position.
drawWhen
(kiss.SignalT
timing
, BiConsumerT
, EnhancedCanvas
drawing
)
EnhancedCanvas
kiss.SignalT
timing
, BiConsumerT
, EnhancedCanvas
drawing
)T |
|
kiss.Signal timing |
|
BiConsumer drawing |
|
EnhancedCanvas |
Chainable API. |
Draw your art when the specified timing.