public void paint(Graphics graphics, long time) { int xt = x.getInt(time); int yt = y.getInt(time); int spacingt = spacing.getInt(time); for (int index = 0; index < text.length; index++) { graphics.drawString(text[index].getString(time), xt, yt + index * spacingt); } }
public void paint(Graphics graphics, long time) { int xt = x.getInt(time); int yt = y.getInt(time); double scale_x = scaleX.getDouble(time); double scale_y = scaleY.getDouble(time); int width = (int) (image.getWidth(null) * scale_x); int height = (int) (image.getHeight(null) * scale_y); graphics.drawImage(image, xt, yt, width, height, null); }