|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.nls.vtt.Api.VttApi
public class VttApi
This class is the VTT Java API class. Its data members include a list of VttObj for opening multiple Vtt files.
History:
Method Summary | |
---|---|
static void |
Add()
Add a VTT window without opening a VTT file. |
static void |
Add(java.io.File inFile)
Add a VTT window with opening a VTT file. |
static void |
Add(java.lang.String inFileStr)
Add a VTT window with opening a VTT file. |
static void |
CleanUp()
Clean up VttApi Java up. |
static boolean |
Contains(java.io.File inFile)
Get a boolean flag if the specified VTT Java File is opened. |
static int |
GetIndexByFile(java.io.File inFile)
Get the index by specifying VTT File Java object. |
static int |
GetIndexByVttObj(VttObj vttObj)
Get the index by specifying vttObj Java object. |
static VttObj |
GetLastVttObj()
Get the last VttObj Java object from VTT. |
static int |
GetSize()
Get the size of all vttObj list (opened vtt file/window). |
static VttObj |
GetVttObjAt(int index)
Get a VttObj Java object from VTT by specifying index. |
static void |
Init()
Initiate VTT without opening any VTT file. |
static void |
Init(java.io.File inFile,
boolean verbose)
Initiate VTT with specifying VTT File object and verbose flag. |
static void |
Init(java.io.File inFile,
java.lang.String configFile,
boolean verbose)
Initiate VTT with specifying VTT File object, configuration file, and verbose flag. |
static void |
Init(java.io.File inFile,
java.lang.String configFile,
int xPos,
int yPos,
boolean verbose)
Initiate VTT with specifying VTT File object, configuration file, initial x position and y position of VTT window, and verbose flag. |
static void |
Init(java.lang.String inFileStr,
boolean verbose)
Initiate VTT with specifying VTT file and verbose flag. |
static void |
Init(java.lang.String inFileStr,
java.lang.String configFile,
boolean verbose)
Initiate VTT with specifying VTT file, configuration file, and verbose flag. |
static void |
Init(VttObj vttObj)
Initiate VTT with specifying VttObj Java object. |
static void |
RemoveAt(int index)
Remove a VTT window with specifying an index. |
static void |
SetFocusAt(int index)
Set focus at the specified VTT window by index. |
static java.lang.String |
ToString()
Convert information of all opened VTT files of VttApi to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void Init()
public static void Init(java.lang.String inFileStr, boolean verbose)
inFileStr
- the absolute path of VTT fileverbose
- flag of verbose on reading VTT filepublic static void Init(java.lang.String inFileStr, java.lang.String configFile, boolean verbose)
inFileStr
- the absolute path of VTT fileconfigFile
- the absolute path of VTT configuration fileverbose
- flag of verbose on reading VTT filepublic static void Init(java.io.File inFile, boolean verbose)
inFile
- the Java File object of VTT fileverbose
- flag of verbose on reading VTT filepublic static void Init(java.io.File inFile, java.lang.String configFile, boolean verbose)
inFile
- the Java File object of VTT fileconfigFile
- the absolute path of VTT configuration fileverbose
- flag of verbose on reading VTT filepublic static void Init(VttObj vttObj)
vttObj
- Java VttObj objectpublic static void Init(java.io.File inFile, java.lang.String configFile, int xPos, int yPos, boolean verbose)
inFile
- the Java File object of VTT fileconfigFile
- the absolute path of VTT configuration filexPos
- initial x position of VTT windowyPos
- initial y position of VTT windowverbose
- flag of verbose on reading VTT filepublic static void CleanUp()
public static void Add()
public static void Add(java.lang.String inFileStr)
inFileStr
- the absolute path of VTT filepublic static void Add(java.io.File inFile)
inFile
- the Java File object of VTT filepublic static void RemoveAt(int index)
index
- the index of vttObj list to be removedpublic static int GetSize()
public static int GetIndexByVttObj(VttObj vttObj)
vttObj
- vttObj Java object of interested
public static int GetIndexByFile(java.io.File inFile)
inFile
- the Java File object of interested
public static boolean Contains(java.io.File inFile)
inFile
- the Java File object of interested
public static VttObj GetVttObjAt(int index)
index
- the index of intertested
public static VttObj GetLastVttObj()
public static void SetFocusAt(int index)
index
- the index of intertestedpublic static java.lang.String ToString()
|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |