Enum BasicStrokeParm.Cap

java.lang.Object
java.lang.Enum<BasicStrokeParm.Cap>
org.bzdev.obnaming.misc.BasicStrokeParm.Cap
All Implemented Interfaces:
Serializable, Comparable<BasicStrokeParm.Cap>
Enclosing class:
BasicStrokeParm

public static enum BasicStrokeParm.Cap extends Enum<BasicStrokeParm.Cap>
End cap class. This provides an enum corresponding to integer-valued constants defined by java.awt.BasicStroke. The constants define the type of decoration at the end of a line.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Ends enclosed subpaths and dash segments with no added decoration.
    Dash segments and enclosed subpaths end with a round decoration that has a radius equal to half the width of the pen.
    Ends enclosed subpaths and dash segments with a square projection that extends beyond the end of the segment by a distance equal to half of the line width.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the integer constant matching a Cap enum constant.
    Returns the enum constant of this type with the specified name.
    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

    • BUTT

      public static final BasicStrokeParm.Cap BUTT
      Ends enclosed subpaths and dash segments with no added decoration.
    • ROUND

      public static final BasicStrokeParm.Cap ROUND
      Dash segments and enclosed subpaths end with a round decoration that has a radius equal to half the width of the pen.
    • SQUARE

      public static final BasicStrokeParm.Cap SQUARE
      Ends enclosed subpaths and dash segments with a square projection that extends beyond the end of the segment by a distance equal to half of the line width.
  • Method Details

    • values

      public static BasicStrokeParm.Cap[] 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 BasicStrokeParm.Cap 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
    • getValue

      public int getValue()
      Get the integer constant matching a Cap enum constant.
      Returns:
      the integer constant defined by BasicStroke