Skip to content

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.

ReturnsSignatureSummary
FontBoundsempty() factoryReturns bounds of zero width and zero height, the result of drawing an empty text.
FontBoundsof(double width, double height) factoryCreates bounds of width × height.

ReturnsSignatureSummary
doublegetWidth()Returns the width, in design pixels.
doublegetHeight()Returns the height, in design pixels.

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.

double getWidth()

Returns the width, in design pixels.

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

Report a problem with this page