[graphl-cvs] graphl/src/org/mediavirus/graphl GraphlPane.java
Status: Pre-Alpha
Brought to you by:
flo1
|
From: Flo L. <fl...@us...> - 2005-09-07 12:30:15
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25832/src/org/mediavirus/graphl Modified Files: GraphlPane.java Log Message: - FEATURE: type menu pops up upon edge creation - BUG: fixed assignment of unique ids to new nodes - BUG: fixed in-place editor for nodes - CODE: loading graphs is now synchronized to avoid loading conflicts - CODE: restoring Graphics transform in GraphlPane after rendering Index: GraphlPane.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/GraphlPane.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** GraphlPane.java 5 Sep 2005 15:46:38 -0000 1.20 --- GraphlPane.java 7 Sep 2005 12:29:55 -0000 1.21 *************** *** 201,204 **** --- 201,206 ---- g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); + AffineTransform oldTrans = g2.getTransform(); + if (transform != null) { g2.transform(transform); *************** *** 261,264 **** --- 263,267 ---- //if (renderDuration > 0) System.out.println("render time: " + renderDuration + " FPS: " + 1000.0/renderDuration); } + g2.setTransform(oldTrans); } *************** *** 303,307 **** } ! public void graphLayoutUpdated(Graph graph) { } public void graphUpdated(Graph graph) {} --- 306,312 ---- } ! public void graphLayoutUpdated(Graph graph) { ! repaint(); ! } public void graphUpdated(Graph graph) {} |