gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] loom/org/fenfire/loom WheelView.java


From: Asko Soukka
Subject: [Gzz-commits] loom/org/fenfire/loom WheelView.java
Date: Fri, 04 Apr 2003 09:03:55 -0500

CVSROOT:        /cvsroot/loom
Module name:    loom
Changes by:     Asko Soukka <address@hidden>    03/04/04 09:03:55

Modified files:
        org/fenfire/loom: WheelView.java 

Log message:
        constructor and a few comments about options

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/loom/loom/org/fenfire/loom/WheelView.java.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: loom/org/fenfire/loom/WheelView.java
diff -u loom/org/fenfire/loom/WheelView.java:1.4 
loom/org/fenfire/loom/WheelView.java:1.5
--- loom/org/fenfire/loom/WheelView.java:1.4    Fri Apr  4 07:02:01 2003
+++ loom/org/fenfire/loom/WheelView.java        Fri Apr  4 09:03:55 2003
@@ -54,9 +54,14 @@
 
     protected final Vob conn = new SimpleConnection(1,.5f,0,.5f);
 
-    public WheelView(NodeView nodeView) {
+    /** WheelView
+     * @param depth How deeply should the structure be shown.
+     */
+    public WheelView(NodeView nodeView, int depth) {
        this.nodeView = nodeView;
+       this.depth = depth;
     }
+    public WheelView(NodeView nodeView) { this(nodeView, 2); }
 
     /** XXX gapy has currently no effect, should be used
      * to determine the minimum rotation angle.
@@ -109,9 +114,22 @@
                    Pair focusPair = new Pair(focus, (Property)current.second);
                    removal.add(focusPair);
 
-                   // Hmm... that 0 could be replaced with dir and then the
-                   // other direction should be replaced with stubs
+                   /** This shows as much nodes as possible. Shows the both 
directions
+                    * also in branches. Removes the focused node+prop pairs 
from branch.
+                    * Problem is that moving don't work properly. Nodes change 
from the
+                    * one side to another and it seems to be confusing.
+                    */
                    Collection subNodes = getNodes(c, (Resource)newFocus, 0, 
removal);
+
+                   /** This won't remove any nodes. */
+                   //Collection subNodes = getNodes(c, (Resource)newFocus, 0);
+
+                   /** This don't show the links of opposite direction at all 
in branches.
+                    * This is the one, which would really work, if we would 
have rotable
+                    * stubs to shown the hidden connections
+                    */
+                   //Collection subNodes = getNodes(c, (Resource)newFocus, 
dir);
+
                    double subRota = getRotationAngle(c, (Resource)newFocus, 
subNodes,
                                                      rota, depth-1);
                    renderSomewardConnections(sc, into, c, (Resource)newFocus, 
subNodes,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]