// Copyright 2002, FreeHEP.
package org.freehep.graphicsio.emf.gdi;
import java.awt.Rectangle;
import java.io.IOException;
import org.freehep.graphicsio.emf.EMFConstants;
import org.freehep.graphicsio.emf.EMFInputStream;
import org.freehep.graphicsio.emf.EMFTag;
/**
* ExtTextOutA TAG.
*
* @author Mark Donszelmann
* @version $Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdi/ExtTextOutA.java cb17a8f71934 2007/01/23 15:44:34 duns $
*/
public class ExtTextOutA extends AbstractExtTextOut implements EMFConstants {
private TextA text;
public ExtTextOutA() {
super(83, 1, null, 0, 1, 1);
}
public ExtTextOutA(
Rectangle bounds,
int mode,
float xScale,
float yScale,
TextA text) {
super(83, 1, bounds, mode, xScale, yScale);
this.text = text;
}
public EMFTag read(int tagID, EMFInputStream emf, int len)
throws IOException {
return new ExtTextOutA(
emf.readRECTL(),
emf.readDWORD(),
emf.readFLOAT(),
emf.readFLOAT(),
TextA.read(emf));
}
public Text getText() {
return text;
}
}