net.sf.jomic.comic
Class ComicModel

java.lang.Object
  extended by net.sf.jomic.comic.ComicModel

public class ComicModel
extends java.lang.Object

Representation of a comic book.

Author:
Thomas Aglassinger

Constructor Summary
ComicModel(java.io.File newArchive)
          Creates ComicModel from newArchive.
ComicModel(java.io.File newComicArchiveFile, ProgressFrame newProgressFrame)
          Creates ComicModel from newArchive.
 
Method Summary
 void check(javax.swing.JProgressBar bar)
          Attempt to extract and parse all images.
 void dispose()
          Release all resources related to the comic.
 java.io.File getCacheDir()
          Get directory where extracted copies of images are stored.
 ComicImage getComicImage(int index)
          Get ComicImage at index.
 java.awt.image.RenderedImage getImage(int index)
          Get image at index.
 int getImageCount()
          Get number of images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComicModel

public ComicModel(java.io.File newArchive)
           throws java.io.IOException,
                  java.lang.InterruptedException
Creates ComicModel from newArchive.

Parameters:
newArchive - Description of the parameter
Throws:
java.io.IOException - Description of the exception
java.lang.InterruptedException - Description of the exception

ComicModel

public ComicModel(java.io.File newComicArchiveFile,
                  ProgressFrame newProgressFrame)
           throws java.io.IOException,
                  java.lang.InterruptedException
Creates ComicModel from newArchive.

Parameters:
newComicArchiveFile - Description of the parameter
newProgressFrame - Description of the parameter
Throws:
java.io.IOException - Description of the exception
java.lang.InterruptedException - Description of the exception
Method Detail

getImage

public final java.awt.image.RenderedImage getImage(int index)
Get image at index.

See Also:
getComicImage(int)

getImageCount

public final int getImageCount()
Get number of images.


getCacheDir

public java.io.File getCacheDir()
Get directory where extracted copies of images are stored.


getComicImage

public ComicImage getComicImage(int index)
Get ComicImage at index.

See Also:
getImage(int)

dispose

public final void dispose()
Release all resources related to the comic.


check

public void check(javax.swing.JProgressBar bar)
Attempt to extract and parse all images.