org.problets.lib.stretchtext
Class StretchTextItemModel

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

public class StretchTextItemModel
extends java.lang.Object

Holds one item, consisting of text, optional picture and optional elaboration of the text, which is a vector of StretchTextItemModels.

Author:
Amruth Kumar

Constructor Summary
StretchTextItemModel(javax.swing.JApplet applet, java.lang.String pathRoot, java.lang.String pathLeaf, java.util.Vector data, int inDepth)
          Constructor to be used when images are involved, and may be found in a hierarchy of directories - Images in pathLeaf, if found, will override images in pathRoot, where a default version will always be found.
StretchTextItemModel(javax.swing.JApplet applet, java.lang.String path, java.util.Vector data, int inDepth)
          Constructor to be used when images are involved, and are all found in the same directory
StretchTextItemModel(java.lang.String path, java.util.Vector data, int inDepth)
          Constructor to be called when no images are involved
 
Method Summary
 int getDepth()
           
 java.util.Vector getElaboration()
           
 java.awt.Image getImage()
           
 java.lang.String getText()
           
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

StretchTextItemModel

public StretchTextItemModel(java.lang.String path,
                            java.util.Vector data,
                            int inDepth)
Constructor to be called when no images are involved


StretchTextItemModel

public StretchTextItemModel(javax.swing.JApplet applet,
                            java.lang.String path,
                            java.util.Vector data,
                            int inDepth)
Constructor to be used when images are involved, and are all found in the same directory


StretchTextItemModel

public StretchTextItemModel(javax.swing.JApplet applet,
                            java.lang.String pathRoot,
                            java.lang.String pathLeaf,
                            java.util.Vector data,
                            int inDepth)
Constructor to be used when images are involved, and may be found in a hierarchy of directories - Images in pathLeaf, if found, will override images in pathRoot, where a default version will always be found.

Method Detail

getText

public java.lang.String getText()

getElaboration

public java.util.Vector getElaboration()

getImage

public java.awt.Image getImage()

getDepth

public int getDepth()

main

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