Documentation of 'kcl.waterloo.deploy.gif.GJGifSequencer' Java class
GJGifSequencer
kcl.waterloo.deploy.gif

Class GJGifSequencer

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void actionPerformed(java.awt.event.ActionEvent e) 
      void add()
      Add the graphics of the component as a new frame to the GIF.
      void close()
      Closes the GIF writer and associated output streams.
      void close(java.lang.String filename)
      Close call used when a memory cached output stream is used.
      static GJGifSequencer createInstance(java.awt.Component comp, int interval, boolean loopFlag)
      Factory method to create a GIF writer using a memory cache for output.
      static GJGifSequencer createInstance(java.lang.String fileName, java.awt.Component comp, int interval, boolean loopFlag)
      Factory method to create a GIF writer writing to a file output stream.
      boolean isMemoryCached()
      Returns true is this GIF writer users a memory MemoryCacheImageOutputStream, false otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createInstance

        public static GJGifSequencer createInstance(java.lang.String fileName,
                                                    java.awt.Component comp,
                                                    int interval,
                                                    boolean loopFlag)
                                             throws java.io.FileNotFoundException,
                                                    javax.imageio.IIOException,
                                                    java.io.IOException
        Factory method to create a GIF writer writing to a file output stream.
        Parameters:
        fileName - String description of the file to write
        comp - the Component to animate
        interval - interval between frames (ms)
        loopFlag - true to loop continuously
        Returns:
        a GIF writer
        Throws:
        java.io.FileNotFoundException
        javax.imageio.IIOException
        java.io.IOException
      • createInstance

        public static GJGifSequencer createInstance(java.awt.Component comp,
                                                    int interval,
                                                    boolean loopFlag)
                                             throws java.io.IOException
        Factory method to create a GIF writer using a memory cache for output.
        Parameters:
        comp - the Component to animate
        interval - interval between frames (ms)
        loopFlag - true to loop continuously
        Returns:
        a GIF writer
        Throws:
        java.io.FileNotFoundException
        javax.imageio.IIOException
        java.io.IOException
      • add

        public void add()
                 throws java.io.IOException
        Add the graphics of the component as a new frame to the GIF.
        Specified by:
        add in interface GJSequencerInterface
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Closes the GIF writer and associated output streams.
        Overrides:
        close in class GifSequenceWriter
        Throws:
        java.io.IOException
      • close

        public void close(java.lang.String filename)
                   throws java.io.IOException
        Close call used when a memory cached output stream is used. Closes the GIF writer and writes the contents to the named file.
        Parameters:
        filename - String descriptor of the file to write.
        Throws:
        java.io.IOException
      • isMemoryCached

        public boolean isMemoryCached()
        Returns true is this GIF writer users a memory MemoryCacheImageOutputStream, false otherwise.
        Returns:
        true is this GIF writer users a memory MemoryCacheImageOutputStream
      • actionPerformed

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.