Class JPTextBoxLightMaps

java.lang.Object
com.io7m.jptbox.core.JPTextBoxLightMaps

public final class JPTextBoxLightMaps extends Object
Maps used to merge characters when drawing boxes.
  • Field Details

    • EXISTS_TOP_RIGHT_CORNER

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_TOP_RIGHT_CORNER
      Mappings from ┐
    • EXISTS_TOP_LEFT_CORNER

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_TOP_LEFT_CORNER
      Mappings from ┌
    • EXISTS_BOTTOM_LEFT_CORNER

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_BOTTOM_LEFT_CORNER
      Mappings from └
    • EXISTS_BOTTOM_RIGHT_CORNER

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_BOTTOM_RIGHT_CORNER
      Mappings from ┘
    • EXISTS_HORIZONTAL

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_HORIZONTAL
      Mappings from ─
    • EXISTS_VERTICAL

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_VERTICAL
      Mappings from │
    • EXISTS_CROSS

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_CROSS
      Mappings from ┼
    • EXISTS_JUNCTION_LEFT

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_JUNCTION_LEFT
      Mappings from ┤
    • EXISTS_JUNCTION_RIGHT

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_JUNCTION_RIGHT
      Mappings from ├
    • EXISTS_JUNCTION_DOWN

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_JUNCTION_DOWN
      Mappings from ┬
    • EXISTS_JUNCTION_UP

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap EXISTS_JUNCTION_UP
      Mappings from ┴
  • Method Details

    • mergeCharacter

      public static int mergeCharacter(int existing_char, int new_char)
      Merge the new character with the existing character.
      Parameters:
      existing_char - The existing character
      new_char - The new character
      Returns:
      A character representing the merge