Interface FontSizeInPixels

All Superinterfaces:
FontSize

public interface FontSizeInPixels extends FontSize
A size of the font in pixels.
Since:
7.20
  • Method Summary

    Modifier and Type
    Method
    Description
    of(int pixels)
    Returns the FontSizeInPixels instance for the given value.
    default int
    Returns the font size value measured in pixels.
  • Method Details

    • of

      static FontSizeInPixels of(int pixels)
      Returns the FontSizeInPixels instance for the given value.
      Parameters:
      pixels - the font size in pixels. Must not be negative
      Throws:
      IllegalArgumentException - if the value provided is negative.
    • value

      default int value()
      Returns the font size value measured in pixels.