Author: kono
Date: 2009-11-24 15:10:36 -0800 (Tue, 24 Nov 2009)
New Revision: 18571
Modified:
cytoscape/trunk/src/cytoscape/util/NestedNetworkImageManager.java
Log:
Tweaked default image size.
Modified: cytoscape/trunk/src/cytoscape/util/NestedNetworkImageManager.java
===================================================================
--- cytoscape/trunk/src/cytoscape/util/NestedNetworkImageManager.java
2009-11-24 22:27:43 UTC (rev 18570)
+++ cytoscape/trunk/src/cytoscape/util/NestedNetworkImageManager.java
2009-11-24 23:10:36 UTC (rev 18571)
@@ -32,8 +32,8 @@
public class NestedNetworkImageManager implements PropertyChangeListener {
private final Image DEF_IMAGE;
- private static final int DEF_WIDTH = 200;
- private static final int DEF_HEIGHT = 200;
+ private static final int DEF_WIDTH = 500;
+ private static final int DEF_HEIGHT = 500;
private static NestedNetworkImageManager networkImageGenerator;
@@ -189,7 +189,7 @@
private void addCustomGraphics(final CyNetwork nestedNetwork, final
CyNetworkView networkView, final CyNode parentNode) {
Image networkImage = getImage(nestedNetwork);
final DNodeView nodeView =
(DNodeView)networkView.getNodeView(parentNode);
- final Rectangle2D rect = new Rectangle2D.Double(0.0, 0.0,
200.0, 200.0);
+ final Rectangle2D rect = new Rectangle2D.Double(-DEF_WIDTH/2,
-DEF_HEIGHT/2, DEF_WIDTH, DEF_HEIGHT);
nodeView.addCustomGraphic(rect, new
TexturePaint((BufferedImage) networkImage, rect), NodeDetails.ANCHOR_CENTER);
}
--
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.