How can I flip shapes horizontally and vertically in vision's scripting?

I’m trying to flip/mirror a shape in Ignition’s vision runtime, specifically flipping horizontally and vertically.

from java.awt.geom import AffineTransform

# Get shape component
shape = event.source.parent.getComponent('Flip_Me')
at = AffineTransform.getTranslateInstance(shape.getX(), shape.getY())
#at = AffineTransform.getTranslateInstance(shape.relX, shape.relY)

# Lets try and flip somehow
x = shape.getX()
#at.translate(x, 0)
#at.scale(-1, 1)
#at.translate(-x, 0)
at.invert()
shape.setTempTransform(at)

Edit: The above script is my attempt to flip or mirror a Symbol Factory SVG group in the vision client runtime.