PDF Clown
0.1.2

org.pdfclown.documents.contents.colorSpaces
Enum TilingPattern.PaintTypeEnum

java.lang.Object
  extended by java.lang.Enum<TilingPattern.PaintTypeEnum>
      extended by org.pdfclown.documents.contents.colorSpaces.TilingPattern.PaintTypeEnum
All Implemented Interfaces:
Serializable, Comparable<TilingPattern.PaintTypeEnum>
Enclosing class:
TilingPattern

public static enum TilingPattern.PaintTypeEnum
extends Enum<TilingPattern.PaintTypeEnum>

Pattern cell color mode.


Enum Constant Summary
Colored
          The pattern's content stream specifies the colors used to paint the pattern cell.
Uncolored
          The pattern's content stream does NOT specify any color information.
 
Method Summary
static TilingPattern.PaintTypeEnum get(int code)
           
 int getCode()
           
static TilingPattern.PaintTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TilingPattern.PaintTypeEnum[] 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

Colored

public static final TilingPattern.PaintTypeEnum Colored
The pattern's content stream specifies the colors used to paint the pattern cell.

When the content stream begins execution, the current color is the one that was initially in effect in the pattern's parent content stream.


Uncolored

public static final TilingPattern.PaintTypeEnum Uncolored
The pattern's content stream does NOT specify any color information.

Instead, the entire pattern cell is painted with a separately specified color each time the pattern is used; essentially, the content stream describes a stencil through which the current color is to be poured.

The content stream must not invoke operators that specify colors or other color-related parameters in the graphics state.

Method Detail

values

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

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

valueOf

public static TilingPattern.PaintTypeEnum 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

get

public static TilingPattern.PaintTypeEnum get(int code)

getCode

public int getCode()

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.