Enum Class FoliosAlign

java.lang.Object
java.lang.Enum<FoliosAlign>
net.ixdarklord.folios.api.client.page.FoliosAlign
All Implemented Interfaces:
Serializable, Comparable<FoliosAlign>, Constable

public enum FoliosAlign extends Enum<FoliosAlign>
Where something sits across a page: an element's text and what it shows, as "alignment" and "title_alignment" in JSON ("left", "center", "right" or "justify"). Justified text fills each line but a paragraph's last; anything that isn't text is centred for it.
  • Enum Constant Details

  • Method Details

    • values

      public static FoliosAlign[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FoliosAlign valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • named

      @Nullable public static @Nullable FoliosAlign named(String name)
      As JSON writes it; null for anything else.
    • offset

      public int offset(int room, int width)
      How far in from the left something width wide sits in room.