[graphl-cvs] graphl/src/org/mediavirus/graphl GraphlApplication.java GraphlPane.java GraphlPanel.jav
Status: Pre-Alpha
Brought to you by:
flo1
From: Flo L. <fl...@us...> - 2005-01-11 13:27:10
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25738/src/org/mediavirus/graphl Modified Files: GraphlApplication.java GraphlPane.java GraphlPanel.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: GraphlPanel.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/GraphlPanel.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** GraphlPanel.java 29 Dec 2004 14:33:53 -0000 1.21 --- GraphlPanel.java 11 Jan 2005 13:26:43 -0000 1.22 *************** *** 195,199 **** graphPane.setEnabled(true); graphPane.addManipulator(new GraphlManipulator()); ! //graphPane.addManipulator(new DefaultNodeManipulator()); graphPane.getGraph().addGraphListener(this); graphPane.addKeyListener(this); --- 195,199 ---- graphPane.setEnabled(true); graphPane.addManipulator(new GraphlManipulator()); ! graphPane.addManipulator(new DefaultNodeManipulator()); graphPane.getGraph().addGraphListener(this); graphPane.addKeyListener(this); Index: GraphlApplication.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/GraphlApplication.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** GraphlApplication.java 29 Dec 2004 14:31:30 -0000 1.17 --- GraphlApplication.java 11 Jan 2005 13:26:43 -0000 1.18 *************** *** 518,524 **** public static void main(String[] args) { ! // try { ! // UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); ! // } catch (Exception e) { } GraphlApplication app = new GraphlApplication(); --- 518,523 ---- public static void main(String[] args) { ! // uff... ! System.setProperty("swing.metalTheme", "steel"); GraphlApplication app = new GraphlApplication(); Index: GraphlPane.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/GraphlPane.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** GraphlPane.java 29 Dec 2004 14:31:33 -0000 1.17 --- GraphlPane.java 11 Jan 2005 13:26:43 -0000 1.18 *************** *** 137,140 **** --- 137,150 ---- } + Node vocabularies = null; + + public Node getVocabularies() { + return vocabularies; + } + + public void setVocabularies(Node vocabularies) { + this.vocabularies = vocabularies; + } + private void updateTransform() { transform = new AffineTransform(); *************** *** 270,274 **** public void graphLayoutUpdated(Graph graph) { } ! public void graphUpdated(Graph graph) { } public void graphContentsChanged(Graph graph) { --- 280,284 ---- public void graphLayoutUpdated(Graph graph) { } ! public void graphUpdated(Graph graph) {} public void graphContentsChanged(Graph graph) { *************** *** 767,770 **** --- 777,781 ---- currentConfiguration = configuration; setFacetRegistry(new GraphFacetRegistry(settingsGraph,configuration)); + setVocabularies(configuration.getFirstNeighbour("http://www.mediavirus.org/graphl#vocabularies",true)); configuration.setProperty("http://www.mediavirus.org/graphl#active","true"); } |