com.qoppa.pdfViewer.actions
Class SetOCGState.Sequence

java.lang.Object
  extended bycom.qoppa.pdfViewer.actions.SetOCGState.Sequence
Enclosing class:
SetOCGState

public static class SetOCGState.Sequence
extends Object

Class that contains a list of layers and an action for that list. A SetOCGState action can toggle the visibility of many layers at once. The action takes a list of Sequence objects and each Sequence object takes a list of layers to turn off, turn on or toggle.

Author:
Qoppa Software

Constructor Summary
SetOCGState.Sequence(int ocgAction, Vector layerList)
          Constructs a Sequence object with a list of layers and the action to do on those layers.
 
Method Summary
 Vector getLayerList()
          Returns the list of layers.
 int getOCGAction()
          Returns the action that this sequence will do on the layers.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOCGState.Sequence

public SetOCGState.Sequence(int ocgAction,
                            Vector layerList)
Constructs a Sequence object with a list of layers and the action to do on those layers.

Parameters:
ocgAction - Action, should be one of the predefined constants in this class, OCG_ACTION_*.
layerList - The list of layers.
Method Detail

getOCGAction

public int getOCGAction()
Returns the action that this sequence will do on the layers.

Returns:
the action

getLayerList

public Vector getLayerList()
Returns the list of layers.

Returns:
List of layers.