|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.openpcl.viewer.OpenPCLViewer
public class OpenPCLViewer
OpenPCLViewer is an open source PCL Viewer.
The command line options (or OpenPCLViewer constructor String array) are at the JavaDoc
for PosStartupOptions at PosStartupOptions
.
OpenPCLViewer can be used in 3 ways:
1. As a PCL viewer. This is the normal user mode.
or
2. As a JPanel embedded in your Java app's layout anywhere you wish. Your app can call the methods shown
in the Interface IOpenPCL to control how the OpenPCLViewer JPanel looks on screen and to control
its behavior. OpenPCLViewer's own toolbar buttons and events call these same Interface methods to control
it that and external app can call. You can hide the toolbar and/or JTree of PCL page nodes and call all the
public api methods from your app's toolbar and/or menu items.
or
3. Don't do #1 or #2 above. This will allow you to not need the openpcl.jar file at run time.
This one is the bare bones way. Your app will use the classes in the pclrenderimage.jar file directly by
you app will call the public api interface IPclRenderImage methods. See the JavaDoc text on the
PclRenderImage class and for the IPclRenderImage interface.
More details about it:
For (1), when OpenPCLViewer is run as the main app, its main() method runs which calls it's constructor.
In this case, it will instantiate and show the JFrame PosSimpleJFrame, then embed itself as a JPanel into
PosSimpleJFrame's layout. This requires no user programming and it does this as the ready to run PCL viewer.
For (2), if you've written a Java app already and you want to put a JPanel in your app that is a PCL viewer,
then your app's code will instantiate OpenPCLViewer by doing a
"new OpenPCLViewer(JFrame pParentJFrame, String pArgs[])"
and pass your app's JFrame in the constructor. Doing it this way, the OpenPCLViewer main() is never run
because your app's main() is the main(). Since OpenPCLViewer is a subclass of JPanel, it needs a reference to
the JFrame where this JPanel will be contained so that JDialogs and JOptionPanes can be modal on the
passed in JFrame as the parent frame. For the 2nd parameter which is the "String pArgs[]" you can pass
null if you don't want to specify any command line options or the name of a PCL file to open and view
at program startup time. Then you would add the OpenPCLViewer panel into your app's layout in any place you wish.
If you don't want the JTree or toolbar or status bar, you can turn those off independently by calling public
api interface methods that are in IOpenPCL. If you have your own menu items or toolbar buttons that
you have in your app that you want to control the PCL Viewer JPanel with, then hide OpenPCLViewer's toolbar
and make your event listener code call the OpenPCLViewer's public api interface methods that are in IOpenPCL.
For (3), If you want to *not* embed the OpenPCLViewer JPanel in your app, and instead the only thing you want
is the BufferedImage bitmap that PclRenderImage draws from the PCL bytes, then you can use the classed in the
pclrenderimage.jar file directly and not have the openpcl.jar file there at run time. In this case, your app
needs to have all the UI code since you're going the bare bones route and not using any classes in the
openpcl.jar file. Your direct method calling to the pclrenderimage.jar file will be:
3a. Call the different "renderImage...()" public api interface methods for it to draw/render the PCL bytes to the
BufferedImage bitmap that you passed to it in a. above, and optionally at what zoom factor or to
say zoom width at the passed in width.
3b. Write some code that gets the PCL bytes from a local file open, or from a URL or from XML, because
this bare bones way means your app in in charge of getting the PCL bytes to pass to PclRenderImage.
3c. Put the java.awt.image.BufferedImage (that is returned from the renderImage...() methods) on the screen,
or pass it along to a client who is in charge of putting it on the client's screen.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected String |
mAppDescription
|
protected String |
mAppName
|
protected String |
mAppVersion
|
int |
mLastWindowState
|
static double |
sDefaultZoomFactor
|
static int |
sFileTypeNotSupported
|
static int |
sFileTypePCL
|
static boolean |
sIsRunningOnMacintosh
|
static int |
sLastWindowStateCascade
|
static int |
sLastWindowStateTileHorizontal
|
static int |
sLastWindowStateTileVertical
|
static int |
sMaxNumImages
|
static String |
sMaxViewsAlreadyOpenString
|
static int |
sMinIndexImages
|
static String |
sNotSupportedAtThisTime
|
static String |
sOsNameString
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
OpenPCLViewer()
Constructor with no parameters calls a chained constructor passing null as the JFrame, null as the JApplet, and null as the args, and null for PosStartupOptions. |
|
OpenPCLViewer(JApplet pJApplet,
String[] pArgs)
Constructor with null for the external app JFrame reference but passing in the JApplet and the String[] args, and null for the PosStartupOptions object. |
|
OpenPCLViewer(JFrame pParentJFrame,
JApplet pJApplet,
String[] pArgs,
PosStartupOptions pPosStartupOptions)
All constructors chain to this constructor. |
|
OpenPCLViewer(JFrame pJFrame,
PosStartupOptions pPosStartupOptions)
Constructor with the external app JFrame reference and null as the JApplet, and null as the String[] args, but passing in the PosStartupOptions object. |
|
OpenPCLViewer(JFrame pJFrame,
String[] pArgs)
Constructor with the external app JFrame reference and null as the JApplet, and passing in the String[] args, and passing null for PosStartupOptions. |
|
OpenPCLViewer(String[] pArgs)
Constructor passing null as the external app JFrame reference and null as the JApplet, and passing in the String[] args, and passing null for PosStartupOptions. |
Method Summary | |
---|---|
void |
actionAppIsExiting()
Action "App is Exiting". |
void |
actionCascadeWindows()
Cascade Windows |
void |
actionCloseAllFiles()
Close All Files |
void |
actionCloseFile()
Close File |
void |
actionGetWebDoc()
Get Web Doc |
void |
actionHelpAbout()
Show the "Help About" dialog |
void |
actionHideChangeTheLookPopup()
Hide the "Change the Look" popup |
void |
actionHideHelpChoicesPopup()
Hide the help choices popup |
void |
actionHidePrintChoicesPopup()
Hide the print choices popup |
void |
actionHideToolbar()
Hide the toolbar |
void |
actionHideTree()
Hide the pages tree |
void |
actionHideWindowControlPopup()
Hide the window control popup |
void |
actionHideZoomSliderPopup()
Hide the zoom slider popup |
void |
actionNextPage()
Next Page |
void |
actionOpenLocalFileDialog()
Show the Open File modal dialog |
void |
actionOpenLocalFileSpecified(String pFilePathAndFileName)
Open the file that is passed in the method call |
void |
actionPreviousPage()
Previous Page |
void |
actionPrintAll()
Print All |
void |
actionPrintChanged()
Print Changed |
void |
actionPrintRemaining()
Print Remaining |
void |
actionPrintSelected()
Print Selected |
void |
actionSaveAs()
This gets executed when the user clicks the Save As icon on the toolbar. Subclass plugins override this method so do not delete or rename this method. |
void |
actionSaveOnePageToPclFile()
Save one page only as PCL file |
void |
actionShowChangeTheLookPopup()
Show the "Change the Look" popup |
void |
actionShowHelpChoicesPopup()
Show the help choices popup |
void |
actionShowHideChangeTheLookPopup()
Toggle show/hide the "Change the Look" popup |
void |
actionShowHideHelpChoicesPopup()
Toggle show/hide the help choices popup |
void |
actionShowHidePrintChoicesPopup()
Toggle show/hide the print choices popup |
void |
actionShowHideToolbar()
Toggle show/hide the toolbar |
void |
actionShowHideTree(boolean pControlKeyPressed)
Toggle show/hide the pages tree |
void |
actionShowHideWindowControlPopup()
Toggle show/hide the window control popup |
void |
actionShowHideZoomSliderPopup()
Toggle show/hide the zoom slider popup |
void |
actionShowLicenseInfo()
Show the "License info" dialog |
void |
actionShowOptionsDialog(boolean pControlKeyPressed)
Show the Options dialog |
void |
actionShowPrintChoicesPopup()
Show the print choices popup |
void |
actionShowToolbar()
Show the toobar |
void |
actionShowTree()
Show the pages tree |
void |
actionShowWindowControlPopup()
Show the window control popup |
void |
actionShowZoomSliderPopup()
Show the zoom slider popup |
void |
actionTileWindowsHorizontal()
Tile Windows Horizontal |
void |
actionTileWindowsVertical()
Tile Windows Horizontal |
double |
actionZoomInOneNotch()
Zoom In |
double |
actionZoomOutOneNotch()
Zoom Out |
void |
actionZoomTo(double pZoomFactor)
Zoom to passed in zoom factor |
void |
actionZoomToWidth(int pWidthToFit)
Zoom to passed in width |
void |
actionZoomWidth()
Zoom Width |
void |
actionZoomWidth(PosView pPosView)
Non api interface for internal use only to Zoom Width during a tile or cascade when the windows that resized aren't the window that the user clicked on last. |
void |
addToolbarButtonsFromSubclass(PosToolBar pPosToolBar)
Add any additional toolbar buttons. |
void |
applySelectedLookAndFeel()
Apply the selected LookAndFeel to the screen. |
void |
blankOutBufferedImage()
Convenience method that calls PclRenderImage.blankOutBufferedImage(). |
protected void |
buildLayout()
|
protected void |
buildPopupDialogs()
|
protected PosMdiDesktopPane |
buildPosMdiDesktopPane()
|
protected void |
buildPrintingSupport()
|
protected void |
buildUI()
|
protected void |
changeLookListSelection(ListSelectionEvent pE)
|
protected ListSelectionListener |
createChangeLookListSelectionListener()
The Change Look toolbar button pops up a floating window with a JList of LookAndFeels |
protected ActionListener |
createDirectAccessZoomActionListener()
Direct access zoom (the zoom buttons on the toolbar 10, 20, 30, ...) |
protected ComponentListener |
createFrameComponentListener()
|
protected ListSelectionListener |
createHelpChoicesListSelectionListener()
The Help choices toolbar button pops up a floating window with a JList of: "Show License Info", "About" |
protected String |
createNewMdiView(String pShortName,
String pLongName)
This method creates a new MDI JInternalFrame view. |
PosView |
createNewViewPanel(String pShortName)
Create a new view panel. |
protected ListSelectionListener |
createPrintChoicesListSelectionListener()
The Print Choices toolbar button pops up a floating window with a JList of: "Print All", "Print Selected", "Print Remaining", "Print Changed" |
protected ListSelectionListener |
createWindowControlListSelectionListener()
The Window Control toolbar button pops up a floating window with a JList of: "Tile Horizontal", "Tile Vertical", "Cascade", "View #n thru #n on each line" |
protected WindowFocusListener |
createWindowFocusListener()
|
protected ChangeListener |
createZoomSliderChangeListener()
|
static boolean |
detectIfMacintosh(String pOsNameString)
Detect if running on Macintosh. |
int |
determineFileTypeByFileExtension(String pExtensionOfFileName)
Determine the file type by the file extension. |
protected void |
directAccessZoomActionPerformed(ActionEvent e)
|
void |
executeAfterUiIsShowing()
Code that needs to execute after the UI is showing on the screen upon app startup. |
protected Frame |
findBrowserFrame(JApplet pJApplet)
|
protected int |
findLowestIndexAvailableView()
|
protected int |
findOutFileType(String pShortName)
|
protected int |
findOutImageHeight()
Find out the image height |
boolean |
forceFrontSideWhenDuplexing(PosTreeNode pPosTreeNode)
Returns true if this tree node page must print on the front side (not on the back of a page) when duplexing. |
String |
getAppDescription()
Get the app description. |
Frame |
getAppFrame()
Get the app's Frame |
String |
getAppName()
Get the app name. |
String |
getAppVersion()
Get the app version. |
BufferedImage |
getBufferedImageToDrawOn()
Convenience method that calls PclRenderImage.getBufferedImageToDrawOn(). |
int |
getCurrentViewWindowWidth()
Get the current view window width |
double |
getCurrentZoomFactor()
Get the PclRenderImage's current zoom factor |
String |
getFilePathAndFileName()
|
String |
getFormNameForTreeNode(PosTreeNode pPosTreeNode)
Get the Form Name for a tree node page. |
String |
getHiddenTagBaseString(int pTagIndex)
Get the hidden tag base String. |
BufferedImage |
getImageForPage(int pPageNumber,
byte[] pPrintTimePclBytes,
boolean pIsForPrinting,
String pPaperSize,
double pZoomFactor)
Convenience method that calls PclRenderImage.getImageForPage(). |
boolean |
getIsDrawingForPrinting()
|
Icon |
getJInternalFrameIcon()
Allow subclases to set their own icon. |
String |
getJInternalFrameTitleBar(String defaultTitle)
Allow subclases to set their own title. |
String |
getLastRenderErrorString()
Convenience method that calls PclRenderImage.getLastRenderErrorString(). |
static String |
getOsNamePropertyString()
Get the os.name property String. |
String |
getPackageHelpAboutInfo()
Get the package path to the help about .html file. |
String |
getPackagePathLicenseInfo()
Get the package path to the license info .html file. |
JTree |
getPagesJTree()
Get the JTree of the PCL pages for purposes of an external app can call methods on the JTree object which can change how it looks on the screen. |
String |
getPaperSizeForPage(int pPageNumber)
Convenience method that calls PclRenderImage.getPaperSizeIntFromPclForPage(). |
byte[] |
getPclBytesForPage(int pPageNumber)
Get the Pcl bytes for page N |
byte[] |
getPclBytesForTreeNode(PosTreeNode pPosTreeNode)
Get the PCL bytes for a tree node page. |
int |
getPclPageCount()
Convenience method that calls PclRenderImage.getPageCount(byte[]). |
PCLPrintJob |
getPCLPrintJob()
|
PosChangeTheLookPopupDialog |
getPosChangeTheLookPopupDialog()
|
PosManageToolBar |
getPosManageToolBar()
|
PosPrintSetupDialogChoices |
getPosPrintSetupDialogChoices()
|
PosStartupOptions |
getPosStartupOptions()
|
PosStatusBar |
getPosStatusBar()
|
PosView |
getPosViewSelected()
|
PosZoomPopupDialog |
getPosZoomPopupDialog()
|
PrintRequestAttributeSet |
getPrintRequestAttributeSet()
|
protected void |
helpChoicesListSelection(ListSelectionEvent pE)
|
protected void |
hidePopupDialogs()
|
boolean |
isTreeNodePageLetterSize(PosTreeNode pPosTreeNode)
See if the selected tree node is a Letter Size PCL page. |
String |
loadFromFileSplitIntoSeparatePclPages(String pFilePathAndFileName)
Convenience method that calls PclRenderImage.loadFromFileSplitIntoSeparatePclPages(). |
String |
loadFromUrlSplitIntoSeparatePclPages(String pUrl)
Convenience method that calls PclRenderImage.loadFromUrlSplitIntoSeparatePclPages(). |
static void |
main(String[] pArgs)
OpenPCLViewer's main() method calls the OpenPCLViewer constructor passing the command line args that were passed to main(). |
PosFileFilter |
makeFileFilterForOpenFileDialog()
Make the file filter for the File Open dialog to specify which file extensions to include. |
protected String |
makePclPageTreeNodes()
|
void |
parseFileBytesIntoTreeNodes(String pFileNameOnly,
String pFilePathAndFileName)
Open the file on disk. |
protected void |
printChoicesListSelection(ListSelectionEvent pE)
|
protected void |
readPersistedViewValues(Preferences pPrefs)
Read the locally persisted view frame's (x,y) location and (width,height), and window state (maximized/iconified) and full path and filename of last file opened |
protected void |
readPrintOptionsValues(Preferences pPrefs,
PosPrintSetupDialogChoices pPosPrintSetupDialogChoices)
Read the locally persisted print setup dialog options |
String |
renderImageAtZoomFactor(double pAtZoomFactor)
Render the image from current PosView and current Pcl page selected but now at this zoom factor. |
String |
renderImageCurrentPageAndZoom()
Render the image from current PosView and current Pcl page selected and current previously set zoom. |
String |
renderImageForceZoomWidth(int pWidthToFit)
Render the image from current PosView and current Pcl page selected but now make it zoom width. |
BufferedImage |
renderImageForPrintingFromPageNumber(int pPageNumber,
byte[] pPrintTimePclBytes)
Render the BufferedImage from the page number and the print time only additional PCL bytes to draw |
BufferedImage |
renderImageForPrintingFromTreeNode(PosTreeNode pPosTreeNode)
Render the BufferedImage from the tree node. |
protected void |
savePersistedPrintOptionsValues(Preferences pPrefs,
PosPersistPrintOptionsValues pPosPersistPrintOptionsValues,
PosPrintSetupDialogChoices pPosPrintSetupDialogChoices)
Save to local persisted storate the print setup dialog options |
protected void |
savePersistedViewValues(JInternalFrame pJInternalFrame,
Preferences pPrefs,
PosPersistViewValues pPosPersistViewValues)
Save to local persisted storage the view frame's (x,y) location and (width,height), and window state (maximized/iconified) and full path and filename of last file opened |
void |
setAsTheActiveView(PosView pPosView)
Set the current view selected. |
void |
setFilePathAndFileName(String pFilePathAndFileName)
|
void |
setIsDrawingForPrinting(boolean pIsDrawingForPrinting)
|
void |
setThisViewClosed(PosView pPosView)
Set this view closed. |
void |
showClippedImage()
Show Clipped Image |
void |
showImageForPage(int pPageNumber)
Call this method to show the image for the passed in page number as if the user clicked on the tree node for that page. |
protected void |
showStatusBar()
|
protected void |
showToolbar()
|
void |
showZoomFactorOnToolbarButton(double pZoomFactor)
Show the zoom factor in the toolbar button JLabel.setText() |
String |
splitIntoSeparatePclPages(byte[] pPclBytes)
Convenience method that calls PclRenderImage.splitIntoSeparatePclPages(byte[]). |
void |
viewIsClosing(PosView pPosView)
The JInternalFrame is still showing on the screen, but the user clicked the close X. |
protected void |
windowControlListSelection(ListSelectionEvent pE)
|
protected void |
zoomSliderStateChanged(ChangeEvent e)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String mAppName
protected String mAppDescription
protected String mAppVersion
public static final int sMinIndexImages
public static final int sMaxNumImages
public static final double sDefaultZoomFactor
public static final int sFileTypeNotSupported
public static final int sFileTypePCL
public static final int sLastWindowStateTileVertical
public static final int sLastWindowStateTileHorizontal
public static final int sLastWindowStateCascade
public int mLastWindowState
public static final String sMaxViewsAlreadyOpenString
public static final String sNotSupportedAtThisTime
public static String sOsNameString
public static boolean sIsRunningOnMacintosh
Constructor Detail |
---|
public OpenPCLViewer()
public OpenPCLViewer(String[] pArgs)
pArgs
- public OpenPCLViewer(JFrame pJFrame, String[] pArgs)
public OpenPCLViewer(JFrame pJFrame, PosStartupOptions pPosStartupOptions)
public OpenPCLViewer(JApplet pJApplet, String[] pArgs)
public OpenPCLViewer(JFrame pParentJFrame, JApplet pJApplet, String[] pArgs, PosStartupOptions pPosStartupOptions)
Method Detail |
---|
public static void main(String[] pArgs)
public static String getOsNamePropertyString()
public static boolean detectIfMacintosh(String pOsNameString)
pOsNameString
-
protected Frame findBrowserFrame(JApplet pJApplet)
protected void buildLayout()
protected void buildUI()
public void executeAfterUiIsShowing()
protected void showToolbar()
public void addToolbarButtonsFromSubclass(PosToolBar pPosToolBar)
addToolbarButtonsFromSubclass
in interface IPluginHooksOpenPCL
protected void showStatusBar()
protected PosMdiDesktopPane buildPosMdiDesktopPane()
protected void buildPrintingSupport()
protected void buildPopupDialogs()
public PosFileFilter makeFileFilterForOpenFileDialog()
makeFileFilterForOpenFileDialog
in interface IPluginHooksOpenPCL
protected void readPersistedViewValues(Preferences pPrefs)
protected void readPrintOptionsValues(Preferences pPrefs, PosPrintSetupDialogChoices pPosPrintSetupDialogChoices)
pPrefs
- pPosPrintSetupDialogChoices
- protected void savePersistedViewValues(JInternalFrame pJInternalFrame, Preferences pPrefs, PosPersistViewValues pPosPersistViewValues)
protected void savePersistedPrintOptionsValues(Preferences pPrefs, PosPersistPrintOptionsValues pPosPersistPrintOptionsValues, PosPrintSetupDialogChoices pPosPrintSetupDialogChoices)
pPrefs
- pPosPersistPrintOptionsValues
- pPosPrintSetupDialogChoices
- public PosManageToolBar getPosManageToolBar()
public PosStatusBar getPosStatusBar()
public PosZoomPopupDialog getPosZoomPopupDialog()
public PosChangeTheLookPopupDialog getPosChangeTheLookPopupDialog()
public boolean getIsDrawingForPrinting()
public PosView getPosViewSelected()
public String getFilePathAndFileName()
public PosStartupOptions getPosStartupOptions()
public PosPrintSetupDialogChoices getPosPrintSetupDialogChoices()
public PCLPrintJob getPCLPrintJob()
public PrintRequestAttributeSet getPrintRequestAttributeSet()
public void setIsDrawingForPrinting(boolean pIsDrawingForPrinting)
public void setFilePathAndFileName(String pFilePathAndFileName)
protected ListSelectionListener createPrintChoicesListSelectionListener()
protected void printChoicesListSelection(ListSelectionEvent pE)
protected ActionListener createDirectAccessZoomActionListener()
protected void directAccessZoomActionPerformed(ActionEvent e)
protected ChangeListener createZoomSliderChangeListener()
protected void zoomSliderStateChanged(ChangeEvent e)
protected ListSelectionListener createChangeLookListSelectionListener()
protected void changeLookListSelection(ListSelectionEvent pE)
public void applySelectedLookAndFeel()
applySelectedLookAndFeel
in interface IPluginHooksOpenPCL
protected ListSelectionListener createWindowControlListSelectionListener()
protected void windowControlListSelection(ListSelectionEvent pE)
protected ListSelectionListener createHelpChoicesListSelectionListener()
protected void helpChoicesListSelection(ListSelectionEvent pE)
protected ComponentListener createFrameComponentListener()
protected WindowFocusListener createWindowFocusListener()
protected void hidePopupDialogs()
public void setAsTheActiveView(PosView pPosView)
pPosView
- public void viewIsClosing(PosView pPosView)
pPosView
- public void setThisViewClosed(PosView pPosView)
pPosView
- protected int findLowestIndexAvailableView()
protected int findOutFileType(String pShortName)
public int determineFileTypeByFileExtension(String pExtensionOfFileName)
determineFileTypeByFileExtension
in interface IPluginHooksOpenPCL
public void showZoomFactorOnToolbarButton(double pZoomFactor)
public int getCurrentViewWindowWidth()
public void showClippedImage()
protected int findOutImageHeight()
public boolean isTreeNodePageLetterSize(PosTreeNode pPosTreeNode)
isTreeNodePageLetterSize
in interface IPluginHooksOpenPCL
public byte[] getPclBytesForTreeNode(PosTreeNode pPosTreeNode)
getPclBytesForTreeNode
in interface IPluginHooksOpenPCL
public String getFormNameForTreeNode(PosTreeNode pPosTreeNode)
getFormNameForTreeNode
in interface IPluginHooksOpenPCL
public boolean forceFrontSideWhenDuplexing(PosTreeNode pPosTreeNode)
forceFrontSideWhenDuplexing
in interface IPluginHooksOpenPCL
public PosView createNewViewPanel(String pShortName)
createNewViewPanel
in interface IPluginHooksOpenPCL
protected String createNewMdiView(String pShortName, String pLongName)
pShortName.
- Used as the JTree root node name.pLongName
-
public Icon getJInternalFrameIcon()
getJInternalFrameIcon
in interface IPluginHooksOpenPCL
public String getJInternalFrameTitleBar(String defaultTitle)
getJInternalFrameTitleBar
in interface IPluginHooksOpenPCL
protected String makePclPageTreeNodes()
public String renderImageForceZoomWidth(int pWidthToFit)
pWidthToFit
-
public String renderImageAtZoomFactor(double pAtZoomFactor)
pAtZoomFactor
-
public String renderImageCurrentPageAndZoom()
public BufferedImage renderImageForPrintingFromTreeNode(PosTreeNode pPosTreeNode)
renderImageForPrintingFromTreeNode
in interface IPluginHooksOpenPCL
public BufferedImage renderImageForPrintingFromPageNumber(int pPageNumber, byte[] pPrintTimePclBytes)
public String splitIntoSeparatePclPages(byte[] pPclBytes)
splitIntoSeparatePclPages
in interface IOpenPCL
pPclBytes
-
public int getPclPageCount()
getPclPageCount
in interface IOpenPCL
public BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, boolean pIsForPrinting, String pPaperSize, double pZoomFactor)
getImageForPage
in interface IOpenPCL
pPageNumber.
- The Pcl page number to render to the image.pPrintTimePclBytes.
- Draw these additional PCL bytes on the print image.pIsForPrinting.
- If true non printing items like signature blocks won't be rendered.pPaperSize.
- If a paper size is not specified in the PCL, this paper size will be used. "LTR" or "LGL".pZoomFactor.
- This is mandatory (see note for why).
public String getLastRenderErrorString()
getLastRenderErrorString
in interface IOpenPCL
public String loadFromFileSplitIntoSeparatePclPages(String pFilePathAndFileName)
loadFromFileSplitIntoSeparatePclPages
in interface IOpenPCL
pFullPathAndFilename
-
public String loadFromUrlSplitIntoSeparatePclPages(String pUrl)
loadFromUrlSplitIntoSeparatePclPages
in interface IOpenPCL
pUrl
-
public BufferedImage getBufferedImageToDrawOn()
getBufferedImageToDrawOn
in interface IOpenPCL
public void blankOutBufferedImage()
blankOutBufferedImage
in interface IOpenPCL
public byte[] getPclBytesForPage(int pPageNumber)
getPclBytesForPage
in interface IOpenPCL
public String getPaperSizeForPage(int pPageNumber)
getPaperSizeForPage
in interface IOpenPCL
pPageNumber
-
public JTree getPagesJTree()
getPagesJTree
in interface IOpenPCL
public double getCurrentZoomFactor()
getCurrentZoomFactor
in interface IOpenPCL
public void actionOpenLocalFileDialog()
actionOpenLocalFileDialog
in interface IOpenPCL
public void actionOpenLocalFileSpecified(String pFilePathAndFileName)
public void parseFileBytesIntoTreeNodes(String pFileNameOnly, String pFilePathAndFileName)
parseFileBytesIntoTreeNodes
in interface IPluginHooksOpenPCL
public void showImageForPage(int pPageNumber)
pPageNumber
- public void actionShowHideToolbar()
actionShowHideToolbar
in interface IOpenPCL
public void actionShowToolbar()
actionShowToolbar
in interface IOpenPCL
public void actionHideToolbar()
actionHideToolbar
in interface IOpenPCL
public void actionGetWebDoc()
actionGetWebDoc
in interface IOpenPCL
public void actionCloseFile()
actionCloseFile
in interface IOpenPCL
public void actionCloseAllFiles()
actionCloseAllFiles
in interface IOpenPCL
public void actionShowHidePrintChoicesPopup()
actionShowHidePrintChoicesPopup
in interface IOpenPCL
public void actionShowPrintChoicesPopup()
actionShowPrintChoicesPopup
in interface IOpenPCL
public void actionHidePrintChoicesPopup()
actionHidePrintChoicesPopup
in interface IOpenPCL
public void actionPrintAll()
actionPrintAll
in interface IOpenPCL
public void actionPrintSelected()
actionPrintSelected
in interface IOpenPCL
public void actionPrintRemaining()
actionPrintRemaining
in interface IOpenPCL
public void actionPrintChanged()
actionPrintChanged
in interface IOpenPCL
public void actionPreviousPage()
actionPreviousPage
in interface IOpenPCL
public void actionNextPage()
actionNextPage
in interface IOpenPCL
public void actionShowHideTree(boolean pControlKeyPressed)
actionShowHideTree
in interface IOpenPCL
public void actionShowTree()
actionShowTree
in interface IOpenPCL
public void actionHideTree()
actionHideTree
in interface IOpenPCL
public double actionZoomOutOneNotch()
actionZoomOutOneNotch
in interface IOpenPCL
public double actionZoomInOneNotch()
actionZoomInOneNotch
in interface IOpenPCL
public void actionShowHideZoomSliderPopup()
actionShowHideZoomSliderPopup
in interface IOpenPCL
public void actionShowZoomSliderPopup()
actionShowZoomSliderPopup
in interface IOpenPCL
public void actionHideZoomSliderPopup()
actionHideZoomSliderPopup
in interface IOpenPCL
public void actionZoomWidth()
actionZoomWidth
in interface IOpenPCL
public void actionZoomToWidth(int pWidthToFit)
actionZoomToWidth
in interface IOpenPCL
public void actionZoomWidth(PosView pPosView)
public void actionZoomTo(double pZoomFactor)
actionZoomTo
in interface IOpenPCL
public void actionSaveAs()
actionSaveAs
in interface IOpenPCL
actionSaveAs
in interface IPluginHooksOpenPCL
public void actionSaveOnePageToPclFile()
actionSaveOnePageToPclFile
in interface IOpenPCL
public void actionShowHideChangeTheLookPopup()
actionShowHideChangeTheLookPopup
in interface IOpenPCL
public void actionShowChangeTheLookPopup()
actionShowChangeTheLookPopup
in interface IOpenPCL
public void actionHideChangeTheLookPopup()
actionHideChangeTheLookPopup
in interface IOpenPCL
public void actionShowHideWindowControlPopup()
public void actionShowWindowControlPopup()
public void actionHideWindowControlPopup()
public void actionTileWindowsHorizontal()
actionTileWindowsHorizontal
in interface IOpenPCL
public void actionTileWindowsVertical()
actionTileWindowsVertical
in interface IOpenPCL
public void actionCascadeWindows()
actionCascadeWindows
in interface IOpenPCL
public void actionShowOptionsDialog(boolean pControlKeyPressed)
actionShowOptionsDialog
in interface IOpenPCL
public void actionShowHideHelpChoicesPopup()
actionShowHideHelpChoicesPopup
in interface IOpenPCL
public void actionShowHelpChoicesPopup()
actionShowHelpChoicesPopup
in interface IOpenPCL
public void actionHideHelpChoicesPopup()
actionHideHelpChoicesPopup
in interface IOpenPCL
public void actionShowLicenseInfo()
actionShowLicenseInfo
in interface IOpenPCL
public void actionHelpAbout()
actionHelpAbout
in interface IOpenPCL
public void actionAppIsExiting()
actionAppIsExiting
in interface IOpenPCL
public Frame getAppFrame()
getAppFrame
in interface IOpenPCL
public String getAppName()
getAppName
in interface IOpenPCL
getAppName
in interface IPluginHooksOpenPCL
public String getAppDescription()
getAppDescription
in interface IOpenPCL
getAppDescription
in interface IPluginHooksOpenPCL
public String getAppVersion()
getAppVersion
in interface IOpenPCL
getAppVersion
in interface IPluginHooksOpenPCL
public String getPackagePathLicenseInfo()
getPackagePathLicenseInfo
in interface IOpenPCL
getPackagePathLicenseInfo
in interface IPluginHooksOpenPCL
public String getPackageHelpAboutInfo()
getPackageHelpAboutInfo
in interface IOpenPCL
getPackageHelpAboutInfo
in interface IPluginHooksOpenPCL
public String getHiddenTagBaseString(int pTagIndex)
getHiddenTagBaseString
in interface IPluginHooksOpenPCL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |