Class PageSize

java.lang.Object
net.ixdarklord.folios.internal.client.PageSize

public final class PageSize extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    The most a page grows, across and down.
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    How many GUI pixels a book pixel takes, as pixels().
    static float
    How many times the default page the pages are now: 1 at the Auto GUI scale or above.
    static float
    As factor() for a handheld book, whose pages stay the same size in the world and print smaller as they grow: no more than keeps its print at HANDHELD_PRINT of the window's pixels a pixel of the page, so it doesn't get too small to read (and a small window keeps the default page).
    static int
    height(float factor)
     
    static int
    How many of the window's pixels a book pixel takes at a GUI scale smaller than Auto: one more than the GUI's own, so what is on the pages is drawn larger than the rest of the GUI (still a whole number, so the pixel font stays sharp), and the pages grow by the rest of what Auto would draw.
    static int
    width(float factor)
    A page factor times the default, in whole pixels.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MOST

      public static final float MOST
      The most a page grows, across and down.
      See Also:
  • Method Details

    • factor

      public static float factor()
      How many times the default page the pages are now: 1 at the Auto GUI scale or above.
    • pixels

      public static int pixels()
      How many of the window's pixels a book pixel takes at a GUI scale smaller than Auto: one more than the GUI's own, so what is on the pages is drawn larger than the rest of the GUI (still a whole number, so the pixel font stays sharp), and the pages grow by the rest of what Auto would draw. No more than Auto's, and enough that the pages needn't grow past MOST.
    • drawn

      public static float drawn()
      How many GUI pixels a book pixel takes, as pixels().
    • handheldFactor

      public static float handheldFactor()
      As factor() for a handheld book, whose pages stay the same size in the world and print smaller as they grow: no more than keeps its print at HANDHELD_PRINT of the window's pixels a pixel of the page, so it doesn't get too small to read (and a small window keeps the default page).
    • width

      public static int width(float factor)
      A page factor times the default, in whole pixels.
    • height

      public static int height(float factor)