Enum ChartStyle

java.lang.Object
java.lang.Enum<ChartStyle>
org.aesh.charts.common.ChartStyle
All Implemented Interfaces:
Serializable, Comparable<ChartStyle>

public enum ChartStyle extends Enum<ChartStyle>
Rendering style for terminal charts.

Controls which character sets are used for drawing:

  • ASCII — basic ASCII characters, works on all terminals
  • UNICODE — box drawing and block elements for cleaner appearance
  • BRAILLE — braille dot patterns for high-resolution line charts (2x4 sub-cell resolution)
  • Enum Constant Details

    • ASCII

      public static final ChartStyle ASCII
      ASCII characters only: |, -, +, #, *
    • UNICODE

      public static final ChartStyle UNICODE
      Unicode box drawing (│─┌┐└┘) and block elements (▁▂▃▄▅▆▇█)
    • BRAILLE

      public static final ChartStyle BRAILLE
      Unicode braille patterns (U+2800-U+28FF) for 2x4 sub-cell resolution
  • Method Details

    • values

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

      public static ChartStyle valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • verticalLine

      public char verticalLine()
      Vertical axis character.
    • horizontalLine

      public char horizontalLine()
      Horizontal axis character.
    • cornerBottomLeft

      public char cornerBottomLeft()
      Bottom-left corner.
    • cornerBottomRight

      public char cornerBottomRight()
      Bottom-right corner.
    • teeLeft

      public char teeLeft()
      T-junction pointing left (right axis).
    • teeRight

      public char teeRight()
      T-junction pointing right (left axis tick).
    • teeUp

      public char teeUp()
      T-junction pointing up (bottom axis tick).
    • cross

      public char cross()
      Cross junction.
    • dot

      public char dot()
      Dot character for plotting points.
    • horizontalSeparator

      public String horizontalSeparator()
      Horizontal separator for between stacked charts.