Enum Class Graphics.StrokeCap

java.lang.Object
java.lang.Enum<Graphics.StrokeCap>
cit244.api.Graphics.StrokeCap
All Implemented Interfaces:
Serializable, Comparable<Graphics.StrokeCap>, Constable
Enclosing interface:
Graphics

public static enum Graphics.StrokeCap extends Enum<Graphics.StrokeCap>
Line end-cap style used for stroked lines and shape outlines.

This setting is most noticeable when using thicker strokes for waveform bands, playheads, and bar charts.

  • ROUND - rounded ends
  • SQUARE - squared ends (flush with the endpoint)
  • PROJECT - squared ends that extend past the endpoint by half the stroke width
  • Enum Constant Details

    • ROUND

      public static final Graphics.StrokeCap ROUND
      Rounded line endings.
    • SQUARE

      public static final Graphics.StrokeCap SQUARE
      Squared line endings (flush). [default]
    • PROJECT

      public static final Graphics.StrokeCap PROJECT
      Squared line endings that extend past endpoints.
  • Method Details

    • values

      public static Graphics.StrokeCap[] 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 Graphics.StrokeCap 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