Groovy Documentation

griffon.effects
[Groovy] Enum Anchor

java.lang.Object
  java.lang.Enum
      griffon.effects.Anchor

enum Anchor
extends Enum

Authors:
Andres Almiray


Enum Constant Summary
BOTTOM

BOTTOM_LEFT

BOTTOM_RIGHT

CENTER

LEFT

RIGHT

TOP

TOP_LEFT

TOP_RIGHT

 
Method Summary
boolean isBottom()

boolean isLeft()

boolean isRight()

boolean isTop()

static Anchor resolve(Object value)

Resolves the object to a valid Anchor value.

static Anchor resolve(Anchor value)

Resolves the object to a valid Anchor value.

static Anchor resolve(GString value)

Resolves the string to a valid Anchor value.

static Anchor resolve(String value)

Resolves the object to a valid Anchor value.

Anchor valueOf(String name)

Returns the enum constant of this type with the specified name.

Anchor[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class Enum
name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

BOTTOM

Anchor BOTTOM


BOTTOM_LEFT

Anchor BOTTOM_LEFT


BOTTOM_RIGHT

Anchor BOTTOM_RIGHT


CENTER

Anchor CENTER


LEFT

Anchor LEFT


RIGHT

Anchor RIGHT


TOP

Anchor TOP


TOP_LEFT

Anchor TOP_LEFT


TOP_RIGHT

Anchor TOP_RIGHT


 
Method Detail

isBottom

boolean isBottom()


isLeft

boolean isLeft()


isRight

boolean isRight()


isTop

boolean isTop()


resolve

static Anchor resolve(Object value)
Resolves the object to a valid Anchor value.
Parameters:
value - an object. May be null.
Returns:
Anchor.CENTER always


resolve

static Anchor resolve(Anchor value)
Resolves the object to a valid Anchor value.
Parameters:
value - an Anchor instance.
Returns:
the same input


resolve

static Anchor resolve(GString value)
Resolves the string to a valid Anchor value.

Attempts conversion by matching common names to Anchor constants. Accepts aliases. Input may be in lower, upper and/or mixed case. Spaces are transformed inbto _.

Valid values are:

Parameters:
value - a GString
Returns:
the converted value given the aforementioned rules.


resolve

static Anchor resolve(String value)
Resolves the object to a valid Anchor value.
Returns:
Anchor.CENTER always


valueOf

Anchor valueOf(String name)
Returns the enum constant of this type with the specified name.


values

Anchor[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation