x, y Location Used in JavafX GraphicsContext strokeText()

Viewed 13

When I hover over JavaFX's GraphicsContext.strokeText() method the documentation states:

"Draws the given string of text at position x, y ..."

If I look at the parameters it states:

"x - position on the x axis. y - position on the y axis."

OK. But would that be the centre of the text, the top left corner, ... or somewhere else?

I find the documentation regarding strokeText() ambiguous to precisely position a string of text.

Does anyone know of a JavaFX documentation that clearly states where the (x,y) are?

0 Answers
Related