|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AttractorStrategy.Attraction> bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction
public static enum AttractorStrategy.Attraction
Tells how two Dockable
s interact with each other.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
AttractorStrategy.Attraction |
stronger(AttractorStrategy.Attraction other)
Gets the stronger of this and other AttractorStrategy.Attraction . |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
@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
Dockable
s are attracted to each other. This value overrides
than NEUTRAL
and REPELLED
.
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 preferre 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 preferre 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
.
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic AttractorStrategy.Attraction stronger(AttractorStrategy.Attraction other)
this
and other
AttractorStrategy.Attraction
.
other
- some value, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |