Author: pwang
Date: 2009-07-21 15:43:46 -0700 (Tue, 21 Jul 2009)
New Revision: 17510
Modified:
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/LayoutRegion.java
Log:
Fix the viewPort problem
Modified:
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/LayoutRegion.java
===================================================================
---
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/LayoutRegion.java
2009-07-21 22:19:10 UTC (rev 17509)
+++
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/LayoutRegion.java
2009-07-21 22:43:46 UTC (rev 17510)
@@ -429,7 +429,7 @@
*/
public void viewportChanged(int w, int h, double newXCenter,
double newYCenter, double newScaleFactor) {
-
+
Double vpX = this.getX1();
Double vpY = this.getY1();
Double vpW = this.getW1();
@@ -482,7 +482,7 @@
viewportWidth = w;
viewportHeight = h;
- //this.setBounds(this.getX1(), this.getY1(), this.getW1(),
this.getH1());
+ this.setBounds(this.getX1(), this.getY1(), this.getW1(),
this.getH1());
}
/**
@@ -953,7 +953,7 @@
((int) height + HANDLE_SIZE),
BufferedImage.TYPE_INT_ARGB);
}
- /*
+
// update nodeView coordinates of Layout Region for
Groups/xGMML export
Point2D[] corners = new Point2D[] { new Point2D.Double(x, y),
new Point2D.Double(x + width, y + height) };
@@ -967,6 +967,7 @@
nodeW1 = (newCorners[1].getX() - newCorners[0].getX());
nodeH1 = (newCorners[1].getY() - newCorners[0].getY());
+ /*
if (myGroup != null) {
CyNode groupNode = this.myGroup.getGroupNode();
CyAttributes attributes =
Cytoscape.getNodeAttributes();
@@ -978,12 +979,14 @@
BubbleRouterPlugin.REGION_W_ATT, nodeW1);
attributes.setAttribute(groupNode.getIdentifier(),
BubbleRouterPlugin.REGION_H_ATT, nodeH1);
+
}
+ */
} catch (Exception e) {
e.printStackTrace();
}
- */
+
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---