@Override
    public void scale(double sx, double sy) {
        AffineTransform t = getTransform();
        t.scale(sx, sy);
        setTransform(t);
    }
@Override
    public void scale(double sx, double sy) {
        AffineTransform t = getTransform();
        t.scale(sx, sy);
        setTransform(t);
    }
@ Override public void scale ( double sx , double sy ) { AffineTransform t = getTransform ( ) ; t . scale ( sx , sy ) ; setTransform ( t ) ; }
Applies a scale transformation.

@param sx  the x-scaling factor.
@param sy  the y-scaling factor.
Applies a scale transformation .