Revision: 793
Author: allain.lalonde
Date: Wed Oct 21 14:05:18 2009
Log: Removed the translation from Aspect Cover. It was not logical in the
way it behaved. It now just places the node at the top left of the image.
http://code.google.com/p/piccolo2d/source/detail?r=793
Modified:
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java
=======================================
--- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java
Wed Oct 21 14:03:04 2009
+++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java
Wed Oct 21 14:05:18 2009
@@ -2941,8 +2941,7 @@
else {
scale = image.getHeight() / nodeHeight;
}
- g2.scale(scale, scale);
- g2.translate(-nodeWidth / scale, -nodeHeight / scale);
+ g2.scale(scale, scale);
break;
case FILL_STRATEGY_EXACT_FIT:
// scale the node so that it covers then entire image,
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---