net.sf.mpxj.mpp
Enum GanttBarMiddleShape

java.lang.Object
  extended by java.lang.Enum<GanttBarMiddleShape>
      extended by net.sf.mpxj.mpp.GanttBarMiddleShape
All Implemented Interfaces:
Serializable, Comparable<GanttBarMiddleShape>, MpxjEnum

public enum GanttBarMiddleShape
extends Enum<GanttBarMiddleShape>
implements MpxjEnum

Represents the shape type used to draw the middle section of a Gantt bar.


Enum Constant Summary
BOTTOMLINE
           
BOTTOMTHINROUNDED
           
MIDDLELINE
           
MIDDLETHINROUNDED
           
NONE
           
ROUNDED
           
TOPLINE
           
TOPTHINROUNDED
           
 
Method Summary
static GanttBarMiddleShape getInstance(int type)
          Retrieve an instance of the enum based on its int value.
static GanttBarMiddleShape getInstance(Number type)
          Retrieve an instance of the enum based on its int value.
 String getName()
          Retrieve the line style name.
 int getValue()
          Accessor method used to retrieve the numeric representation of the enum.
 String toString()
          Retrieve the String representation of this line style.
static GanttBarMiddleShape valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GanttBarMiddleShape[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final GanttBarMiddleShape NONE

ROUNDED

public static final GanttBarMiddleShape ROUNDED

TOPTHINROUNDED

public static final GanttBarMiddleShape TOPTHINROUNDED

MIDDLETHINROUNDED

public static final GanttBarMiddleShape MIDDLETHINROUNDED

BOTTOMTHINROUNDED

public static final GanttBarMiddleShape BOTTOMTHINROUNDED

TOPLINE

public static final GanttBarMiddleShape TOPLINE

MIDDLELINE

public static final GanttBarMiddleShape MIDDLELINE

BOTTOMLINE

public static final GanttBarMiddleShape BOTTOMLINE
Method Detail

values

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

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

valueOf

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

getInstance

public static GanttBarMiddleShape getInstance(int type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getInstance

public static GanttBarMiddleShape getInstance(Number type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getValue

public int getValue()
Accessor method used to retrieve the numeric representation of the enum.

Specified by:
getValue in interface MpxjEnum
Returns:
int representation of the enum

getName

public String getName()
Retrieve the line style name. Currently this is not localised.

Returns:
style name

toString

public String toString()
Retrieve the String representation of this line style.

Overrides:
toString in class Enum<GanttBarMiddleShape>
Returns:
String representation of this line style


Copyright © 2012. All Rights Reserved.