Overview | Package | Class | Tree | Index | Help NetCharts 4.5
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class netcharts.apps.
NFMultiChartApp

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--netcharts.chart.NFChart
                                |
                                +--netcharts.apps.NFApplet
                                      |
                                      +--netcharts.apps.NFMultiChartApp

public class NFMultiChartApp
extends NFApplet
implements NFParamObserver
This is a wrapper class for the NFMultiChart class, allowing it to serve as an applet. See MultiChart user documentation for details concerning the applet parameters supported by this class.

See Also:
Serialized Form

Inner classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
java.util.Vector charts
          Charts
NFMultiChart mc
          Underlying multichart object
 
Fields inherited from class netcharts.chart.NFChart
graph, url
 
Constructor Summary
NFMultiChartApp()
          Create a new MultiChart object.
NFMultiChartApp(java.applet.Applet app)
          Create a new MultiChart applet and specify the overall applet in which it is embedded.
 
Method Summary
void addBreak()
          Adds a "BREAK" to the sash layout at the end of the currently displayed charts
void addChart(NFCdf cdf)
          Add a new chart to the current list.
void addChart(NFChart chart)
          Add the given Chart.
void addChart(NFMultiChartApp mcFrom)
          Add each of the charts in the given multichart to the current multichart.
void addChart(java.lang.String chartName, int type, int width, int height)
          Add a new chart to the current list.
void addChart(java.lang.String chartName, int type, int width, int height, NFChart chart)
          Add a new chart to the current list.
void addCharts(java.util.Vector newCharts)
          Add a vector of charts to the MultiChart.
void adoptLayout(NFMultiChartApp mcFrom)
          Modifies the layout (order and size) of the charts in this multichart to match that of the multichart specified.
void createChart(java.lang.String name, int type)
          Create a Chart with the given name and type.
void createChart(java.lang.String name, int type, NFChart chart)
          Create a Chart with the given name and type.
void enableDrag(boolean dragEnabled)
          Toggle Chart dragging.
NFChart getChart(java.lang.String chartName)
          Returns the NFChart object for the chart with the given name, as specified in the Chart parameter.
NFChart getChartAt(int index)
          Returns the NFChart object for the chart at the index specified.
java.util.Enumeration getChartNames()
          Returns an enumeration of all chart names currently defined in the multi chart.
void init()
          This method must be called after a MultiChart applet is created in order to initially layout the MultiChart and to load the applet parameters.
void insertChart(NFChart chart, int index)
          Insert the given chart at the given index.
void insertChart(java.lang.String chartName, int type, int width, int height, NFChart chart, int index)
          Add a new chart to the current list at the position specified.
void layout()
          Layout the charts.
void layoutCharts()
          Layout the charts.
void loadParams(NFParam param)
          Load all the parameters.
void paramChanged(java.lang.Object observable, java.lang.String arg, java.lang.Object o)
          This method implements the NFParamObserver interface.
void printAll(java.awt.Graphics g)
          This method is provided to support print processing under JDK 1.1
void releaseCharts()
          Release all charts.
void removeAllCharts()
          Remove all charts from the multichart.
void removeChart(NFChart chart)
          Remove the specified chart from the multichart.
void removeChart(java.lang.String chartName)
          Remove the chart with the given name from the multichart.
void replaceChart(NFChart chart, int index)
          Replace the given chart at the given index.
void replaceChart(java.lang.String newChartName, int type, int width, int height, NFChart chart, int index)
          Replace the given chart at the given index.
void replaceChart(java.lang.String oldChartName, java.lang.String newChartName, int type, int width, int height, NFChart chart)
          Replace the given chart at the given index.
void setDragImageSize(java.awt.Dimension d)
          Set the size of the image used in dragging.
void start()
          Start all the Charts processing.
void stop()
          Stop all the Charts processing.
void updateChartsParam()
          Update the internally maintained Charts parameters.
void useImage(boolean useImage)
          Toggle the use of images as opposed to active Charts.
 
