Enum LineStyle

java.lang.Object
java.lang.Enum<LineStyle>
io.guise.framework.style.LineStyle
All Implemented Interfaces:
com.globalmentor.lex.Identifier, com.globalmentor.lex.Token, Serializable, Comparable<LineStyle>

public enum LineStyle extends Enum<LineStyle> implements com.globalmentor.lex.Identifier
The style of a line, such as used for a border or divider.
Author:
Garret Wilson
See Also:
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A series of dashes.
    Alternating dots and dashes.
    Two dots and a dash.
    A series of dots.
    Two parallel solid lines with some spaces between them, the lines together with the space equalling any line width specified.
    Effect emulating carving on a canvas; typically achieved by using two colors slightly lighter and darker than the line color.
    Effect simulating a sunken canvas.
    Effect simulating a line coming out of the canvas.
    A single line segment.
    A wavy line.
  • Method Summary

    Modifier and Type
    Method
    Description
    static LineStyle
    Returns the enum constant of this type with the specified name.
    static LineStyle[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

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

    • DOTTED

      public static final LineStyle DOTTED
      A series of dots.
    • DASHED

      public static final LineStyle DASHED
      A series of dashes.
    • SOLID

      public static final LineStyle SOLID
      A single line segment.
    • DOUBLE

      public static final LineStyle DOUBLE
      Two parallel solid lines with some spaces between them, the lines together with the space equalling any line width specified.
    • DOT_DASH

      public static final LineStyle DOT_DASH
      Alternating dots and dashes.
    • DOT_DOT_DASH

      public static final LineStyle DOT_DOT_DASH
      Two dots and a dash.
    • WAVE

      public static final LineStyle WAVE
      A wavy line.
    • GROOVE

      public static final LineStyle GROOVE
      Effect emulating carving on a canvas; typically achieved by using two colors slightly lighter and darker than the line color.
    • RIDGE

      public static final LineStyle RIDGE
      Effect simulating a line coming out of the canvas.
    • INSET

      public static final LineStyle INSET
      Effect simulating a sunken canvas.
  • Method Details

    • values

      public static LineStyle[] 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 LineStyle 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