public static enum AttractorStrategy.Attraction extends java.lang.Enum<AttractorStrategy.Attraction>
Dockable
s interact with each other.Enum Constant and Description |
---|
ATTRACTED
The
Dockable s are attracted to each other. |
NEUTRAL
There is no attraction between the
Dockable s. |
REPELLED
The
Dockable s do not interact with each other. |
STRONGLY_ATTRACTED
The
Dockable s are attracted to each other. |
STRONGLY_REPELLED
The
Dockable s do not interact with each other. |
Modifier and Type | Method and Description |
---|---|
AttractorStrategy.Attraction |
stronger(AttractorStrategy.Attraction other)
|
static AttractorStrategy.Attraction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttractorStrategy.Attraction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@ClientOnly public static final AttractorStrategy.Attraction STRONGLY_ATTRACTED
Dockable
s are attracted to each other. This value is never used
by the framework, only by clients. It overrides all other values.public static final AttractorStrategy.Attraction ATTRACTED
public static final AttractorStrategy.Attraction NEUTRAL
Dockable
s. This is the weakest
value of all.public static final AttractorStrategy.Attraction REPELLED
Dockable
s do not interact with each other. In fact they prefer not
to be placed near each other. Most MagnetStrategy
s will interpret this
as "they do not interact". This value overrides NEUTRAL
.@ClientOnly public static final AttractorStrategy.Attraction STRONGLY_REPELLED
Dockable
s do not interact with each other. In fact they prefer not
to be placed near each other. Most MagnetStrategy
s will interpret this
as "they do not interact". This value is never used by the framework, only by
clients. It overrides any other value expect STRONGLY_ATTRACTED
.public static AttractorStrategy.Attraction[] values()
for (AttractorStrategy.Attraction c : AttractorStrategy.Attraction.values()) System.out.println(c);
public static AttractorStrategy.Attraction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic AttractorStrategy.Attraction stronger(AttractorStrategy.Attraction other)
other
- some value, not null