Methods inherited from class netcharts.chart.NFChart
clean, display, drawImage, getApplet, getAppletInfo, getCdf, getCDL, getChart, getChart, getChart, getChart, getContext, getErrors, getIndex, getLoadAppletParamsOnInit, getMetaData, getMetaDataKeys, getModified, getName, getParam, getParam, getTextualDescription, init, loadParams, loadParams, loadParams, loadParams, loadParams, loadParamsJS, preferredSize, printAll, reloadChart, reloadChart, reloadNeeded, reshape, resize, set, set, set, set, set, set, setApplet, setCdf, setContext, setLoadAppletParamsOnInit, setModified, setScale, start, stop
 

Field Detail

mc

public NFMultiChart mc
Underlying multichart object

charts

public java.util.Vector charts
Charts
Constructor Detail

NFMultiChartApp

public NFMultiChartApp()
Create a new MultiChart object. This constructor should only be called by standalone Java applications.

NFMultiChartApp

public NFMultiChartApp(java.applet.Applet app)
Create a new MultiChart applet and specify the overall applet in which it is embedded. This constructor should be called by any applet that embeds a MultiChart. The reference to the calling applet is used to process applet parameters and to access certain image processing capabilities.
Parameters:
app - Applet to use for parameter loading.
Method Detail

init

public void init()
This method must be called after a MultiChart applet is created in order to initially layout the MultiChart and to load the applet parameters.
Overrides:
init in class NFChart

printAll

public void printAll(java.awt.Graphics g)
This method is provided to support print processing under JDK 1.1
Parameters:
g - The Graphics to print to.
Overrides:
printAll in class NFChart

addChart

public void addChart(NFCdf cdf)
Add a new chart to the current list.
Parameters:
cdf - The Cdf definition to add.

addChart

public void addChart(java.lang.String chartName,
                     int type,
                     int width,
                     int height)
Add a new chart to the current list. The width and height values are used as the initial "weights" for determining the layout. If the name is "BREAK" or the type is NFGlobal.BREAK, then a new row/col will be started.
Parameters:
chartName - The new Chart name.
type - The new Chart type.
width - The new Chart width.
height - The new Chart height.

addChart

public void addChart(NFChart chart)
Add the given Chart.
Parameters:
chart - The Chart to add.

addChart

public void addChart(java.lang.String chartName,
                     int type,
                     int width,
                     int height,
                     NFChart chart)
Add a new chart to the current list. The width and height values are used as the initial "weights" for determining the layout. If the name is "BREAK" or the type is NFGlobal.BREAK, then a new row/col will be started.

If the graph parameter is null, then it will be used as the graph. Otherwise, a new NFGraph object of the appropriate type will be created.

Parameters:
chartName - The new Chart name.
type - The new Chart type.
width - The new Chart width.
height - The new Chart height.
chart - The Chart to add.

addCharts

public void addCharts(java.util.Vector newCharts)
Add a vector of charts to the MultiChart.
Parameters:
newCharts - A Vector of charts.

addChart

public void addChart(NFMultiChartApp mcFrom)
Add each of the charts in the given multichart to the current multichart.
Parameters:
mcFrom - The MultiChart to get the other charts from.

addBreak

public void addBreak()
Adds a "BREAK" to the sash layout at the end of the currently displayed charts

insertChart

public void insertChart(NFChart chart,
                        int index)
Insert the given chart at the given index.
Parameters:
chart - The Chart to insert.

insertChart

public void insertChart(java.lang.String chartName,
                        int type,
                        int width,
                        int height,
                        NFChart chart,
                        int index)
Add a new chart to the current list at the position specified. The width and height values are used as the initial "weights" for determining the layout. If the name is "BREAK" or the type is NFGlobal.BREAK, then a new row/col will be started.

If the graph parameter is null, then it will be used as the graph. Otherwise, a new NFGraph object of the appropriate type will be created.

Parameters:
chartName - The new Chart name.
type - The new Chart type.
width - The new Chart width.
height - The new Chart height.
chart - The Chart to insert.

removeChart

public void removeChart(java.lang.String chartName)
Remove the chart with the given name from the multichart.
Parameters:
chartName - The name of the Chart to remove.

removeChart

public void removeChart(NFChart chart)
Remove the specified chart from the multichart.
Parameters:
chart - The Chart to remove.

