Chart FX 7 for Java Server

com.softwarefx.chartfx.server.annotation
Enum AttachMode

java.lang.Object
  extended by java.lang.Enum<AttachMode>
      extended by com.softwarefx.chartfx.server.annotation.AttachMode
All Implemented Interfaces:
Serializable, Comparable<AttachMode>

public enum AttachMode
extends Enum<AttachMode>

Defines how an annotation can be attached to the chart.


Enum Constant Summary
ELASTIC
          Two opposite corners of the annotation object are attached to the chart.
NONE
          Annotation Object is not attached to chart.
POINT
          Annotation Object is attached by one point to the chart.
 
Method Summary
static EnumSet<AttachMode> getEnumSetValue(int value)
          Returns a EnumSet that represents the given numeric value.
static AttachMode getEnumValue(int value)
          Returns a Enum Item that represents the given numeric value.
static int getUnderlyingValue(AttachMode value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static int getUnderlyingValue(EnumSet<AttachMode> value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static AttachMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttachMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final AttachMode NONE
Annotation Object is not attached to chart.


POINT

public static final AttachMode POINT
Annotation Object is attached by one point to the chart. This point can be selected between the center, four corners or middle of each of the bounding rectangle lines.


ELASTIC

public static final AttachMode ELASTIC
Two opposite corners of the annotation object are attached to the chart. If the distance between those points changes, the size of the annotation object will change.

Method Detail

values

public static AttachMode[] 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 (AttachMode c : AttachMode.values())
    System.out.println(c);

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

valueOf

public static AttachMode 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

getEnumSetValue

public static EnumSet<AttachMode> getEnumSetValue(int value)

Returns a EnumSet that represents the given numeric value.

Parameters:
value - numeric representation of the Enumset.

getEnumValue

public static AttachMode getEnumValue(int value)

Returns a Enum Item that represents the given numeric value.

Parameters:
value - numeric representation of the Enum item.

getUnderlyingValue

public static int getUnderlyingValue(AttachMode value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

getUnderlyingValue

public static int getUnderlyingValue(EnumSet<AttachMode> value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

http://www.softwarefx.com

2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.