jPod PDF library

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 boolean createState(PDAppearance appearance, String state)
           
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)
           
static void resetAppearance(COSDictionary appearanceDict)
           
static void resetAppearance(PDAppearance appearance)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDAppearanceTools

public PDAppearanceTools()
Method Detail

createState

public static boolean createState(PDAppearance appearance,
                                  String state)

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)

resetAppearance

public static void resetAppearance(COSDictionary appearanceDict)

resetAppearance

public static void resetAppearance(PDAppearance appearance)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.