New issue 265 by nico...@pyryp.com: PMouseWheelZoomXYEventHandler : I can
not commit (403 Forbidden)
I coded a new class but can not commit it. (403 Forbidden)
Please, would you like to commit it to the SVN.
Here is the commit message :
* This commit bring a new class, the PMouseWheelZoomXYEventHandler which
is a evolved zoom event handler.
The default behavior is the same as the existing
PMouseWheelZoomEventHandler but 2 other behaviors are available :
-> If the user maintains the "SHIFT" key during mouse wheel motion,
only the X axis will be rescaled.
-> If the user maintains the "ALT" key during mouse wheel motion, only
the Y axis will be rescaled.
NB : With the default behavior, the zoom will be applied on X and Y
axis (as PMouseWheelZoomEventHandler).
* Somes changes are necessary in the following classes :
--> adding the method
public void scaleViewAboutPoint(final double scaleX, final
double scaleY, final double x, final double y)
--> updating the method
public void scaleViewAboutPoint(final double scale, final double
x, final double y)
2) PMouseWheelZoomEventHandler need to be inheritable.
--> removing the "final class"
--> scaleFactor is now protected
--> private Point2D getViewAboutPoint(final PInputEvent event) is
--> the method
public void scaleAboutPoint(final double scaleX, final double
scaleY, final double x, final double y)
has been added.
--> the method
public void scaleAboutPoint(final double scale, final double x,
final double y)
has been modified.
Please note, that all these changes are fully compatible with the
PCamera.java 37.2 KB
PAffineTransform.java 18.2 KB
PMouseWheelZoomEventHandler.java 6.0 KB
PMouseWheelZoomXYEventHandler.java 3.3 KB
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
You received this message because you are subscribed to the Google Groups "Piccolo2D Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.