scaleInstance static method
Creates a transformation for a scaling relative to the origin.
@param xScale the value to scale by in the x direction @param yScale the value to scale by in the y direction @return a transformation for the scaling
Implementation
static AffineTransformation scaleInstance(double xScale, double yScale) {
AffineTransformation trans = new AffineTransformation();
trans.setToScale(xScale, yScale);
return trans;
}