org.noos.xing.mydoggy
Enum PushAwayMode

java.lang.Object
  extended by java.lang.Enum<PushAwayMode>
      extended by org.noos.xing.mydoggy.PushAwayMode
All Implemented Interfaces:
Serializable, Comparable<PushAwayMode>

public enum PushAwayMode
extends Enum<PushAwayMode>

This enumeration specifies the "push away" modes for tools with specific anchor.

Since:
1.2.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)

Enum Constant Summary
ANTICLOCKWISE
          Using this mode, left tool pushs away bottom tool, bottom tool pushs away right tool, right tool pushs away top tool.
HORIZONTAL
          Using this mode, left/right tools push away top/bottom tools.
MOST_RECENT
          Whoever is pressed last toolwindow push away the previous toolwindows.
VERTICAL
          Using this mode, top/bottom tools push away left/right tools.
 
Method Summary
static PushAwayMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PushAwayMode[] 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

HORIZONTAL

public static final PushAwayMode HORIZONTAL
Using this mode, left/right tools push away top/bottom tools.

Since:
1.2.0

VERTICAL

public static final PushAwayMode VERTICAL
Using this mode, top/bottom tools push away left/right tools.

Since:
1.2.0

ANTICLOCKWISE

public static final PushAwayMode ANTICLOCKWISE
Using this mode, left tool pushs away bottom tool, bottom tool pushs away right tool, right tool pushs away top tool.

Since:
1.2.0

MOST_RECENT

public static final PushAwayMode MOST_RECENT
Whoever is pressed last toolwindow push away the previous toolwindows. This way the order of opening the toolwindows determine who push who (and you can achieve any "priority" mode by selecting the order of clicks)

Since:
1.3.0
Method Detail

values

public static PushAwayMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PushAwayMode c : PushAwayMode.values())
    System.out.println(c);

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

valueOf

public static PushAwayMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.