Author: paperwing
Date: 2012-01-24 15:00:09 -0800 (Tue, 24 Jan 2012)
New Revision: 28094

Added:
   
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/shapes/EdgeSegmentDrawer.java
Modified:
   
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/MainGraphicsHandler.java
   
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderArcEdgesProcedure.java
Log:
in process of implementing additional edge styles

Modified: 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/MainGraphicsHandler.java
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/MainGraphicsHandler.java
      2012-01-24 22:29:28 UTC (rev 28093)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/MainGraphicsHandler.java
      2012-01-24 23:00:09 UTC (rev 28094)
@@ -39,7 +39,7 @@
                renderProcedures.add(new RenderNodesProcedure());
                renderProcedures.add(new RenderArcEdgesProcedure());
                renderProcedures.add(new RenderSelectionBoxProcedure());
-               renderProcedures.add(new RenderNodeLabelsProcedure());
+//             renderProcedures.add(new RenderNodeLabelsProcedure());
        }
        
        @Override

Modified: 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderArcEdgesProcedure.java
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderArcEdgesProcedure.java
        2012-01-24 22:29:28 UTC (rev 28093)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderArcEdgesProcedure.java
        2012-01-24 23:00:09 UTC (rev 28094)
@@ -25,7 +25,7 @@
 
 public class RenderArcEdgesProcedure implements ReadOnlyGraphicsProcedure {
 
-       private static final double SEGMENT_RADIUS = 0.005; // 0.007 default
+       private static final double SEGMENT_RADIUS = 0.007; // 0.007 default
        private static final int SEGMENT_SLICES = 4;
        private static final int SEGMENT_STACKS = 1;
        

Added: 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/shapes/EdgeSegmentDrawer.java
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/shapes/EdgeSegmentDrawer.java
                               (rev 0)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/shapes/EdgeSegmentDrawer.java
       2012-01-24 23:00:09 UTC (rev 28094)
@@ -0,0 +1,28 @@
+package org.cytoscape.paperwing.internal.rendering.shapes;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.media.opengl.GL2;
+
+import 
org.cytoscape.paperwing.internal.rendering.shapes.ScalableShapeDrawer.ShapeType;
+
+public class EdgeSegmentDrawer {
+       public static enum SegmentType {
+               REGULAR
+       }
+       
+       private Map<SegmentType, Integer> segmentLists;
+       
+       public EdgeSegmentDrawer() {
+               segmentLists = new HashMap<SegmentType, Integer>();
+       }
+       
+       public void drawSegment (GL2 gl, SegmentType segmentType) {
+               Integer segmentList = segmentLists.get(segmentType);
+               
+               if (segmentList != null) {
+                       gl.glCallList(segmentList);
+               }
+       }
+}


Property changes on: 
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/shapes/EdgeSegmentDrawer.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to