FileDocCategorySizeDatePackage
MoveTo.javaAPI DocExample441Mon Jul 03 20:16:02 BST 2000com.darwinsys.spdf

MoveTo.java

package com.darwinsys.spdf;

/** Represent one Move object ("moveto") in a PDF file. */
public class MoveTo extends PDFObject {
	protected int x, y;

	public MoveTo(PDF m, int x, int y) {
		super(m);
		this.x = x;
		this.y = y;
	}

	public void print() {
		throw new IllegalStateException("print() called on a Text obj");
	}

	public void print(StringBuffer sb) {
		sb.append(x);
		sb.append(' ');
		sb.append(y);
		sb.append(" Td\n");
	}
}