ch.hearc.I04_05s08.GUI.RDF
Class RdfGraphManager

java.lang.Object
  extended bych.hearc.I04_05s08.GUI.RDF.RdfGraphManager
All Implemented Interfaces:
GraphManager

public class RdfGraphManager
extends Object
implements GraphManager

A manager for RDF 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
RdfGraphManager(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
 MainApplication getMainFrame()
          Get the main frame
 boolean loadGraph(RdfFile file)
          Load the graph
 void newGraph()
          Build a new graph
 void newGraphRdf()
          Build a new graph with rdfs
 boolean openGraph()
          Open a graph with this file
 boolean openGraphRdf()
          Open a graph with rdfs
 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

RdfGraphManager

public RdfGraphManager(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

newGraphRdf

public void newGraphRdf()
Build a new graph with rdfs


openGraph

public boolean openGraph()
Open a graph with this file

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

openGraphRdf

public boolean openGraphRdf()
Open a graph with rdfs


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

public boolean loadGraph(RdfFile file)
Load the graph

Parameters:
file - the RDF file
Returns:
il operation successed

getMainFrame

public MainApplication getMainFrame()
Get the main frame

Returns:
the main frame


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