Enum Class BorderStyle

java.lang.Object
java.lang.Enum<BorderStyle>
it.polimi.ingsw.gc14.View.TUI.BorderStyle
All Implemented Interfaces:
Serializable, Comparable<BorderStyle>, Constable

public enum BorderStyle extends Enum<BorderStyle>
Defines the available border styles used to render AsciiTable instances in the text-based user interface.

Each style stores the characters needed to draw table corners, horizontal and vertical lines, and junctions.

  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Rounded Unicode border style.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    private final String
    Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    BorderStyle(String tl, String tr, String bl, String br, String h, String v, String ml, String mr, String mt, String mb, String x, String sl, String sr, String sx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bl()
     
    br()
     
    h()
     
    mb()
     
    mt()
     
    sl()
     
    sr()
     
    sx()
     
    tl()
     
    tr()
     
    v()
     
    Returns the enum constant of this class with the specified name.
    static BorderStyle[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ROUNDED

      public static final BorderStyle ROUNDED
      Rounded Unicode border style.
  • Field Details

    • tl

      private final String tl
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • tr

      private final String tr
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • bl

      private final String bl
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • br

      private final String br
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • h

      private final String h
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • v

      private final String v
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • ml

      private final String ml
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • mr

      private final String mr
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • mt

      private final String mt
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • mb

      private final String mb
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • x

      private final String x
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • sl

      private final String sl
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • sr

      private final String sr
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
    • sx

      private final String sx
      Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
  • Constructor Details

  • Method Details

    • values

      public static BorderStyle[] 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 BorderStyle 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
    • tl

      public String tl()
      Returns:
      the top-left corner character.
    • tr

      public String tr()
      Returns:
      the top-right corner character.
    • bl

      public String bl()
      Returns:
      the bottom-left corner character.
    • br

      public String br()
      Returns:
      the bottom-right corner character.
    • h

      public String h()
      Returns:
      the horizontal line character.
    • v

      public String v()
      Returns:
      the vertical line character.
    • mt

      public String mt()
      Returns:
      the top-middle junction character.
    • mb

      public String mb()
      Returns:
      the bottom-middle junction character.
    • sl

      public String sl()
      Returns:
      the separator-left junction character.
    • sr

      public String sr()
      Returns:
      the separator-right junction character.
    • sx

      public String sx()
      Returns:
      the separator center junction character.