[graphl-cvs] graphl/src/org/mediavirus/graphl/graph DefaultElement.java AbstractGraph.java Graph.jav
Status: Pre-Alpha
Brought to you by:
flo1
From: Flo L. <fl...@us...> - 2005-01-11 13:27:04
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25738/src/org/mediavirus/graphl/graph Modified Files: DefaultElement.java AbstractGraph.java Graph.java PropertySet.java Log Message: - FEATURE: implemented generic type menu that reads from RDF vocabs - FEATURE: RDFGraph now imports files referenced with owl:imports statements - BUG: fixed saving of literal properties - BUG: fixed Swing look and feel for JDK 1.5 - CODE: GraphlPane now stores vocabularies - CODE: added first (dummy) implementation of node mainpulator - CODE: added getProperties() mehtod to PropertySet interface Index: Graph.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/Graph.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Graph.java 4 Oct 2004 10:21:02 -0000 1.3 --- Graph.java 11 Jan 2005 13:26:41 -0000 1.4 *************** *** 28,31 **** --- 28,33 ---- */ void notifyUpdated(); + + void notifyPropertyChanged(); /** * Returns a list the nodes in the graph. The order of the list reflects the Z-order of nodes in the graph. Index: PropertySet.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/PropertySet.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertySet.java 4 Oct 2004 10:21:02 -0000 1.2 --- PropertySet.java 11 Jan 2005 13:26:41 -0000 1.3 *************** *** 5,8 **** --- 5,10 ---- package org.mediavirus.graphl.graph; + import java.util.Map; + /** * @author Flo Ledermann <led...@im...> *************** *** 14,17 **** --- 16,21 ---- String getProperty(String name, String defaultValue); + + Map getProperties(); } \ No newline at end of file Index: DefaultElement.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/DefaultElement.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DefaultElement.java 4 Oct 2004 10:21:02 -0000 1.2 --- DefaultElement.java 11 Jan 2005 13:26:41 -0000 1.3 *************** *** 6,9 **** --- 6,10 ---- import java.util.HashMap; + import java.util.Map; /** *************** *** 28,31 **** --- 29,39 ---- properties.put(name, value); } + + /** + * @see org.mediavirus.graphl.graph.PropertySet#getProperties() + */ + public Map getProperties() { + return (Map)properties.clone(); + } Index: AbstractGraph.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/AbstractGraph.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AbstractGraph.java 21 Jun 2004 19:09:34 -0000 1.2 --- AbstractGraph.java 11 Jan 2005 13:26:41 -0000 1.3 *************** *** 50,53 **** --- 50,57 ---- ((GraphListener)listeners[i]).graphUpdated(this); } + + public synchronized void notifyPropertyChanged() { + fireGraphContentsChanged(); + } /** * Fires the graph contents changed event. |