Enum TestDraw.MODE

    • Enum Constant Detail

      • POINTS

        public static final TestDraw.MODE POINTS
        Draw each point.
      • LINES

        public static final TestDraw.MODE LINES
        Draw lines for each pair of points. P1-P2, P3-P4, P5-P6 ...
      • RECTANGLES

        public static final TestDraw.MODE RECTANGLES
        Draw rectangles for each pair of points. P1-P2, P3-P4, P5-P6 ...
    • Method Detail

      • values

        public static TestDraw.MODE[] 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 (TestDraw.MODE c : TestDraw.MODE.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TestDraw.MODE 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