| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mascoptLib.gui.GraphChooser
Choose a graph in a ReaderInterface, or in a file.
The goal is to make easy the process of choosing a graph. If you want to program an alogrithm and provide to the user a dialog box to choose a graph in a file, that's for you.
| Constructor Summary | |
GraphChooser()
 | 
|
| Method Summary | |
static String | 
getFileName(String root,
            String[] filter,
            String ident,
            String actionText)
Give a graphic way of choosing a file, with some parameters.  | 
static mascoptLib.abstractGraph.AbstractGraph | 
getGraph(mascoptLib.io.ReaderInterface ri)
Gives a graph read in a reader interface.  | 
static Vector | 
getGraph(mascoptLib.io.ReaderInterface ri,
         int number)
Returns a Vector containing the n graphs read on a ReaderInterface  | 
static HashMap | 
getGraphHashMapMGL()
Put graphs in an HashMap with popups.  | 
static HashMap | 
getGraphHashMapMGL(String filename)
Put graphs in an HashMap with popups.  | 
static mascoptLib.abstractGraph.AbstractGraph | 
getGraphMGL()
Select a graph in an MGL file with popups.  | 
static Vector | 
getGraphMGL(int number)
Deprecated. Please now use getGraphVector(). | 
static mascoptLib.abstractGraph.AbstractGraph | 
getGraphMGL(String file)
Select a graph in an MGL file with popups.  | 
static Vector | 
getGraphMGL(String file,
            int number)
Deprecated. Please now use getGraphVector(String file). | 
static Vector | 
getGraphVectorMGL()
Select the graphs in an MGL file with popups.  | 
static Vector | 
getGraphVectorMGL(String filename)
Select the graphs in an MGL file with popups.  | 
static mascoptLib.io.graph.MGLReader | 
getMGLReader()
Gives a reader interface via popups.  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public GraphChooser()
| Method Detail | 
public static Vector getGraph(mascoptLib.io.ReaderInterface ri,
                              int number)
number - the number of graphs to read.ri - the reader interface.
public static mascoptLib.abstractGraph.AbstractGraph getGraph(mascoptLib.io.ReaderInterface ri)
ri - the reader interface.
public static mascoptLib.abstractGraph.AbstractGraph getGraphMGL()
public static Vector getGraphMGL(int number)
getGraphVector().
number - the Nst graph number.
getGraphVectorMGL()public static Vector getGraphVectorMGL()
Vector containing
 all the graphs found in the selected file is returned.
Vector containing abstractGraphs.public static mascoptLib.abstractGraph.AbstractGraph getGraphMGL(String file)
file - the MGL file to read
public static Vector getGraphMGL(String file,
                                 int number)
getGraphVector(String file).
file - the MGL file to readnumber - the Nst graph number.
getGraphVectorMGL(String file)public static Vector getGraphVectorMGL(String filename)
Vector containing
 all the graphs found in the selected file is returned.
filename - the name of a mgl file
Vector containing abstractGraphs.public static mascoptLib.io.graph.MGLReader getMGLReader()
public static String getFileName(String root,
                                 String[] filter,
                                 String ident,
                                 String actionText)
root - the root of the filename that are allowed.filter - the extensions allowed.ident - the name of this type of filesactionText - the text that will be appear to the user.
public static HashMap getGraphHashMapMGL()
public static HashMap getGraphHashMapMGL(String filename)
filename - the file to read
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||