net.sf.jett.model
Enum FillPattern

java.lang.Object
  extended by java.lang.Enum<FillPattern>
      extended by net.sf.jett.model.FillPattern
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FillPattern>

public enum FillPattern
extends java.lang.Enum<FillPattern>

FillPatterns represent the built-in fill pattern names that correspond with Excel's indexed fill pattern scheme. These are used in conjunction with the fill pattern property in the style tag. Legal values are the names of the enumeration objects, without underscores, case insensitive, e.g. "gray50percent" == "Gray50Percent" == "GRAY50PERCENT".

Since:
0.4.0
Author:
Randy Gettman
See Also:
StyleTag, StyleParser.PROPERTY_FILL_PATTERN

Enum Constant Summary
DIAGONALCROSSHATCH
           
DIAGONALSTRIPE
           
GRAY12PERCENT
           
GRAY25PERCENT
           
GRAY50PERCENT
           
GRAY6PERCENT
           
GRAY75PERCENT
           
HORIZONTALSTRIPE
           
NOFILL
           
REVERSEDIAGONALSTRIPE
           
SOLID
           
THICKDIAGONALCROSSHATCH
           
THINDIAGONALCROSSHATCH
           
THINDIAGONALSTRIPE
           
THINHORIZONTALCROSSHATCH
           
THINHORIZONTALSTRIPE
           
THINREVERSEDIAGONALSTRIPE
           
THINVERTICALSTRIPE
           
VERTICALSTRIPE
           
 
Method Summary
 short getIndex()
          Returns the index.
 java.lang.String toString()
          Returns the name, in all lowercase, no underscores or spaces.
static FillPattern valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FillPattern[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOFILL

public static final FillPattern NOFILL

SOLID

public static final FillPattern SOLID

GRAY50PERCENT

public static final FillPattern GRAY50PERCENT

GRAY75PERCENT

public static final FillPattern GRAY75PERCENT

GRAY25PERCENT

public static final FillPattern GRAY25PERCENT

HORIZONTALSTRIPE

public static final FillPattern HORIZONTALSTRIPE

VERTICALSTRIPE

public static final FillPattern VERTICALSTRIPE

REVERSEDIAGONALSTRIPE

public static final FillPattern REVERSEDIAGONALSTRIPE

DIAGONALSTRIPE

public static final FillPattern DIAGONALSTRIPE

DIAGONALCROSSHATCH

public static final FillPattern DIAGONALCROSSHATCH

THICKDIAGONALCROSSHATCH

public static final FillPattern THICKDIAGONALCROSSHATCH

THINHORIZONTALSTRIPE

public static final FillPattern THINHORIZONTALSTRIPE

THINVERTICALSTRIPE

public static final FillPattern THINVERTICALSTRIPE

THINREVERSEDIAGONALSTRIPE

public static final FillPattern THINREVERSEDIAGONALSTRIPE

THINDIAGONALSTRIPE

public static final FillPattern THINDIAGONALSTRIPE

THINHORIZONTALCROSSHATCH

public static final FillPattern THINHORIZONTALCROSSHATCH

THINDIAGONALCROSSHATCH

public static final FillPattern THINDIAGONALCROSSHATCH

GRAY12PERCENT

public static final FillPattern GRAY12PERCENT

GRAY6PERCENT

public static final FillPattern GRAY6PERCENT
Method Detail

values

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

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

valueOf

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

getIndex

public short getIndex()
Returns the index.

Returns:
The index.

toString

public java.lang.String toString()
Returns the name, in all lowercase, no underscores or spaces.

Overrides:
toString in class java.lang.Enum<FillPattern>
Returns:
The name, in all lowercase, no underscores or spaces.


Copyright © 2012-2013 Jett Team. All Rights Reserved.