Examples of SPoly


Examples of com.bbn.openmap.layer.specialist.SPoly

            //Debug.message("dcwSpecialist.clipping",
            //              "Completely eliminated poly");
            return null;
        }

        SPoly py = new SPoly(pts, LineType.LT_Straight);
        return py;
    }
View Full Code Here

Examples of com.bbn.openmap.layer.specialist.SPoly

            //          System.out.println("\tdpplon: " + dpplon);
            //          System.out.println("\tcoords: " + coords);
            return null;
        }

        SPoly py = new SPoly(pts, LineType.LT_Straight);
        return py;
    }
View Full Code Here

Examples of com.bbn.openmap.layer.specialist.SPoly

        }
        if (totalSize == 0) {
            return;
        }

        SPoly py = createAreaSPoly(ipts, totalSize, ll1, ll2, dpplat, dpplon);
        if (py == null) {
            return;
        }

        //      if (areatype.value == -1) {
        //          areatype.value = 0;
        //      }

        java.awt.Color fc = (java.awt.Color) drawAtt.getFillPaint();
        if (fc == null) {
            fc = java.awt.Color.black;
        }

        py.color(ns(fc));
        py.fillColor(ns(fc));

        //      py.fillColor(getSColor(areatype.value));

        //      py.object(new LineComp(descript));
        graphics.addSGraphic(py);
View Full Code Here

Examples of com.bbn.openmap.layer.specialist.SPoly

        //      MutableInt lineType = new MutableInt(-1);
        //      String desc = covtable.getLineDescription(edgevec,
        // lineType);

        SPoly py = createEdgeSPoly(coords, ll1, ll2, dpplat, dpplon);
        if (py == null) {
            return;
        }

        //      py.object(new LineComp(desc));

        java.awt.Color lc = (java.awt.Color) drawAtt.getLinePaint();
        if (lc == null)
            lc = java.awt.Color.black;

        py.color(ns(lc));
        py.lineWidth((short) ((java.awt.BasicStroke) drawAtt.getStroke()).getLineWidth());

        //      if (lineType.value < 0) {
        //          py.color(new SColor((short)30000,(short)30000,(short)0));
        //      } else {
        //          py.color(edgeColors[lineType.value % 5]);
View Full Code Here

Examples of org.joshy.sketch.model.SPoly

    }

    @Override
    protected void mousePressed(MouseEvent event, Point2D.Double cursor) {
        if(poly == null) {
            poly = new SPoly();
            poly.addPoint(snapPoint(cursor));
            hotspot = cursor;
            SketchDocument doc = (SketchDocument) context.getDocument();
            doc.getCurrentPage().add(poly);
            context.getUndoManager().pushAction(new UndoableAddNodeAction(context,poly,"polygon"));
View Full Code Here

Examples of org.joshy.sketch.model.SPoly

        //check that the first node is a group
        assertTrue(doc.getPages().get(0).getModel().get(0) instanceof SGroup);
        //go down the tree to the polygon
        SGroup g1 = (SGroup) doc.getPages().get(0).getModel().get(0);
        SGroup g2 = (SGroup) g1.getNodes().get(1);
        SPoly p1 = (SPoly) g2.getNodes().get(0);
        //test the color of the polygon
        assertTrue(p1.getFillPaint() instanceof FlatColor);
        FlatColor c1 = (FlatColor) p1.getFillPaint();
        assertTrue(c1.getRGBA() == 0xFF231F20);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.