swarm.analysis
Interface EZGraphC

All Known Implementing Classes:
EZGraphCImpl

public interface EZGraphC
extends SwarmObjectS, SwarmObjectC, GUICompositeS, GUICompositeC

A class for easily create graphs.. This class allows the user to easily create graphs of various quantities in the model s/he is investigating. The user first creates the EZGraph, and then creates "Sequences"; (lines) which will appear in the graph. The sequences are generated based on data provided by a single object or a collection of target objects, in reponse to a specified selector. One of the features of the EZGraph is that it will automatically generate average, total, min, max and count sequences without the user having to mess with Averagers amd other low-level classes.


Method Summary
 Object create$setFileName(Zone aZone, String aFileName)
          Convenience method for creating a non-graphical EZGraph, in this case, the filename is explicitly set by the user
 Object create$setFileOutput(Zone aZone, boolean fileOutputFlag)
          Convenience method for creating a non-graphical EZGraph, the filename is generated from the sequence name
 Object create$setTitle$setAxisLabelsX$Y$setWindowGeometryRecordName(Zone aZone, String aTitle, String xl, String yl, String windowGeometryRecordName)
          Convenience method for creating `graphical' EZGraph instances
 Object createEnd()
           
 Object setAxisLabelsX$Y(String xl, String yl)
          The setAxisLabels:X:Y method sets the horizontal and vertical labels on the histogram in the graphical version of EZGraph.
 Object setFileName(String aFileName)
          The setFileName method sets the name used for disk file data output.
 Object setFileOutput(boolean state)
          The setFileOutput method sets the state of file I/O.
 Object setGraphics(boolean state)
          The setGraphics method sets the state of the display.
 Object setTitle(String aTitle)
          The setTitle method uses a title string to label a graph window in the graphical version of EZGraph.
 
Methods inherited from interface swarm.defobj.CreateC
create, createBegin
 
Methods inherited from interface swarm.defobj.CustomizeC
customizeBegin, customizeCopy, customizeEnd
 

Method Detail

create$setTitle$setAxisLabelsX$Y$setWindowGeometryRecordName

public Object create$setTitle$setAxisLabelsX$Y$setWindowGeometryRecordName(Zone aZone,
                                                                           String aTitle,
                                                                           String xl,
                                                                           String yl,
                                                                           String windowGeometryRecordName)
Convenience method for creating `graphical' EZGraph instances

create$setFileOutput

public Object create$setFileOutput(Zone aZone,
                                   boolean fileOutputFlag)
Convenience method for creating a non-graphical EZGraph, the filename is generated from the sequence name

create$setFileName

public Object create$setFileName(Zone aZone,
                                 String aFileName)
Convenience method for creating a non-graphical EZGraph, in this case, the filename is explicitly set by the user

setGraphics

public Object setGraphics(boolean state)
The setGraphics method sets the state of the display. Set the state to 0 if a graphical display of the graph is not required. The default state is 1 meaning that by default the data appears graphically in a window.

setFileOutput

public Object setFileOutput(boolean state)
The setFileOutput method sets the state of file I/O. Set the state to 1 if data for the sequences is to be sent to a file. The default state is 0 meaning that by default no file I/O is carried out by the EZGraph class.

setFileName

public Object setFileName(String aFileName)
The setFileName method sets the name used for disk file data output. (Only relevant if the state of setFileOutput is set to 1.) The name set here is prepended to the names of each data sequence. If file name is NOT set, with this method, the file name for the sequence will default simply to the sequence name.

setTitle

public Object setTitle(String aTitle)
The setTitle method uses a title string to label a graph window in the graphical version of EZGraph. The label appears at the top of the graph window. (Only relevant if the state of setGraphics is set to 1.)

setAxisLabelsX$Y

public Object setAxisLabelsX$Y(String xl,
                               String yl)
The setAxisLabels:X:Y method sets the horizontal and vertical labels on the histogram in the graphical version of EZGraph. (Only relevant if the state of setGraphics is set to 1.)

createEnd

public Object createEnd()