Author: kono
Date: 2009-08-03 11:27:59 -0700 (Mon, 03 Aug 2009)
New Revision: 17662
Modified:
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ProcessingNetworkRenderer.java
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/shape/Cube.java
Log:
Modified:
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ProcessingNetworkRenderer.java
===================================================================
---
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ProcessingNetworkRenderer.java
2009-08-03 17:06:31 UTC (rev 17661)
+++
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ProcessingNetworkRenderer.java
2009-08-03 18:27:59 UTC (rev 17662)
@@ -156,8 +156,8 @@
System.out.println("%%%%%%%%%%%%% Setup called for P5");
/* setup p5 */
size(windowSize.width, windowSize.width, OPENGL);
- hint(ENABLE_OPENGL_4X_SMOOTH);
- hint(ENABLE_NATIVE_FONTS);
+ //hint(ENABLE_OPENGL_4X_SMOOTH);
+ //hint(ENABLE_NATIVE_FONTS);
noStroke();
frameRate(FRAME_RATE);
@@ -265,21 +265,18 @@
translateX += (mouseX - pmouseX) * 2;
translateY += (mouseY - pmouseY) * 2;
}
- // else if (mouseButton == LEFT) {
- //
- // }
}
public void mousePressed() {
if (mouseButton != CENTER)
return;
- System.out.println("===Mouse Click");
- for (int i = 0; i < nodes.length; i++) {
- if (nodes[i] instanceof Pickable) {
- ((Pickable) nodes[i]).pick(mouseX, mouseY);
- }
- }
+// System.out.println("===Mouse Click");
+// for (int i = 0; i < nodes.length; i++) {
+// if (nodes[i] instanceof Pickable) {
+// ((Pickable) nodes[i]).pick(mouseX, mouseY);
+// }
+// }
}
public Icon getDefaultIcon(VisualProperty<?> vp) {
Modified:
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/shape/Cube.java
===================================================================
---
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/shape/Cube.java
2009-08-03 17:06:31 UTC (rev 17661)
+++
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/shape/Cube.java
2009-08-03 18:27:59 UTC (rev 17662)
@@ -92,6 +92,12 @@
// Pick compatible lexicon only.
this.x =
viewModel.getVisualProperty(NODE_X_LOCATION).floatValue();
this.y =
viewModel.getVisualProperty(NODE_Y_LOCATION).floatValue();
+
+
+ if(p.random(1)> 0.5) {
+ viewModel.setVisualProperty(NODE_Z_LOCATION, 500d);
+ }
+
this.z =
viewModel.getVisualProperty(NODE_Z_LOCATION).floatValue();
this.size =
viewModel.getVisualProperty(NODE_X_SIZE).floatValue();
@@ -104,17 +110,12 @@
g = 250;
b = 0;
alpha = 255;
- System.out.println("Color of PICKED node" + g);
}else if(color instanceof Color) {
this.r = ((Color)color).getRed();
this.g = ((Color)color).getGreen();
this.b = ((Color)color).getBlue();
- //this.alpha = ((Color)color).getAlpha();
- this.alpha = 90;
-
- }
-
-
+ this.alpha = ((Color)color).getAlpha();
+ }
}
public boolean isPicked() {
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---