Package DisplayProject

Examples of DisplayProject.DataPoint


        PolyLine line = new PolyLine();
        line.setPointArray(points);
        line.setLineStyle(lineStyle);
        line.setLineWeight(lineWeight);
        line.setVisible(true);
        DataPoint lastPoint = points.get(points.size()-1);
        ColourChange.setForeground(line, penColor);
        Parent.set(line, form);
        processActions();
        setXPen(form, lastPoint.X);
        setYPen(form, lastPoint.Y);
View Full Code Here


            this.xPoints = new int[this.nPoints];
            this.yPoints = new int[this.nPoints];
            Iterator<DataPoint> it = this.pointArray.iterator();
            int index = 0;
            while(it.hasNext()){
                DataPoint dp = it.next();
                this.xPoints[index] = UIutils.milsToPixels(dp.X);
                this.yPoints[index] = UIutils.milsToPixels(dp.Y);
                index += 1;
            }
        } else {
View Full Code Here

    public void addPointInMills(int x, int y) {
        if (this.pointArray == null){
            pointArray = new Array_Of_DataPoint<DataPoint>();
        }
        pointArray.add(new DataPoint(x, y));
        nPoints += 1;
        int[] tempX = new int[nPoints];
        int[] tempY = new int[nPoints];
        System.arraycopy(xPoints, 0, tempX, 0, xPoints.length);
        System.arraycopy(yPoints, 0, tempY, 0, yPoints.length);
View Full Code Here

    }
    public void addPoint(int x, int y) {
        if (this.pointArray == null){
            pointArray = new Array_Of_DataPoint<DataPoint>();
        }
        pointArray.add(new DataPoint(UIutils.pixelsToMils(x), UIutils.pixelsToMils(y)));
        nPoints += 1;
        int[] tempX = new int[nPoints];
        int[] tempY = new int[nPoints];
        System.arraycopy(xPoints, 0, tempX, 0, xPoints.length);
        System.arraycopy(yPoints, 0, tempY, 0, yPoints.length);
View Full Code Here

    public void setPixelPointArray(Array_Of_DataPoint<DataPoint> points){
        if (points != null){
            Array_Of_DataPoint<DataPoint> ptArray = new Array_Of_DataPoint<DataPoint>();
            for (DataPoint pt : points) {
                if (pt != null){
                    ptArray.add(new DataPoint(UIutils.pixelsToMils(pt.X), UIutils.pixelsToMils(pt.Y)));
                }
            }
            this.setPointArray(ptArray);
        } else {
            setPointArray(null);
View Full Code Here

    public Array_Of_DataPoint<DataPoint> getPixelPointArray(){
        if (this.pointArray != null){
            Array_Of_DataPoint<DataPoint> pts = new Array_Of_DataPoint<DataPoint>();
            for (DataPoint pt : this.pointArray) {
                if (pt != null){
                    pts.add(new DataPoint(UIutils.milsToPixels(pt.X), UIutils.milsToPixels(pt.Y)));
                }
            }
            return pts;
        } else {
            return null;
View Full Code Here

            this.xPoints = new int[this.nPoints];
            this.yPoints = new int[this.nPoints];
            Iterator<DataPoint> it = this.pointArray.iterator();
            int index = 0;
            while(it.hasNext()){
                DataPoint dp = it.next();
                this.xPoints[index] = UIutils.milsToPixels(dp.X);
                this.yPoints[index] = UIutils.milsToPixels(dp.Y);
                index += 1;
            }
        } else {
View Full Code Here

    public void setPixelPointArray(Array_Of_DataPoint<DataPoint> points){
        if (points != null){
            Array_Of_DataPoint<DataPoint> ptArray = new Array_Of_DataPoint<DataPoint>();
            for (DataPoint pt : points) {
                if (pt != null){
                    ptArray.add(new DataPoint(UIutils.pixelsToMils(pt.X), UIutils.pixelsToMils(pt.Y)));
                }
            }
            this.setPointArray(ptArray);
        } else {
            setPointArray(null);
View Full Code Here

    public Array_Of_DataPoint<DataPoint> getPixelPointArray(){
        if (this.pointArray != null){
            Array_Of_DataPoint<DataPoint> pts = new Array_Of_DataPoint<DataPoint>();
            for (DataPoint pt : this.pointArray) {
                if (pt != null){
                    pts.add(new DataPoint(UIutils.milsToPixels(pt.X), UIutils.milsToPixels(pt.Y)));
                }
            }
            return pts;
        } else {
            return null;
View Full Code Here

        PolyLine line = new PolyLine();
        line.setPointArray(points);
        line.setLineStyle(lineStyle);
        line.setLineWeight(lineWeight);
        line.setVisible(true);
        DataPoint lastPoint = points.get(points.size()-1);
        ColourChange.setForeground(line, penColor);
        Parent.set(line, form);
        processActions();
        setXPen(form, lastPoint.X);
        setYPen(form, lastPoint.Y);
View Full Code Here

TOP

Related Classes of DisplayProject.DataPoint

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.