| 1 |
// Copyright 2002, FreeHEP. |
| 2 |
package org.freehep.graphicsio.emf.gdi; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
import org.freehep.graphicsio.emf.EMFInputStream; |
| 7 |
import org.freehep.graphicsio.emf.EMFOutputStream; |
| 8 |
import org.freehep.graphicsio.emf.EMFTag; |
| 9 |
|
| 10 |
/** |
| 11 |
* SetMapperFlags TAG. |
| 12 |
* |
| 13 |
* @author Mark Donszelmann |
| 14 |
* @version $Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdi/SetMapperFlags.java c0f15e7696d3 2007/01/22 19:26:48 duns $ |
| 15 |
*/ |
| 16 |
public class SetMapperFlags extends EMFTag { |
| 17 |
|
| 18 |
private int flags; |
| 19 |
|
| 20 |
public SetMapperFlags() { |
| 21 |
super(16, 1); |
| 22 |
} |
| 23 |
|
| 24 |
public SetMapperFlags(int flags) { |
| 25 |
this(); |
| 26 |
this.flags = flags; |
| 27 |
} |
| 28 |
|
| 29 |
public EMFTag read(int tagID, EMFInputStream emf, int len) |
| 30 |
throws IOException { |
| 31 |
|
| 32 |
return new SetMapperFlags(emf.readDWORD()); |
| 33 |
} |
| 34 |
|
| 35 |
public void write(int tagID, EMFOutputStream emf) throws IOException { |
| 36 |
emf.writeDWORD(flags); |
| 37 |
} |
| 38 |
|
| 39 |
public String toString() { |
| 40 |
return super.toString() + "\n flags: " + flags; |
| 41 |
} |
| 42 |
} |