Class StreamPane

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class StreamPane
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Author:
    Khyrul Bashar A class that shows the COSStream.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamPane​(org.apache.pdfbox.cos.COSStream cosStream, boolean isContentStream, boolean isThumb, org.apache.pdfbox.cos.COSDictionary resourcesDic)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent actionEvent)  
      javax.swing.JComponent getPanel()  
      void init()
      Initialization, to be called immediately after construction.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamPane

        public StreamPane​(org.apache.pdfbox.cos.COSStream cosStream,
                          boolean isContentStream,
                          boolean isThumb,
                          org.apache.pdfbox.cos.COSDictionary resourcesDic)
                   throws java.io.IOException
        Constructor.
        Parameters:
        cosStream - COSStream instance.
        isContentStream - boolean instance. This says if a stream is content stream or not.
        isThumb - This says if a stream is an thumbnail image or not.
        resourcesDic - COSDictionary instance that holds the resource dictionary for the stream.
        Throws:
        java.io.IOException - if there is an I/O error during internal data transfer.
    • Method Detail

      • init

        public void init()
                  throws java.io.IOException
        Initialization, to be called immediately after construction.
        Throws:
        java.io.IOException - if there is an I/O error during internal data transfer.
      • getPanel

        public javax.swing.JComponent getPanel()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent actionEvent)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener