info.evccit.utils
Class QImageSize

java.lang.Object
  extended byinfo.evccit.utils.QImageSize

public class QImageSize
extends java.lang.Object


Constructor Summary
QImageSize()
           
 
Method Summary
static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
          Create a Vector giving information about a file or files given in a node list.
static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] basePathList, net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
          Create a Vector giving image Information from a base path name and file list given as arrays of Node[].
static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] basePathList, java.lang.String fileName)
          Create a Vector giving information about a file from a base path in a Node[] and fileName in a String.
static java.util.Vector getDimensions(java.lang.String fileName)
          Create a Vector giving information about an image given its file name.
static java.util.Vector getDimensions(java.lang.String basePath, net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
          Create a Vector of image information from a base path String and fileName Node[] array.
static java.util.Vector getDimensions(java.lang.String pathName, java.lang.String fileName)
          Create a Vector giving information about a file given its path and file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QImageSize

public QImageSize()
Method Detail

getDimensions

public static java.util.Vector getDimensions(java.lang.String fileName)
Create a Vector giving information about an image given its file name. Hands the file name to getFileDimensions( ), which returns a Dimension object. getDimensions() then creates a Vector whose first element is the full path name (with / as the file separator). The next two elements are Integers giving the file's width and height.

Parameters:
fileName - Complete path and file name
Returns:
A Vector containing filename, width, and height

getDimensions

public static java.util.Vector getDimensions(java.lang.String pathName,
                                             java.lang.String fileName)
Create a Vector giving information about a file given its path and file name. Append the filename to the pathName and then call getDimensions( String fileName )

Parameters:
pathName - Base path name for the file
fileName - File name (without path)
Returns:
A Vector containing filename, width, and height

getDimensions

public static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] basePathList,
                                             java.lang.String fileName)
Create a Vector giving information about a file from a base path in a Node[] and fileName in a String. The base path name is the text from the first node in basePathList. Collect the text from each node in the fileNameList, and pass it with the base path to getDimensions( String pathName, string fileName ).

Parameters:
basePathList - An array of nodes, the first of which contains the base path for all the files
fileName - A String containing a file name
Returns:
A Node containing one <imageSize> element

getDimensions

public static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
Create a Vector giving information about a file or files given in a node list. Collect the text from each node in the fileNameList, and use it as an argument to getDimensions( String fileName ).

Parameters:
fileNameList - A list of nodes, each of whose text content is a file name
Returns:
A Vector containing one set of filename, width, and height for each of the file names in the fileNameList.

getDimensions

public static java.util.Vector getDimensions(net.xfra.qizxopen.xquery.dm.Node[] basePathList,
                                             net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
Create a Vector giving image Information from a base path name and file list given as arrays of Node[]. The base path name is the text from the first node in basePathList. Collect the text from each node in the fileNameList, and pass it with the base path to getDimensions( String pathName, string fileName ).

Parameters:
basePathList - A Node[] array, the first of which contains the base path for all the files
fileNameList - A Node[] array, each of whose text content is a file name
Returns:
A Vector containing one set of filename/width/height for each of the file names in the fileNameList.

getDimensions

public static java.util.Vector getDimensions(java.lang.String basePath,
                                             net.xfra.qizxopen.xquery.dm.Node[] fileNameList)
Create a Vector of image information from a base path String and fileName Node[] array. Collect the text from each node in the fileNameList, and pass it with the base path to getDimensions( String pathName, string fileName ).

Parameters:
basePath - A String containing the base path for all the files
fileNameList - A list of nodes, each of whose text content is a file name
Returns:
A Vector containing one filename/width/height set for each of the file names in the fileNameList.