public static enum AttractorStrategy.Attraction extends Enum<AttractorStrategy.Attraction>
Dockables interact with each other.| Enum Constant and Description |
|---|
ATTRACTED
The
Dockables are attracted to each other. |
NEUTRAL
There is no attraction between the
Dockables. |
REPELLED
The
Dockables do not interact with each other. |
STRONGLY_ATTRACTED
The
Dockables are attracted to each other. |
STRONGLY_REPELLED
The
Dockables do not interact with each other. |
| Modifier and Type | Method and Description |
|---|---|
AttractorStrategy.Attraction |
stronger(AttractorStrategy.Attraction other)
|
static AttractorStrategy.Attraction |
valueOf(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
Dockables 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
Dockables. This is the weakest
value of all.public static final AttractorStrategy.Attraction REPELLED
Dockables do not interact with each other. In fact they prefer not
to be placed near each other. Most MagnetStrategys will interpret this
as "they do not interact". This value overrides NEUTRAL.@ClientOnly public static final AttractorStrategy.Attraction STRONGLY_REPELLED
Dockables do not interact with each other. In fact they prefer not
to be placed near each other. Most MagnetStrategys 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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic AttractorStrategy.Attraction stronger(AttractorStrategy.Attraction other)
other - some value, not nullCopyright © 2017 Docking Frames. All rights reserved.