//----------------------------------------------------------------------------
private void alterFrame(Frame frame, Instance instance, double x, double y, double sx, double sy, double alpha)
{
Transform transform;
AlphaTransform alpha_transform;
transform = new Transform();
transform.setTranslateX(x);
transform.setTranslateY(y);
transform.setScaleX(sx);
transform.setScaleY(sy);
alpha_transform = new AlphaTransform();
alpha_transform.setMultAlpha(alpha);
frame.alter(instance, transform, alpha_transform);
}