swpalmer at gmail.com
Mon Mar 18 17:22:08 PDT 2013
How is GraphicContext.setTransform() intended to be used?
There are two method signatures:
The Affine class is documented as something that isn't intended to be used directly.
"Note: application developers should not normally use this class directly, but instead use the specific Translate, Scale, Rotate, or Shear transforms instead."
The classes that the Affine docs suggest to use are not extending Affine and can't be used with the first method signature.
The parameters for the version that takes doubles are documented as:
mxx - - the X coordinate scaling element of the 3x4 matrix
myx - - the Y coordinate shearing element of the 3x4 matrix
mxy - - the X coordinate shearing element of the 3x4 matrix
myy - - the Y coordinate scaling element of the 3x4 matrix
mxt - - the X coordinate translation element of the 3x4 matrix
myt - - the Y coordinate translation element of the 3x4 matrix
The Scale class does not have methods to matching the names mxt or myt (are these getTx(), getTy()?), but regardless it is still tedious to have to make six method calls on a Scale object to set the transform for a GraphicContext.
Shouldn't GraphicsContext.setTransform take a Transform????
More information about the openjfx-dev