| Overview | Package | Class | Tree | Index | Help | NetCharts Pro (Applets) 7.0 | ||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--netcharts.util.NFLoadParams
| Constructor Summary | |
| NFLoadParams(java.awt.Component comp,
java.applet.Applet app)
Create an object used for loading parameters. | |
| Method Summary | |
| void | addInitialParamsLoadedObserver(NFInitialParamsLoadedObserver ilo)
Add an NFInitialParamsLoadedObserver to this NFLoadParams. |
| void | clean()
Clean the parameter database for reuse. |
| void | dataBeanFailure(java.lang.Object db,
java.lang.String message)
This method is called when a databean has a fatal error. |
| java.util.Hashtable | dataBeanGetExtraParams(java.lang.Object db)
This method is called by a databean that wishes to know if there are any extra parameters available to it. |
| void | dataBeanInformation(java.lang.Object db,
java.lang.String info)
This method is called when a databean has information about its loading to provide. |
| void | dataBeanLoadData(java.lang.Object db,
java.lang.Object info,
java.lang.String param,
java.util.Vector data)
This method is called by a databean whenever it needs to load data associated with a given data source. |
| void | dataBeanLoadParams(java.lang.Object db,
java.lang.Object info,
java.lang.Object params)
This method is called by a databean whenever it needs to load parameters associated with a given data source. |
| void | dataBeanRequestInitialParamsLoadedNotification(java.lang.Object db)
This method is called by a databean that wishes to be notified of initial parameters being loaded through the NFInitialParamsLoadedObserver interface. |
| void | dataBeanUserInput(java.lang.Object db,
java.lang.Object info,
java.lang.String action)
This method is called by a databean whenever the user has interactively entered input. |
| java.applet.Applet | getApp()
Get the applet object of this NFLoadParams object. |
| java.lang.String | getCDL()
Get the CDL for this NFLoadParams object. |
| java.lang.String | getCDL(boolean includeAliases)
Get the CDL for this NFLoadParams object. |
| java.lang.String | getCDL(java.lang.String param,
java.lang.Object data)
Get the CDL representation for the given parameter with the given data. |
| java.lang.String | getCDLForDef(NFParamDef def,
java.lang.Object data)
Get the CDL representation for the given parameter definition with the given data. |
| java.lang.String | getCDLForSymbol(java.lang.Number data,
java.util.Hashtable symtable)
Get the CDL representation for the given symbol data and symbol table. |
| NFContext | getContext()
Get the context of this NFLoadParams object. |
| java.util.Hashtable | getDataBeanParameters()
Get the extra parameters to be given to requesting data beans. |
| NFParam | getParam()
Get the parameter object of this NFLoadParams object. |
| NFParse | getParse()
Get the parse object of this NFLoadParams object. |
| NFToken | getToken()
Get the tokenizer object of this NFLoadParams object. |
| boolean | loadData(java.util.Vector errors)
This method is called by the NFGraph object prior to drawing a chart if loadDataNeeded() returns true. |
| boolean | loadParams(java.applet.Applet app)
Parse all parameters defined within the <applet> tag of the invoking HTML file. |
| boolean | loadParams(NFDataBean db)
This method loads the data associated with the given databean. |
| boolean | loadParams(NFParamServ psv)
Create a new thread to process parameters coming from the server designated in the given NFParamServ object. |
| boolean | loadParams(java.lang.Object obj)
This method accepts any of the parameter types accepted by the other single value loadParams() methods. |
| boolean | loadParams(java.lang.String script)
Loads all parameters defined by the given parameter script, which may contain one or more parameter definitions. |
| boolean | loadParams(java.lang.StringBuffer script)
Loads all parameters defined by the given parameter script, which may contain one or more parameter definitions. |
| void | loadParams(java.lang.String host,
int port,
java.lang.String args,
java.awt.Component comp)
Load all parameters defined asychronously by an NFParamServer described by the given parameters. |
| void | loadParams(java.lang.String name,
java.util.Vector tokens)
Load the parameter definition given in the token vector for the given parameter name. |
| boolean | loadParams(java.net.URL url)
Process the given URL and load all parameters defined by it. |
| java.util.Properties | loadRuntimeProperties(java.util.Properties runtimeProperties)
Load the runtime properties defined in the applet's paramerters into the given Properties object and return that Properties. |
| boolean | reloadNeeded(java.util.Date timestamp)
Returns true if any of the data sources associated with this chart have changed since the given timestamp. |
| boolean | reloadNeeded(long timestamp)
Returns true if any of the data sources associated with this chart have changed since the given timestamp. |
| void | removeInitialParamsLoadedObserver(NFInitialParamsLoadedObserver ilo)
Remove an NFInitialParamsLoadedObserver from this NFLoadParams. |
| void | run()
This method is executed as a separate thread for each parameter server connection that has been requested. |
| void | setApp(java.applet.Applet app)
Specify applet associated with the parameter loading process. |
| void | setContext(NFContext context)
Set the context of this NFLoadParams object. |
| void | setDataBeanParameters(java.util.Hashtable dbParams)
Set the extra parameters to be given to requesting data beans. |
| void | setParam(NFParam param)
Assign the given parameter object to the NFLoadParams object. |
| void | setParse(NFParse parse)
Assign the given parse object to the NFLoadParams object. |
| void | start()
This method is called to start separate threads for each parameter server connection currently specified. |
| void | stop()
This method is called to stop all current parameter server threads. |
| Constructor Detail |
public NFLoadParams(java.awt.Component comp,
java.applet.Applet app)
comp
- Component used as the parent for any dialog windows
needed when loading parameters.
app
- Applet will be used to resolve pathnames(if no context is
set), and load and process images.| Method Detail |
public void setContext(NFContext context)
context
- The context to set.public NFContext getContext()
public void setParam(NFParam param)
param
- The NFParam to set.public NFParam getParam()
public void setParse(NFParse parse)
param
- The NFParse to set.public NFParse getParse()
public NFToken getToken()
public void setApp(java.applet.Applet app)
app
- The Applet to set.public java.applet.Applet getApp()
public boolean loadParams(java.applet.Applet app)
throws java.lang.Exception
name=NFParamURL value="URL"
name=NFParamScript value="script of parameter definitions"
name=NFParamServer value="hostname:port/arguments"
name=NFFontEncoding value="encoding type"
app
- The applet from which to load parameters.
public boolean loadParams(java.lang.String script)
throws java.lang.Exception
script
- The cdl script from which to load parameters.
public boolean loadParams(java.lang.StringBuffer script)
throws java.lang.Exception
script
- The cdl script from which to load parameters.
public boolean loadParams(java.net.URL url)
throws java.lang.Exception
url
- The url from which to load parameters.
public void loadParams(java.lang.String host,
int port,
java.lang.String args,
java.awt.Component comp)
throws java.lang.Exception
host
- The parameter server hostname.
port
- The parameter server port.
args
- The parameter server arguments.
comp
- The component from whose Frame dialogs will be created.
public boolean loadParams(NFParamServ psv)
throws java.lang.Exception
psv
- The Parameter server.
public boolean loadParams(NFDataBean db)
throws java.lang.Exception
db
- The DataBean to load.
public boolean loadParams(java.lang.Object obj)
throws java.lang.Exception
obj
- The Object to load.
public void loadParams(java.lang.String name,
java.util.Vector tokens)
throws java.lang.Exception
name
- The parameter name.
tokens
- The parameter value separated into tokens.public void start()
public void stop()
public void run()
public boolean reloadNeeded(long timestamp)
timestamp
- The time on which to base the comparaion.public boolean reloadNeeded(java.util.Date timestamp)
timestamp
- The time on which to base the comparaion.
public boolean loadData(java.util.Vector errors)
throws java.lang.Exception
errors
- Errors are placed in this Vector if non-null.
public java.lang.String getCDLForSymbol(java.lang.Number data,
java.util.Hashtable symtable)
data
- The symbol data.
symtable
- The symbol table.
public java.lang.String getCDLForDef(NFParamDef def,
java.lang.Object data)
def
- The parameter definition.
data
- The parameter value.
public java.lang.String getCDL(java.lang.String param,
java.lang.Object data)
param
- The parameter name.
data
- The parameter value.public java.lang.String getCDL()
NFChart chart = NFGlobal.getChart(NFGlobal.BARCHART);
chart.init();
chart.start();
NFLoadParams lp = chart.graph.getLoadParams();
lp.addInitialParamsLoadedObserver(this);
chart.loadParams(CDL);
.
.
.
public void initialParamsLoaded(Object lp) {
String loadedCDL = chart.getCDL();
}
public void initialParamsLoadFailure(Object lp, String msg) {
//AN ERROR OCCURED DURING LOADING!
}
public java.lang.String getCDL(boolean includeAliases)
NFChart chart = NFGlobal.getChart(NFGlobal.BARCHART);
chart.init();
chart.start();
NFLoadParams lp = chart.graph.getLoadParams();
lp.addInitialParamsLoadedObserver(this);
chart.loadParams(CDL);
.
.
.
public void initialParamsLoaded(Object lp) {
String loadedCDL = chart.getCDL();
}
public void initialParamsLoadFailure(Object lp, String msg) {
//AN ERROR OCCURED DURING LOADING!
}
includeAliases
- Whether to include both the normal parameters
and their aliases, or just the normal parameters.
public void dataBeanLoadData(java.lang.Object db,
java.lang.Object info,
java.lang.String param,
java.util.Vector data)
throws java.lang.Exception
db
- The DataBean.
info
- An Object argument.
param
- The parameter this data is associated with.
data
- The data.
public void dataBeanLoadParams(java.lang.Object db,
java.lang.Object info,
java.lang.Object params)
throws java.lang.Exception
db
- The DataBean.
info
- An Object argument.
params
- The parameters.
public void dataBeanUserInput(java.lang.Object db,
java.lang.Object info,
java.lang.String action)
throws java.lang.Exception
db
- The DataBean.
info
- An Object argument.
action
- The action.
public void dataBeanFailure(java.lang.Object db,
java.lang.String message)
db
- The DataBean.
message
- The error message.
public void dataBeanInformation(java.lang.Object db,
java.lang.String info)
db
- The DataBean.
info
- The information.public void dataBeanRequestInitialParamsLoadedNotification(java.lang.Object db)
db
- The DataBean.public java.util.Hashtable dataBeanGetExtraParams(java.lang.Object db)
db
- The DataBean.public void setDataBeanParameters(java.util.Hashtable dbParams)
public java.util.Hashtable getDataBeanParameters()
public void addInitialParamsLoadedObserver(NFInitialParamsLoadedObserver ilo)
ilo
- The NFInitialParamsLoadedObserver.public void removeInitialParamsLoadedObserver(NFInitialParamsLoadedObserver ilo)
ilo
- The NFInitialParamsLoadedObserver.public void clean()
public java.util.Properties loadRuntimeProperties(java.util.Properties runtimeProperties)
runtimeProperties
- The Properties to load the runtime properties
into; if it is null a new Properties is created.| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2010 |
Last Modified: Jun 29, 2010 |