Enum VertexShape

    • Enum Constant Detail

      • BOX

        public static final VertexShape BOX
        a square box.
      • BOX_FILLED

        public static final VertexShape BOX_FILLED
        a filled square box.
      • CIRCLE

        public static final VertexShape CIRCLE
        a circle.

        public static final VertexShape CIRCLE_FILLED
        a filled circle.
      • TRIANGLE

        public static final VertexShape TRIANGLE
        a triangle.

        public static final VertexShape TRIANGLE_FILLED
        a filled triangle.
    • Method Detail

      • values

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

        public static VertexShape 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • plot

        public void plot​(Graphics2D g,
                         int posX,
                         int posY,
                         int extent)
        Plots the shape at the specified position.
        g - the graphics context
        posX - the x position
        posY - the y position
        extent - the size of the marker