ch.hearc.I04_05s08.GUI.RDFS
Class RdfsGraphManager

java.lang.Object
  extended bych.hearc.I04_05s08.GUI.RDFS.RdfsGraphManager
All Implemented Interfaces:
GraphManager

public class RdfsGraphManager
extends Object
implements GraphManager

A manager for RDFS graphs

Author:
Blanc, Yoan
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
private  JFileChooser jfc_opener
          File chooser for closing
private  JFileChooser jfc_saver
          File chooser for saving
private  MainApplication mainframe
          Frame
 
Constructor Summary
RdfsGraphManager(MainApplication mainframe)
          Build the graph manager
 
Method Summary
private  String chooseOpener()
          Choose a file for opening
private  String chooseSaver()
          Choose a file for saving
 boolean closeGraph()
          Save the graph into another file
private  boolean loadGraph(RdfsFile file)
          Load the graph
 void newGraph()
          Build a new graph
 boolean openGraph()
          Open a graph with this file
 boolean saveAsGraph()
          Save the graph into another file
 boolean saveGraph()
          Save the graph into a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainframe

private MainApplication mainframe
Frame


jfc_opener

private JFileChooser jfc_opener
File chooser for closing


jfc_saver

private JFileChooser jfc_saver
File chooser for saving

Constructor Detail

RdfsGraphManager

public RdfsGraphManager(MainApplication mainframe)
Build the graph manager

Parameters:
mainframe - the parent frame
Method Detail

newGraph

public void newGraph()
Build a new graph

Specified by:
newGraph in interface GraphManager

openGraph

public boolean openGraph()
Open a graph with this file

Specified by:
openGraph in interface GraphManager
Returns:
if the operation successed

chooseOpener

private String chooseOpener()
Choose a file for opening


chooseSaver

private String chooseSaver()
Choose a file for saving


saveGraph

public boolean saveGraph()
Save the graph into a file

Specified by:
saveGraph in interface GraphManager
Returns:
if the operation successed

saveAsGraph

public boolean saveAsGraph()
Save the graph into another file

Specified by:
saveAsGraph in interface GraphManager
Returns:
if the operation successed

closeGraph

public boolean closeGraph()
Save the graph into another file

Specified by:
closeGraph in interface GraphManager
Returns:
if the operation successed

loadGraph

private boolean loadGraph(RdfsFile file)
Load the graph



A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC