com.dlsc.flexgantt.swing.layer.system
Enum DefaultRelationshipRenderer.TargetLocation

java.lang.Object
  extended by java.lang.Enum<DefaultRelationshipRenderer.TargetLocation>
      extended by com.dlsc.flexgantt.swing.layer.system.DefaultRelationshipRenderer.TargetLocation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DefaultRelationshipRenderer.TargetLocation>
Enclosing class:
DefaultRelationshipRenderer

public static enum DefaultRelationshipRenderer.TargetLocation
extends java.lang.Enum<DefaultRelationshipRenderer.TargetLocation>

An enumerator of possible locations that the target object can have relative to the source object. If the target object is for example in a row above the source object and the x-coordinate of its start time is before the x-coordinate of the end time of the source object then it is located ABOVE_LEFT.

Since:
1.0

Enum Constant Summary
ABOVE
          A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.
ABOVE_LEFT
          A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.
ABOVE_RIGHT
          A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.
BELOW
          A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.
BELOW_LEFT
          A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.
BELOW_RIGHT
          A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.
LEFT
          A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.
RIGHT
          A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.
SAME_LOCATION
          A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.
 
Method Summary
static DefaultRelationshipRenderer.TargetLocation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DefaultRelationshipRenderer.TargetLocation[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BELOW_RIGHT

public static final DefaultRelationshipRenderer.TargetLocation BELOW_RIGHT
A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.

Since:
1.0

BELOW

public static final DefaultRelationshipRenderer.TargetLocation BELOW
A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.

Since:
1.0

BELOW_LEFT

public static final DefaultRelationshipRenderer.TargetLocation BELOW_LEFT
A enumerator value indicating that the target object is located in a row below the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.

Since:
1.0

ABOVE_RIGHT

public static final DefaultRelationshipRenderer.TargetLocation ABOVE_RIGHT
A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.

Since:
1.0

ABOVE

public static final DefaultRelationshipRenderer.TargetLocation ABOVE
A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.

Since:
1.0

ABOVE_LEFT

public static final DefaultRelationshipRenderer.TargetLocation ABOVE_LEFT
A enumerator value indicating that the target object is located in a row above the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.

Since:
1.0

LEFT

public static final DefaultRelationshipRenderer.TargetLocation LEFT
A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is smaller than the x-coordinate of the end time of the source object.

Since:
1.0

RIGHT

public static final DefaultRelationshipRenderer.TargetLocation RIGHT
A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is larger than the x-coordinate of the end time of the source object.

Since:
1.0

SAME_LOCATION

public static final DefaultRelationshipRenderer.TargetLocation SAME_LOCATION
A enumerator value indicating that the target object is located in the same row as the source object and that the x-coordinate of its start time is equal to the x-coordinate of the end time of the source object.

Since:
1.0
Method Detail

values

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

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

valueOf

public static DefaultRelationshipRenderer.TargetLocation valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name