| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AttractorStrategy.Attraction>
bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction
public static enum AttractorStrategy.Attraction
Tells how two Dockables interact with each other.
| Enum Constant Summary | |
|---|---|
| ATTRACTEDThe Dockables are attracted to each other. | |
| NEUTRALThere is no attraction between the Dockables. | |
| REPELLEDThe Dockables do not interact with each other. | |
| STRONGLY_ATTRACTEDThe Dockables are attracted to each other. | |
| STRONGLY_REPELLEDThe Dockables do not interact with each other. | |
| Method Summary | |
|---|---|
|  AttractorStrategy.Attraction | stronger(AttractorStrategy.Attraction other)Gets the stronger of thisandotherAttractorStrategy.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
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
Dockables are attracted to each other. This value overrides
 than NEUTRAL and REPELLED.
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 preferre 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 preferre 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.
| 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 | |||||||||