FontBounds
final class FontBounds
Package: dev.joid.lib.font · Module: core · Source: FontBounds.java
The width and the height of a drawn or measured text, in design pixels.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
FontBounds | empty() factory | Returns bounds of zero width and zero height, the result of drawing an empty text. |
FontBounds | of(double width, double height) factory | Creates bounds of width × height. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
double | getWidth() | Returns the width, in design pixels. |
double | getHeight() | Returns the height, in design pixels. |
Creation details
Section titled “Creation details”FontBounds empty() factory
Returns bounds of zero width and zero height, the result of drawing an empty text.
FontBounds of(double width, double height) factory
Creates bounds of width × height.
Method details
Section titled “Method details”getWidth
Section titled “getWidth”double getWidth()
Returns the width, in design pixels.
getHeight
Section titled “getHeight”double getHeight()
Returns the height, in design pixels.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
