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

## org.apache.fop.afp
Class AFPResourceInfo

    java.lang.Object
      org.apache.fop.afp.AFPResourceInfo

    public class AFPResourceInfo

extends java.lang.Object

The level at which a resource is to reside in the AFP output

Field Summary
`static AFPResourceLevel` | `DEFAULT_LEVEL` the general default resource level

Constructor Summary
`AFPResourceInfo()`

Method Summary
`boolean` | `equals(java.lang.Object obj)`
`java.awt.Dimension` | `getImageDimension()` Returns an optional image dimension (in page coordinates).
`AFPResourceLevel` | `getLevel()` Returns the resource level
`java.lang.String` | `getName()` Returns the resource reference name
`java.lang.String` | `getUri()` Returns the URI of this data object.
`int` | `hashCode()`
`boolean` | `levelChanged()` Returns true when the resource level was set
`void` | `setImageDimension(java.awt.Dimension dim)` Sets an optional image dimension (in page coordinates).
`void` | `setLevel(AFPResourceLevel resourceLevel)` Sets the resource level
`void` | `setName(java.lang.String resourceName)` Sets the resource reference name
`void` | `setUri(java.lang.String uri)` Sets the data object URI.
`java.lang.String` | `toString()`

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

Field Detail

### DEFAULT_LEVEL

    public static final AFPResourceLevel DEFAULT_LEVEL

  the general default resource level

Constructor Detail

### AFPResourceInfo

    public AFPResourceInfo()

Method Detail

### setUri

    public void setUri(java.lang.String uri)

  Sets the data object URI.

  Parameters:
    `uri` - the data object URI

### getUri

    public java.lang.String getUri()

  Returns the URI of this data object.

  Returns:
    the URI of this data object

### setImageDimension

    public void setImageDimension(java.awt.Dimension dim)

  Sets an optional image dimension (in page coordinates). This is only used if a page segment is created for this resource as page segments cannot be rescaled for painting.

  Parameters:
    `dim` - the image dimension (in page coordinates)

### getImageDimension

    public java.awt.Dimension getImageDimension()

  Returns an optional image dimension (in page coordinates). This is only used if a page segment is created for this resource as page segments cannot be rescaled for painting.

  Returns:
    the image dimension (or null if not applicable)

### setName

    public void setName(java.lang.String resourceName)

  Sets the resource reference name

  Parameters:
    `resourceName` - the resource reference name

### getName

    public java.lang.String getName()

  Returns the resource reference name

  Returns:
    the resource reference name

### getLevel

    public AFPResourceLevel getLevel()

  Returns the resource level

  Returns:
    the resource level

### setLevel

    public void setLevel(AFPResourceLevel resourceLevel)

  Sets the resource level

  Parameters:
    `resourceLevel` - the resource level

### levelChanged

    public boolean levelChanged()

  Returns true when the resource level was set

  Returns:
    true when the resource level was set

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

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

Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.