Examples of Point


Examples of org.apache.flex.utils.Point

     * <p>
     * Creates an empty Flash Shape with the pen starting at [0.0, 0.0].
     */
    public ShapeBuilder(Styles styles)
    {
        this(styles, new Point());
    }
View Full Code Here

Examples of org.apache.flink.examples.java.clustering.KMeans.Point

  }
 
  public static DataSet<Point> getDefaultPointDataSet(ExecutionEnvironment env) {
    List<Point> pointList = new LinkedList<Point>();
    for (Object[] point : POINTS) {
      pointList.add(new Point((Double) point[0], (Double) point[1]));
    }
    return env.fromCollection(pointList);
  }
View Full Code Here

Examples of org.apache.jdo.tck.pc.mylib.Point

    private void runTestDeletePersistentAllFails1(PersistenceManager pm) {
        Transaction tx =  pm.currentTransaction();
        try {
            tx.begin();
           
            Point np3 =  new Point (5,5);
           
            Collection col1 = new java.util.HashSet();
            col1.add(p1);
            col1.add(p2);
            col1.add(np3);
View Full Code Here

Examples of org.apache.pivot.wtk.Point

            // Draw the left and top borders
            switch (tabOrientation) {
                case HORIZONTAL: {
                    graphics.draw(new Line2D.Double(left, top, left, bottom));

                    Point selectedTabButtonLocation = activeTabButton.mapPointToAncestor(tabPane, 0, 0);
                    graphics.draw(new Line2D.Double(left, top, selectedTabButtonLocation.x + 0.5, top));
                    graphics.draw(new Line2D.Double(selectedTabButtonLocation.x + activeTabButton.getWidth() - 0.5,
                        top, right, top));

                    break;
                }

                case VERTICAL: {
                    graphics.draw(new Line2D.Double(left, top, right, top));

                    Point selectedTabButtonLocation = activeTabButton.mapPointToAncestor(tabPane, 0, 0);
                    graphics.draw(new Line2D.Double(left, top, left, selectedTabButtonLocation.y + 0.5));
                    graphics.draw(new Line2D.Double(left, selectedTabButtonLocation.y + activeTabButton.getHeight() - 0.5,
                        left, bottom));

                    break;
View Full Code Here

Examples of org.codemap.Point

        }
        return null;
    }
   
    public static void anotherDebugPointSet(HashMap<Point, Integer> points) {
        points.put(new Point(0.727982013571401, 0.2015012075161291, "DigitalElevationModel"), 13);
        points.put(new Point(0.12209471257111137, 0.41856172072710734, "Label"), 25);
        points.put(new Point(0.47729332118731826, 0.36723768655363476, "DEMAlgorithmTest"), 45);
        points.put(new Point(0.17992872725322762, 0.42339774596246355, "Background"), 16);
        points.put(new Point(0.4452025593828695, 0.36965759335616194, "ComputeHillShadingTask"), 31);
        points.put(new Point(0.6991351300857797, 0.5217493337409814, "ComputeConfigurationTask"), 24);
        points.put(new Point(0.9161531420179493, 0.4318100278031642, "HillShading"), 20);
        points.put(new Point(0.8570590768479509, 0.5691210629310043, "Point"), 34);
        points.put(new Point(0.47225520382440234, 0.42309419203753873, "DEMAlgorithm"), 44);
        points.put(new Point(0.35154190197260193, 0.39734456783186906, "ContourLineAlgorithm"), 29);
        points.put(new Point(0.4513358771188642, 0.3292220956007367, "MapValueBuilder"), 44);
        points.put(new Point(0.05, 0.36352119121629467, "CodemapEventRegistry"), 22);
        points.put(new Point(0.6298226948086383, 0.43359247287423325, "Grayscales"), 21);
        points.put(new Point(0.07946042589040347, 0.41484208920724125, "SparseTrueBooleanListTest"), 26);
        points.put(new Point(0.630095046819459, 0.41061805721935074, "HausdorffDistance"), 36);
        points.put(new Point(0.6456237874721577, 0.45734409241498486, "OpenFilesOverlay"), 28);
        points.put(new Point(0.10322438277079068, 0.3269586972498873, "ComputeLabelingTask"), 49);
        points.put(new Point(0.33691101376819776, 0.38996864161127137, "SmallDocumentCorporaTest"), 17);
        points.put(new Point(0.7523161105535109, 0.3208210993734694, "DefaultLabelScheme"), 19);
        points.put(new Point(0.4944504378202183, 0.5369022177270648, "Configuration"), 46);
        points.put(new Point(0.6955092286410955, 0.5351757698625104, "BackgroundBuilder"), 14);
        points.put(new Point(0.43081699222996955, 0.19166161457893255, "CodemapListener"), 11);
        points.put(new Point(0.5172643910564242, 0.404000331843547, "CompositeLayer"), 37);
        points.put(new Point(0.3673980987395062, 0.4666504593793392, "MersenneTwister"), 100);
        points.put(new Point(0.5655037268614987, 0.28994995638832216, "Labeling"), 12);
        points.put(new Point(0.5377493645735713, 0.9500000000000001, "SWTLayer"), 34);
        points.put(new Point(0.5152555581996034, 0.3723720040806855, "MeanderError"), 11);
        points.put(new Point(0.4818486534932965, 0.33781698027823204, "MapVisualization"), 27);
        points.put(new Point(0.318016802743569, 0.28259579933293394, "MapAlgorithm"), 14);
        points.put(new Point(0.522318577424264, 0.4351405745626467, "RawElevationBackground"), 28);
        points.put(new Point(0.5192303805134787, 0.36946927600104257, "ExampleMap"), 8);
        points.put(new Point(0.8432292989990462, 0.5486997851171438, "SparseTrueBooleanList"), 22);
        points.put(new Point(0.6432905872589707, 0.15671820075525372, "CodemapColors"), 23);
        points.put(new Point(0.38937045833405015, 0.48921803384071855, "MapValues"), 39);
        points.put(new Point(0.4063108212029932, 0.4621536890132572, "CodemapEvent"), 16);
        points.put(new Point(0.46730963146613774, 0.34664316038557624, "LayersBuilder"), 18);
        points.put(new Point(0.4379483657817863, 0.32393646533261944, "ColorsTest"), 16);
        points.put(new Point(0.21470043718129933, 0.5036560990073666, "MapSelection"), 31);
        points.put(new Point(0.39765091057238006, 0.5086486435181407, "AssertionsEnabledTest"), 10);
        points.put(new Point(0.2889275726399062, 0.476057585720651, "RunLengthEncodedList"), 27);
        points.put(new Point(0.21992081869525126, 0.4074167047374584, "ComputeElevationModelTask"), 28);
        points.put(new Point(0.5173137368904185, 0.4414935957711703, "HillshadeAlgorithm"), 33);
        points.put(new Point(0.6001180458218406, 0.4418556299519342, "MapInstance"), 66);
        points.put(new Point(0.46180742085710835, 0.32384455402588624, "LabelOverlay"), 32);
        points.put(new Point(0.5137970941285689, 0.4869605955671055, "CurrSelectionOverlay"), 50);
        points.put(new Point(0.22058139659686388, 0.4122237107928034, "MapCaches"), 35);
        points.put(new Point(0.2871885059819287, 0.7869154368782301, "MeanderEventListener"), 11);
        points.put(new Point(0.7893003173396159, 0.38908510474834707, "YouAreHereOverlay"), 38);
        points.put(new Point(0.2256521543212685, 0.23175273761735904, "ComputeBackgroundTask"), 65);
        points.put(new Point(0.5635523569125178, 0.37696310190348553, "MapBuilder"), 21);
        points.put(new Point(0.5934965024086764, 0.4012583117685836, "Meander"), 34);
        points.put(new Point(0.47250659810833273, 0.250594696723062, "MapSetting"), 27);
        points.put(new Point(0.5594123440680524, 0.4449952930335879, "NearestNeighborAlgorithm"), 27);
        points.put(new Point(0.33963258764981585, 0.21330559358033246, "CodemapVisualization"), 60);
        points.put(new Point(0.7693014802918043, 0.11768958231820768, "Location"), 30);
        points.put(new Point(0.5910673951826484, 0.4757855227520342, "ComputeIndexTask"), 29);
        points.put(new Point(0.2994431028447028, 0.3244946853193488, "Delimiter"), 22);
        points.put(new Point(0.947532943597702, 0.4463810500028635, "ComputeMapInstanceTask"), 29);
        points.put(new Point(0.9500000000000001, 0.4312819509079541, "RunLengthEncodedListTest"), 43);
        points.put(new Point(0.6293353128823594, 0.24724398030391875, "SelectionOverlay"), 27);
        points.put(new Point(0.8249995758455634, 0.27964294342822366, "MapScheme"), 18);
        points.put(new Point(0.5654801804834333, 0.32597600957685224, "MColor"), 27);
        points.put(new Point(0.38383959960374464, 0.4868400574925613, "MDS"), 33);
        points.put(new Point(0.505278014077507, 0.05, "DefaultLabelScheme"), 19);       
    }
View Full Code Here

Examples of org.eclipse.dd.dc.Point

                        } else if (flowElement instanceof SequenceFlow) {
                            SequenceFlow sequenceFlow = (SequenceFlow) flowElement;
                            BPMNEdge edge = diFactory.createBPMNEdge();
                            edge.setBpmnElement(flowElement);
                            DcFactory dcFactory = DcFactory.eINSTANCE;
                            Point point = dcFactory.createPoint();
                            if(sequenceFlow.getSourceRef() != null) {
                                Bounds sourceBounds = _bounds.get(sequenceFlow.getSourceRef().getId());
                                point.setX(sourceBounds.getX() + (sourceBounds.getWidth()/2));
                                point.setY(sourceBounds.getY() + (sourceBounds.getHeight()/2));
                            }
                            edge.getWaypoint().add(point);
//                List<Point> dockers = _dockers.get(sequenceFlow.getId());
//                for (int i = 1; i < dockers.size() - 1; i++) {
//                  edge.getWaypoint().add(dockers.get(i));
//                }
                            point = dcFactory.createPoint();
                            if(sequenceFlow.getTargetRef() != null) {
                                Bounds targetBounds = _bounds.get(sequenceFlow.getTargetRef().getId());
                                point.setX(targetBounds.getX() + (targetBounds.getWidth()/2));
                                point.setY(targetBounds.getY() + (targetBounds.getHeight()/2));
                            }
                            edge.getWaypoint().add(point);
                            plane.getPlaneElement().add(edge);
                        }
                    }
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Point

    /**
     * @generated
     */
    private RotatableDecoration createTargetDecoration() {
      PolylineDecoration df = new PolylineDecoration();
      df.setLocation(new Point(getMapMode().DPtoLP(-2), getMapMode()
          .DPtoLP(0)));
      PointList pl = new PointList();
      pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
      pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
      df.setTemplate(pl);
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.styles.Point

            if (containerWidth != size.getWidth()) {

                if (graphicsAlgorithm instanceof Polyline) {

                    Polyline polyline = (Polyline) graphicsAlgorithm;
                    Point secondPoint = polyline.getPoints().get(1);
                    Point newSecondPoint =
                        gaService.createPoint(containerWidth,
                            secondPoint.getY());
                    polyline.getPoints().set(1, newSecondPoint);
                    anythingChanged = true;
View Full Code Here

Examples of org.eclipse.sapphire.ui.Point

    this.spacerPresentation = spacerPresentation;
  }
 
  public Dimension getMinimumSize(int w, int h)
  {
    Point size = this.spacerPresentation.getMinimunSize();
    Dimension d = new Dimension(size.getX(), size.getY());
    return d;
  }
View Full Code Here

Examples of org.eclipse.swt.graphics.Point

    _viewer.refresh(element);
  }
 

  public void handleEvent(Event event) {
    final Point pt = new Point(event.x, event.y);
    final TableItem item = _viewer.getTable().getItem(pt);   
    if (item != null) {
      for (int column = 0; column < _viewer.getTable().getColumnCount(); column++) {
        Rectangle rect = item.getBounds(column);
        if (rect.contains(pt)) {
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.