Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.DataPoint


    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

        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 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

        CloneHelper.cloneClientProperties(source, target);
        return target;
    }

    public static JTree cloneJTree(JTree source) {
        DisplayNode root = clone((DisplayNode) source.getModel().getRoot(), true);
        TreeViewModel dtm = new TreeViewModel(root);
        JTree target = new JTree(dtm);
        CloneHelper.cloneComponent(source, target, new String[] {"UI", // class javax.swing.plaf.TreeUI
                "UIClassID", // class java.lang.String
                "accessibleContext", // class javax.accessibility.AccessibleContext
View Full Code Here

        this.editor = new BorderedComboBoxEditor();
        this.setEditor(this.editor);
        this.setRenderer(new BorderedComboBoxRenderer());
        JTextComponent comp = (JTextComponent)this.editor.getEditorComponent();
        comp.setBackground(this.getBackground());
        comp.setDocument(new FixedLengthDocument(0));

        comp.addKeyListener(new ComboBoxKeyHandler());
    }
View Full Code Here

            }
            if (autoComplete) {
                editComponent.setDocument(new FillinManagementDocument(this, showDropdowns, listEntriesOnly, maxCharacters));
            }
            else {
                editComponent.setDocument(new FixedLengthDocument(maxCharacters));
            }
        }
    }
View Full Code Here

        target.setPreferredSize(source.isPreferredSizeSet() ? source.getPreferredSize() : null);
        target.setMinimumSize(source.isMinimumSizeSet() ? source.getMinimumSize() : null);
        target.setMaximumSize(source.isMaximumSizeSet() ? source.getMaximumSize() : null);
       
        if (source instanceof JComponent) {
          GridCell orig = GridCell.getExisting((JComponent)source);
          if (orig != null) {
            GridCell cell = GridCell.get((JComponent)target);
            cell.setWidthPolicy(orig.getWidthPolicy());
            cell.setHeightPolicy(orig.getHeightPolicy());
          }
          // TF:03/11/2008:We need to clone specific client properties too, otherwise some things won't work.
          ArrayFieldCellHelper.cloneComponentArrayParts((JComponent)source, (JComponent)target);
        }
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.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.