/[gzz]/gzz/lava/gzz/loom/Cursor.java
ViewVC logotype

Diff of /gzz/lava/gzz/loom/Cursor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by benja, Sun Feb 23 19:44:24 2003 UTC revision 1.6 by benja, Sun Feb 23 21:11:34 2003 UTC
# Line 57  public class Cursor { Line 57  public class Cursor {
57          this.rotation = rotation;          this.rotation = rotation;
58      }      }
59    
60        /** Get the index of <code>rotation</code> among the connections.
61         *  E.g., when <code>rotation</code> is the first of the connections,
62         *  then this returns 0; when the rotation is the third connection,
63         *  this returns 2.
64         */
65        public int getRotationIndex() {
66            if(rotation != null)
67                return getConnections(1).headSet(rotation).size();
68            else
69                return 0;
70        }
71    
72      /** The posward or negward connections of <code>focus</code> to show,      /** The posward or negward connections of <code>focus</code> to show,
73       *  in order. XXX refactor-- we need only a subset of all properties,       *  in order. XXX refactor-- we need only a subset of all properties,
74       *  and recursion... currently slow because we iterate though       *  and recursion... currently slow because we iterate though

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26