removeAllCharts

public void removeAllCharts()
Remove all charts from the multichart.

replaceChart

public void replaceChart(NFChart chart,
                         int index)
Replace the given chart at the given index.
Parameters:
chart - The Chart to replace the specified Chart with.
index - The index of the Chart to be replaced.

replaceChart

public void replaceChart(java.lang.String newChartName,
                         int type,
                         int width,
                         int height,
                         NFChart chart,
                         int index)
Replace the given chart at the given index.
Parameters:
newChartName - The new Chart name.
type - The new Chart type.
width - The new Chart width.
height - The new Chart height.
chart - The Chart to replace the specified Chart with.
index - The index of the Chart to be replaced.

replaceChart

public void replaceChart(java.lang.String oldChartName,
                         java.lang.String newChartName,
                         int type,
                         int width,
                         int height,
                         NFChart chart)
Replace the given chart at the given index.
Parameters:
oldChartName - The old Chart name.
newChartName - The new Chart name.
type - The new Chart type.
width - The new Chart width.
height - The new Chart height.
chart - The Chart to replace the specified Chart with.

enableDrag

public void enableDrag(boolean dragEnabled)
Toggle Chart dragging.
Parameters:
dragEnabled - Whether dragging is to be enabled or not.

setDragImageSize

public void setDragImageSize(java.awt.Dimension d)
Set the size of the image used in dragging.
Parameters:
d - The size.

useImage

public void useImage(boolean useImage)
Toggle the use of images as opposed to active Charts.
Parameters:
useImage - Whether to use images or not.

createChart

public void createChart(java.lang.String name,
                        int type)
                throws NFParamException
Create a Chart with the given name and type.
Parameters:
name - The Chart name.
type - The Chart type.
Throws:
NFParamException - If the type is invalid.

createChart

public void createChart(java.lang.String name,
                        int type,
                        NFChart chart)
                throws NFParamException
Create a Chart with the given name and type.
Parameters:
name - The Chart name.
type - The Chart type.
chart - If non-null, it is added with the given name.
Throws:
NFParamException - If the type is invalid.

releaseCharts

public void releaseCharts()
Release all charts.

layout

public void layout()
Layout the charts.
Overrides:
layout in class java.awt.Container

layoutCharts

public void layoutCharts()
Layout the charts.

getChartNames

public java.util.Enumeration getChartNames()
Returns an enumeration of all chart names currently defined in the multi chart.
Returns:
The chart names.

getChart

public NFChart getChart(java.lang.String chartName)
Returns the NFChart object for the chart with the given name, as specified in the Chart parameter. If no such chart exists, then null is returned.
Parameters:
chartName - The Chart name.
Returns:
The referenced Chart.

getChartAt

public NFChart getChartAt(int index)
Returns the NFChart object for the chart at the index specified. If no such chart exists, then null is returned.
Parameters:
index - The index of the Chart.
Returns:
The Chart referenced.

adoptLayout

public void adoptLayout(NFMultiChartApp mcFrom)
Modifies the layout (order and size) of the charts in this multichart to match that of the multichart specified.
Parameters:
mcFrom - The MultiChart to adopt the layout from.

paramChanged

public void paramChanged(java.lang.Object observable,
                         java.lang.String arg,
                         java.lang.Object o)
This method implements the NFParamObserver interface. It is called by the MultiChart object whenever a start/stop request needs to be processed and whenever the chart's parameters have been updated.
Specified by:
paramChanged in interface NFParamObserver
Parameters:
obj - The cause of the event.
arg - The parameter name.
o - The new value.

start

public void start()
Start all the Charts processing.
Overrides:
start in class NFChart

stop

public void stop()
Stop all the Charts processing.
Overrides:
stop in class NFChart

loadParams

public void loadParams(NFParam param)
               throws java.lang.Exception
Load all the parameters.
Parameters:
param - The NFParam to load parameters from.
Throws:
java.lang.Exception - If there was an error loading the parameters.

updateChartsParam

protected void updateChartsParam()
Update the internally maintained Charts parameters.

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.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2004
All Rights Reserved.

NetCharts TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Feb 20, 2004