org.problets.lib.stretchtext
Class StretchTextModel

java.lang.Object
  extended by org.problets.lib.stretchtext.StretchTextModel

public class StretchTextModel
extends java.lang.Object

Processes a text file and creates the stretch text model corresponding to its contents. Could extend it to contain multiple StretchTextItemModels in the future

Author:
Amruth Kumar

Constructor Summary
StretchTextModel(javax.swing.JApplet applet, java.lang.String path, java.lang.String fileName)
          Constructor used when all the graphic files are in the same directory
StretchTextModel(javax.swing.JApplet applet, java.lang.String pathRoot, java.lang.String pathLeaf, java.lang.String fileName)
          Constructor used when the graphic files may be spread over a hierarchy of directories.
 
Method Summary
 StretchTextItemModel getContent()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StretchTextModel

public StretchTextModel(javax.swing.JApplet applet,
                        java.lang.String path,
                        java.lang.String fileName)
Constructor used when all the graphic files are in the same directory


StretchTextModel

public StretchTextModel(javax.swing.JApplet applet,
                        java.lang.String pathRoot,
                        java.lang.String pathLeaf,
                        java.lang.String fileName)
Constructor used when the graphic files may be spread over a hierarchy of directories. Graphic images will be loaded from pathLeaf upto pathRoot, wherever they are found first.

Method Detail

getContent

public StretchTextItemModel getContent()

main

public static void main(java.lang.String[] args)