![JAR search and dependency download from the Maven repository](/logo.png)
org.freehep.graphicsio.emf.gdi.TriVertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freehep-graphicsio-emf Show documentation
Show all versions of freehep-graphicsio-emf Show documentation
FreeHEP Enhanced Metafile Format Driver
The newest version!
// Copyright 2002, FreeHEP.
package org.freehep.graphicsio.emf.gdi;
import java.awt.Color;
import java.io.IOException;
import org.freehep.graphicsio.emf.EMFInputStream;
import org.freehep.graphicsio.emf.EMFOutputStream;
/**
* EMF TriVertex
*
* @author Mark Donszelmann
* @version $Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdi/TriVertex.java f2f1115939ae 2006/12/07 07:50:41 duns $
*/
public class TriVertex {
private int x, y;
private Color color;
public TriVertex(int x, int y, Color color) {
this.x = x;
this.y = y;
this.color = color;
}
public TriVertex(EMFInputStream emf) throws IOException {
x = emf.readLONG();
y = emf.readLONG();
color = emf.readCOLOR16();
}
public void write(EMFOutputStream emf) throws IOException {
emf.writeLONG(x);
emf.writeLONG(y);
emf.writeCOLOR16(color);
}
public String toString() {
return "[" + x + ", " + y + "] " + color;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy