Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| PDF Clown 0.1.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pdfclown.documents.contents.objects
Class PaintXObject

    java.lang.Object
      org.pdfclown.documents.contents.objects.ContentObject
          org.pdfclown.documents.contents.objects.Operation
              org.pdfclown.documents.contents.objects.PaintXObject

All Implemented Interfaces:
  IResourceReference<XObject>

    @PDF(value=PDF10)
    public final class PaintXObject

extends Operation
implements IResourceReference<XObject>

'Paint the specified XObject' operation [PDF:1.6:4.7].

Since:
  0.0.4
Version:
  0.1.1, 11/01/11
Author:
  Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
`static String` | `Operator`

Fields inherited from class org.pdfclown.documents.contents.objects.Operation
`operands, operator`

Constructor Summary
`PaintXObject(List<PdfDirectObject> operands)`
`PaintXObject(PdfName name)`

Method Summary
`PdfName` | `getName()` Gets the resource name.
`XObject` | `getResource(IContentContext context)` Gets the referenced resource.
`ContentScanner` | `getScanner(ContentScanner context)` Gets the scanner for the contents of the painted external object.
`XObject` | `getXObject(IContentContext context)` Gets the `external object` resource to be painted.
`void` | `setName(PdfName value)`

Methods inherited from class org.pdfclown.documents.contents.objects.Operation
`get, getOperands, getOperator, toString, writeTo`

Methods inherited from class org.pdfclown.documents.contents.objects.ContentObject
`scan`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### Operator

    public static final String Operator

See Also:
  Constant Field Values

Constructor Detail

### PaintXObject

    public PaintXObject(PdfName name)

### PaintXObject

    public PaintXObject(List<PdfDirectObject> operands)

Method Detail

### getScanner

    public ContentScanner getScanner(ContentScanner context)

  Gets the scanner for the contents of the painted external object.

  Parameters:
    `context` - Scanning context.

### getXObject

    public XObject getXObject(IContentContext context)

  Gets the `external object` resource to be painted.

  Parameters:
    `context` - Content context.

### getName

    public PdfName getName()

  Description copied from interface: `IResourceReference`
  Gets the resource name.

  Specified by:
    `getName` in interface `IResourceReference<XObject>`
  See Also:
    `IResourceReference.getResource(IContentContext)`, `Resources`

### getResource

    public XObject getResource(IContentContext context)

  Description copied from interface: `IResourceReference`
  Gets the referenced resource.

  Whether a `resource name` is available or not, it can be respectively either shared or private.

  Specified by:
    `getResource` in interface `IResourceReference<XObject>`
  Parameters:
    `context` - Content context.

### setName

    public void setName(PdfName value)

  Specified by:
    `setName` in interface `IResourceReference<XObject>`
  See Also:
    `IResourceReference.getName()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| PDF Clown 0.1.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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