Package org.zkoss.stateless.sul
Enum Class IArea.Shape
- All Implemented Interfaces:
Serializable,Comparable<IArea.Shape>,Constable
- Enclosing interface:
- IArea
Insert Adjacent
direction for IArea.withShape(Shape)}-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IArea.ShapeReturns the enum constant of this class with the specified name.static IArea.Shape[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECTANGLE
Treat thecoordsformat 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
Treat thecoordsformat 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
Treat thecoordsformat 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
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
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 nameNullPointerException- if the argument is null
-