Enum BorderPainter.CornerAngles

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BorderPainter.CornerAngles>
    Enclosing class:
    BorderPainter

    private static enum BorderPainter.CornerAngles
    extends java.lang.Enum<BorderPainter.CornerAngles>
    The four corners SB - Start-Before BE - Before-End EA - End-After AS - After-Start 0 --> x | v y SB BE *----* | | | | *----* AS EA
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double end
      Angle of the end of the corner arch relative to the x-axis in the counter-clockwise direction
      private double start
      Angle of the start of the corner arch relative to the x-axis in the counter-clockwise direction
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CornerAngles​(double start, double end)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BorderPainter.CornerAngles valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BorderPainter.CornerAngles[] values()
      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
    • Field Detail

      • start

        private final double start
        Angle of the start of the corner arch relative to the x-axis in the counter-clockwise direction
      • end

        private final double end
        Angle of the end of the corner arch relative to the x-axis in the counter-clockwise direction
    • Constructor Detail

      • CornerAngles

        private CornerAngles​(double start,
                             double end)
    • Method Detail

      • values

        public static BorderPainter.CornerAngles[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BorderPainter.CornerAngles c : BorderPainter.CornerAngles.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BorderPainter.CornerAngles valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null