Enum Class Stroke.LineCapShape

java.lang.Object
java.lang.Enum<Stroke.LineCapShape>
net.pl3x.map.core.markers.option.Stroke.LineCapShape
All Implemented Interfaces:
Serializable, Comparable<Stroke.LineCapShape>, Constable
Enclosing class:
Stroke

public static enum Stroke.LineCapShape extends Enum<Stroke.LineCapShape>
Represents the shape to be used at the corners of the stroke.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The butt value indicates that the stroke for each subpath does not extend beyond its two endpoints.
    The round value indicates that at the end of each subpath the stroke will be extended by a half circle with a diameter equal to the stroke width.
    The square value indicates that at the end of each subpath the stroke will be extended by a rectangle with a width equal to half the width of the stroke and a height equal to the width of the stroke.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • BUTT

      public static final Stroke.LineCapShape BUTT
      The butt value indicates that the stroke for each subpath does not extend beyond its two endpoints. On a zero length subpath, the path will not be rendered at all.
    • ROUND

      public static final Stroke.LineCapShape ROUND
      The round value indicates that at the end of each subpath the stroke will be extended by a half circle with a diameter equal to the stroke width. On a zero length subpath, the stroke consists of a full circle centered at the subpath's point.
    • SQUARE

      public static final Stroke.LineCapShape SQUARE
      The square value indicates that at the end of each subpath the stroke will be extended by a rectangle with a width equal to half the width of the stroke and a height equal to the width of the stroke. On a zero length subpath, the stroke consists of a square with its width equal to the stroke width, centered at the subpath's point.
  • Method Details

    • values

      public static Stroke.LineCapShape[] 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 Stroke.LineCapShape 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