code: @Override
      public void translate(double tx, double ty) {
          AffineTransform t = getTransform();
          t.translate(tx, ty);
          setTransform(t);
      }
docs: Applies the translation {@code (tx, ty)}.
  
  @param tx  the x-translation.
  @param ty  the y-translation.