org.sejda.model.parameter
Class ViewerPreferencesParameters

java.lang.Object
  extended by org.sejda.model.parameter.base.AbstractParameters
      extended by org.sejda.model.parameter.base.AbstractPdfOutputParameters
          extended by org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
              extended by org.sejda.model.parameter.ViewerPreferencesParameters
All Implemented Interfaces:
MultipleOutputTaskParameters, MultiplePdfSourceTaskParameters, TaskParameters

public class ViewerPreferencesParameters
extends MultiplePdfSourceMultipleOutputParameters

Parameter class for the set viewer preferences manipulation. Accepts a list of PdfSource where the view preferences will be applied.

Author:
Andrea Vacondio

Constructor Summary
ViewerPreferencesParameters()
           
 
Method Summary
 boolean addEnabledPreference(PdfBooleanPreference e)
           
 void addSource(PdfSource<?> input)
          adds the input source to the source list.
 void clearEnabledPreferences()
           
 boolean equals(Object other)
           
 PdfDirection getDirection()
           
 PdfDuplex getDuplex()
           
 Set<PdfBooleanPreference> getEnabledPreferences()
           
 PdfVersion getMinRequiredPdfVersion()
           
 PdfNonFullScreenPageMode getNfsMode()
           
 PdfPageLayout getPageLayout()
           
 PdfPageMode getPageMode()
           
 PdfPrintScaling getPrintScaling()
           
 List<PdfSource<?>> getSourceList()
           
 int hashCode()
           
 void setDirection(PdfDirection direction)
           
 void setDuplex(PdfDuplex duplex)
           
 void setNfsMode(PdfNonFullScreenPageMode nfsMode)
           
 void setPageLayout(PdfPageLayout pageLayout)
           
 void setPageMode(PdfPageMode pageMode)
           
 void setPrintScaling(PdfPrintScaling printScaling)
           
 
Methods inherited from class org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
getOutput, getOutputPrefix, setOutput, setOutputPrefix
 
Methods inherited from class org.sejda.model.parameter.base.AbstractPdfOutputParameters
getVersion, isCompressXref, setCompress, setVersion
 
Methods inherited from class org.sejda.model.parameter.base.AbstractParameters
isOverwrite, setOverwrite
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
isOverwrite
 

Constructor Detail

ViewerPreferencesParameters

public ViewerPreferencesParameters()
Method Detail

addEnabledPreference

public boolean addEnabledPreference(PdfBooleanPreference e)

clearEnabledPreferences

public void clearEnabledPreferences()

getPageMode

public PdfPageMode getPageMode()

setPageMode

public void setPageMode(PdfPageMode pageMode)

getPageLayout

public PdfPageLayout getPageLayout()

setPageLayout

public void setPageLayout(PdfPageLayout pageLayout)

getNfsMode

public PdfNonFullScreenPageMode getNfsMode()

setNfsMode

public void setNfsMode(PdfNonFullScreenPageMode nfsMode)

getDuplex

public PdfDuplex getDuplex()

setDuplex

public void setDuplex(PdfDuplex duplex)

getDirection

public PdfDirection getDirection()

setDirection

public void setDirection(PdfDirection direction)

getPrintScaling

public PdfPrintScaling getPrintScaling()

setPrintScaling

public void setPrintScaling(PdfPrintScaling printScaling)

getEnabledPreferences

public Set<PdfBooleanPreference> getEnabledPreferences()
Returns:
an unmodifiable view of the enabled boolean preferences

getMinRequiredPdfVersion

public PdfVersion getMinRequiredPdfVersion()
Overrides:
getMinRequiredPdfVersion in class AbstractPdfOutputParameters
Returns:
the min output pdf version required by this parameter object depending on its attributes. Each extending class is responsible for the implementation of this method.

hashCode

public int hashCode()
Overrides:
hashCode in class MultiplePdfSourceMultipleOutputParameters

equals

public boolean equals(Object other)
Overrides:
equals in class MultiplePdfSourceMultipleOutputParameters

addSource

public void addSource(PdfSource<?> input)
adds the input source to the source list.

Specified by:
addSource in interface MultiplePdfSourceTaskParameters
Parameters:
input -

getSourceList

public List<PdfSource<?>> getSourceList()
Specified by:
getSourceList in interface MultiplePdfSourceTaskParameters
Returns:
an unmodifiable view of the source list


Copyright © 2013 sejda. All Rights Reserved.