intarsys PDF library API

de.intarsys.pdf.pd
Class PDAppearanceTools

java.lang.Object
  extended by de.intarsys.pdf.pd.PDAppearanceTools

public class PDAppearanceTools
extends Object

A tool class for common tasks with PDAppearance instances.


Constructor Summary
PDAppearanceTools()
           
 
Method Summary
static PDForm getDownAppearance(PDAppearance appearance, COSName state)
          Given a PDAppearance, return the /D (down) appearance for the state "state".
static PDForm getNormalAppearance(PDAppearance appearance, COSName state)
          Given a PDAppearance, return the /N (normal) appearance for the state "state".
static PDForm getRolloverAppearance(PDAppearance appearance, COSName state)
          Given a PDAppearance, return the /R (rollover) appearance for the state "state".
static void renameState(PDAppearance appearance, String oldState, String newState)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDAppearanceTools

public PDAppearanceTools()
Method Detail

getDownAppearance

public static PDForm getDownAppearance(PDAppearance appearance,
                                       COSName state)
Given a PDAppearance, return the /D (down) appearance for the state "state".

Parameters:
appearance - The PDAppearance structure containing the appearance descriptions
Returns:
Given a PDAppearance, return the /D (down) appearance for the state "state".

getNormalAppearance

public static PDForm getNormalAppearance(PDAppearance appearance,
                                         COSName state)
Given a PDAppearance, return the /N (normal) appearance for the state "state".

Parameters:
appearance - The PDAppearance structure containing the appearance descriptions
Returns:
Given a PDAppearance, return the /N (normal) appearance for the state "state".

getRolloverAppearance

public static PDForm getRolloverAppearance(PDAppearance appearance,
                                           COSName state)
Given a PDAppearance, return the /R (rollover) appearance for the state "state".

Parameters:
appearance - The PDAppearance structure containing the appearance descriptions
Returns:
Given a PDAppearance, return the /R (rollover) appearance for the state "state".

renameState

public static void renameState(PDAppearance appearance,
                               String oldState,
                               String newState)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.