Enum Class IArea.Shape

java.lang.Object
java.lang.Enum<IArea.Shape>
org.zkoss.stateless.sul.IArea.Shape
All Implemented Interfaces:
Serializable, Comparable<IArea.Shape>, Constable
Enclosing interface:
IArea

public static enum IArea.Shape extends Enum<IArea.Shape>
Insert Adjacent direction for IArea.withShape(Shape)}
  • Enum Constant Details

    • RECTANGLE

      public static final IArea.Shape RECTANGLE
      Treat the coords format as a rectangle. withCoords("x1, y1, x2, y2") Where the first coordinate pair is one corner of the rectangle and the other pair is the corner diagonally opposite. A rectangle is just a shortened way of specifying a polygon with four vertices.
    • CIRCLE

      public static final IArea.Shape CIRCLE
      Treat the coords format as a circle. withCoords("x, y, r") Where x and y define the position of the circle’s center and r is the radius in pixels.
    • POLYGON

      public static final IArea.Shape POLYGON
      Treat the coords format as a rectangle. withCoords("x1, y1, x2, y2, x3, y3...") Where each pair of x and y define a point of the polygon. At least three pairs of coordinates are required to define a triangle. The polygon is automatically closed, so it is not necessary to repeat the first coordinate at the end of the list to close the region.
  • Method Details

    • values

      public static IArea.Shape[] 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 IArea.Shape 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