PDF Clown
0.1.2

org.pdfclown.documents.contents.objects
Class SetFillColor

java.lang.Object
  extended by org.pdfclown.documents.contents.objects.ContentObject
      extended by org.pdfclown.documents.contents.objects.Operation
          extended by org.pdfclown.documents.contents.objects.SetFillColor
Direct Known Subclasses:
SetDeviceCMYKFillColor, SetDeviceGrayFillColor, SetDeviceRGBFillColor

@PDF(value=PDF12)
public class SetFillColor
extends Operation

'Set the color to use for nonstroking operations' operation [PDF:1.6:4.5.7].

Since:
0.0.4
Version:
0.1.0
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
static String ExtendedOperator
          'Set the color to use for nonstroking operations in any color space' operator.
static String Operator
          'Set the color to use for nonstroking operations in a device, CIE-based (other than ICCBased), or Indexed color space' operator.
 
Fields inherited from class org.pdfclown.documents.contents.objects.Operation
operands, operator
 
Constructor Summary
  SetFillColor(Color<?> value)
           
  SetFillColor(List<PdfDirectObject> operands)
           
protected SetFillColor(String operator, Color<?> value)
           
  SetFillColor(String operator, List<PdfDirectObject> operands)
           
protected SetFillColor(String operator, PdfName name)
           
protected SetFillColor(String operator, PdfName name, Color<?> underlyingColor)
           
 
Method Summary
 List<PdfDirectObject> getComponents()
           
 void scan(ContentScanner.GraphicsState state)
          Applies this object to the specified graphics context, updating the specified graphics state.
 
Methods inherited from class org.pdfclown.documents.contents.objects.Operation
get, getOperands, getOperator, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ExtendedOperator

@PDF(value=PDF12)
public static final String ExtendedOperator
'Set the color to use for nonstroking operations in any color space' operator.

See Also:
Constant Field Values

Operator

@PDF(value=PDF11)
public static final String Operator
'Set the color to use for nonstroking operations in a device, CIE-based (other than ICCBased), or Indexed color space' operator.

See Also:
Constant Field Values
Constructor Detail

SetFillColor

public SetFillColor(Color<?> value)

SetFillColor

public SetFillColor(List<PdfDirectObject> operands)

SetFillColor

public SetFillColor(String operator,
                    List<PdfDirectObject> operands)

SetFillColor

protected SetFillColor(String operator,
                       Color<?> value)

SetFillColor

protected SetFillColor(String operator,
                       PdfName name)
Parameters:
operator - Graphics operator.
name - Name of the color resource entry (see Pattern).

SetFillColor

protected SetFillColor(String operator,
                       PdfName name,
                       Color<?> underlyingColor)
Parameters:
operator - Graphics operator.
name - Name of the color resource entry (see Pattern).
underlyingColor - Color used to colorize the pattern.
Method Detail

getComponents

public List<PdfDirectObject> getComponents()

scan

public void scan(ContentScanner.GraphicsState state)
Description copied from class: ContentObject
Applies this object to the specified graphics context, updating the specified graphics state.

Overrides:
scan in class ContentObject
Parameters:
state - Graphics state.

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.