Package com.google.code.appengine.awt

Examples of com.google.code.appengine.awt.Point


        }
        os = new EMFOutputStream(ros, imageBounds, handleManager, getCreator(),
                producer, device);
        pathConstructor = new EMFPathConstructor(os, imageBounds);

        Point orig = new Point(imageBounds.x, imageBounds.y);
        Dimension size = new Dimension(imageBounds.width, imageBounds.height);

        os.writeTag(new SetMapMode(MM_ANISOTROPIC));
        os.writeTag(new SetWindowOrgEx(orig));
        os.writeTag(new SetWindowExtEx(size));
View Full Code Here


        if (!t.isIdentity()) {
            writeGraphicsSave();
            writeTransform(t);
        }

        TextW text = new TextW(new Point(0, 0), string, 0, dummy, widths);
        os.writeTag(new ExtTextOutW(imageBounds, EMFConstants.GM_ADVANCED, 1, 1, text));

        // revert font transformation
        if (!t.isIdentity()) {
            writeGraphicsRestore();
View Full Code Here

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof Point) {
            Point p = (Point)obj;
            return x == p.x && y == p.y;
        }
        return false;
    }
View Full Code Here

    public double getY() {
        return y;
    }

    public Point getLocation() {
        return new Point(x, y);
    }
View Full Code Here

    }

    public Point readPOINTL() throws IOException {
        int x = readLONG();
        int y = readLONG();
        return new Point(x, y);
    }
View Full Code Here

    }

    public Point readPOINTS() throws IOException {
        int x = readShort();
        int y = readShort();
        return new Point(x, y);
    }
View Full Code Here

        this.curved = false;
    }

    public void move(double x, double y) throws IOException {
        flush();
        os.writeTag(new MoveToEx(new Point(toUnit(x), toUnit(y))));
        super.move(x, y);
    }
View Full Code Here

                || (iy < Short.MIN_VALUE) || (iy > Short.MAX_VALUE)) {
            wide = true;
        }

        if (points[n] == null) {
            points[n] = new Point(ix, iy);
        } else {
            points[n].x = ix;
            points[n].y = iy;
        }
    }
View Full Code Here

        if ((long)width*height > Integer.MAX_VALUE) {
            throw new IllegalArgumentException();
        }
       
        SampleModel sm = sampleModel.createCompatibleSampleModel(width, height);
        WritableRaster writableRaster = Raster.createWritableRaster(sm, new Point(0, 0));
       
        return new BufferedImage(colorModel, writableRaster, colorModel.isAlphaPremultiplied(), new Hashtable());
    }
View Full Code Here

        // create a GeneralPath containing GeneralPathes
        GeneralPath path = new GeneralPath(
            renderer.getWindingRule());

        // iterate the polgons
        Point p;
        for (int polygon = 0; polygon < numberOfPoints.length; polygon++) {

            // create a new member of path
            GeneralPath gp = new GeneralPath(
                renderer.getWindingRule());
            for (int point = 0; point < numberOfPoints[polygon]; point ++) {
                // add a point to gp
                p = points[polygon][point];
                if (point > 0) {
                    gp.lineTo((float) p.getX()(float)p.getY());
                } else {
                    gp.moveTo((float) p.getX()(float)p.getY());
                }
            }

            // close the member, add it to path
            if (closePath) {
View Full Code Here

TOP

Related Classes of com.google.code.appengine.awt.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.