|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.util.NFCdf
public class NFCdf
This class is used to represent a chart definition. It provides methods to process NFHtmlFile tag lists and to load parameters directly from CDFs.
Field Summary | |
---|---|
NFHtmlTag |
appletTag
|
java.lang.String |
codebase
|
java.util.Vector |
exprs
|
java.lang.String |
fileBase
|
int |
height
|
int |
id
|
boolean |
maintainScript
|
java.lang.String |
name
|
java.util.Hashtable |
params
|
java.util.Vector |
script
|
java.util.Vector |
tags
|
int |
type
|
java.net.URL |
url
|
int |
width
|
Constructor Summary | |
---|---|
NFCdf()
Create a new object for this class. |
Method Summary | |
---|---|
void |
loadParams(NFLoadParams lp,
java.util.Vector errors)
Parse each parameter definition in the current chart, based on the given parameter object. |
static void |
parseCDF(java.io.InputStream is,
java.util.Vector charts)
Process the chart definition parameters in the given stream and append each chart definition found as a NFCdf object to the given list. |
static void |
parseCDF(java.io.InputStream is,
java.util.Vector charts,
NFContext context)
Process the chart definition parameters in the given stream and append each chart definition found as a NFCdf object to the given list. |
static void |
parseCDF(java.io.InputStream is,
java.util.Vector charts,
java.lang.String filebase,
NFContext context)
|
static void |
parseCDF(java.io.InputStream is,
java.util.Vector charts,
java.lang.String filebase,
java.lang.String queryString,
NFContext context)
|
static void |
parseCDF(java.io.InputStream is,
java.util.Vector charts,
java.lang.String filebase,
java.lang.String queryString,
NFContext context,
boolean useBufferedStream)
|
static void |
parseCDF(java.lang.String filename,
java.util.Vector charts)
Process the chart definition parameters in the given file, which may be a URL or a local filename, and append each chart definition found as a NFCdf object to the given list. |
static void |
parseCDF(java.lang.String filename,
java.util.Vector charts,
NFContext context)
Process the chart definition parameters in the given file, which may be a URL or a local filename, and append each chart definition found as a NFCdf object to the given list. |
static void |
parseCDL(java.lang.String cdl,
java.util.Vector charts)
Process the chart definition parameters in the given string and append each chart definition found as a NFCdf object to the given list. |
static void |
parseCDL(java.lang.String cdl,
java.util.Vector charts,
NFContext context)
Process the chart definition parameters in the given string and append each chart definition found as a NFCdf object to the given list. |
static void |
parseHtml(java.util.Vector tags)
Process the list of HTML tags looking for Chart APPLET tags. |
void |
printCDF(java.io.PrintWriter ps)
Print the chart parameters for the current chart object to the given print stream as a CDF parameter set. |
void |
printCDF(java.io.PrintWriter ps,
java.lang.String prefix)
Print the chart parameters for the current chart object to the given print stream as a CDF parameter set. |
void |
printChartScript(java.io.PrintWriter ps,
int index)
Print the chart parameters as an NFChartScript parameter within an applet tag. |
void |
printHtml(java.io.PrintWriter ps,
boolean newline)
Print the chart parameters for the current chart object to the given print stream as an HTML APPLET tag. |
void |
printMultiChart(java.io.PrintWriter ps)
Print the MultiChart applet parameters as part of an Applet tag. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int id
public int type
public java.lang.String name
public java.lang.String codebase
public int width
public int height
public NFHtmlTag appletTag
public java.util.Vector tags
public java.util.Hashtable params
public java.util.Vector exprs
public java.util.Vector script
public boolean maintainScript
public java.lang.String fileBase
public java.net.URL url
Constructor Detail |
---|
public NFCdf()
Method Detail |
---|
public static void parseHtml(java.util.Vector tags) throws java.lang.Exception
tags
- Vector of NFHtmlTag objects.
java.lang.Exception
- If a parse error occurs.public static void parseCDF(java.lang.String filename, java.util.Vector charts) throws java.lang.Exception
filename
- The file to parse.charts
- Resulting NFCdf objects are placed here.
java.lang.Exception
- If a parse error occurs.public static void parseCDF(java.lang.String filename, java.util.Vector charts, NFContext context) throws java.lang.Exception
filename
- The file to parse.charts
- Resulting NFCdf objects are placed here.context
- The context to use for path resolution and authenication
information retrieval.
java.lang.Exception
- If a parse error occurs.public static void parseCDL(java.lang.String cdl, java.util.Vector charts) throws java.lang.Exception
cdl
- The string of cdl.charts
- Resulting NFCdf objects are placed here.
java.lang.Exception
- If a parse error occurs.public static void parseCDL(java.lang.String cdl, java.util.Vector charts, NFContext context) throws java.lang.Exception
cdl
- The string of cdl.charts
- Resulting NFCdf objects are placed here.context
- The context to use for path resolution and authenication
information retrieval.
java.lang.Exception
- If a parse error occurs.public static void parseCDF(java.io.InputStream is, java.util.Vector charts) throws java.lang.Exception
is
- The stream of cdl.charts
- Resulting NFCdf objects are placed here.
java.lang.Exception
- If a parse error occurs.public static void parseCDF(java.io.InputStream is, java.util.Vector charts, NFContext context) throws java.lang.Exception
is
- The stream of cdl.charts
- Resulting NFCdf objects are placed here.context
- The context to use for path resolution and authenication
information retrieval.
java.lang.Exception
- If a parse error occurs.public static void parseCDF(java.io.InputStream is, java.util.Vector charts, java.lang.String filebase, NFContext context) throws java.lang.Exception
java.lang.Exception
public static void parseCDF(java.io.InputStream is, java.util.Vector charts, java.lang.String filebase, java.lang.String queryString, NFContext context) throws java.lang.Exception
java.lang.Exception
public static void parseCDF(java.io.InputStream is, java.util.Vector charts, java.lang.String filebase, java.lang.String queryString, NFContext context, boolean useBufferedStream) throws java.lang.Exception
java.lang.Exception
public void loadParams(NFLoadParams lp, java.util.Vector errors) throws java.lang.Exception
lp
- The NFLoadParams to use to parse the parameters.errors
- The errors produced are placed in this vector.
java.lang.Exception
- If a parse error occurs.public void printHtml(java.io.PrintWriter ps, boolean newline)
ps
- The stream to write on.newline
- Whether to print a newline after each tag or not.public void printCDF(java.io.PrintWriter ps)
ps
- The stream to write on.public void printCDF(java.io.PrintWriter ps, java.lang.String prefix)
ps
- The stream to write on.prefix
- What to print before each parameter.public void printChartScript(java.io.PrintWriter ps, int index)
ps
- The stream to write on.index
- The NFChartScript index.public void printMultiChart(java.io.PrintWriter ps)
ps
- The stream to write on.
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |