Examples of addPoint()


Examples of com.moseph.modelutils.curve.LinearInterpolator.addPoint()

        double val = 0;
        String textVal =  reader.get( i )
        try
        {
          val = Double.parseDouble( textVal );
          bi.addPoint( columns[i-1], val );
        } catch( Exception e )
        {
          log.error( "Bad string for value " + columns[i-1] + " line " + reader.getCurrentRecord() + " file " + csvFile + " was: '" + textVal + "'");
          log.error( e.getMessage() );
        }
View Full Code Here

Examples of com.pcmsolutions.util.RangePartitioner.addPoint()

    public static boolean autoMapZoneKeyWin(ContextEditablePreset.EditableVoice.EditableZone[] zones) throws PresetEmptyException, NoSuchPresetException {
        RangePartitioner rp = new RangePartitioner(0, 127);
        try {
            for (int i = 0; i < zones.length; i++)
                rp.addPoint(zones[i].getZoneParams(new Integer[]{ID.origKey})[0].intValue());
            RangePartitioner.Point[] points = rp.getPoints();
            for (int i = 0; i < zones.length; i++) {
                zones[i].setZonesParam(ID.keyLow, IntPool.get(0));
                zones[i].setZonesParam(ID.keyHigh, IntPool.get(127));
                zones[i].setZonesParam(ID.keyLow, IntPool.get(points[i].getLow()));
View Full Code Here

Examples of com.serotonin.m2m2.jviews.component.JspView.addPoint()

        // Find the point.
        DataPointVO dataPointVO = getDataPointVO(view, xid);

        // Add the point to the view
        int id = view.addPoint(dataPointVO, raw, disabledValue, time);

        // Add the id for the point to the page context.
        pageContext.setAttribute("componentId", id);

        return EVAL_BODY_INCLUDE;
View Full Code Here

Examples of com.tommytony.war.Team.addPoint()

        // Will not work if XPKILLMETER is enabled
        player.setLevel(player.getLevel() + killSection.getInt("reward.xp"));
      }
      if (killSection.contains("reward.points")) {
        for (int i = 0; i < killSection.getInt("reward.points"); i++) {
          playerTeam.addPoint();
        }
        // Detect win conditions
        if (playerTeam.getPoints() >= playerTeam.getTeamConfig().resolveInt(TeamConfig.MAXSCORE)) {
          player.getServer().getScheduler().runTaskLater(War.war, new Runnable() {
            public void run() {
View Full Code Here

Examples of com.vaadin.addon.timeline.gwt.client.VCanvasPlotter.Graph.addPoint()

                                    lastWidth, value);
                        }

                    }
                    if (p != null) {
                        graph.addPoint(p);
                        lastX = x;
                    }
                }
            }
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.PLConnection.addPoint()

      plcNew.setAttribute("frameColor" , plcOld.getAttribute("frameColor"));
      plcNew.setAttribute("type" , plcOld.getAttribute("type"));
      plcNew.setAttribute("CFRModifier" , modifier.getName());
     
      for (int i=0 ; i<plcOld.pointCount() ; i++) {
        plcNew.addPoint(plcOld.pointAt(i).x , plcOld.pointAt(i).y);
      }
      plcNew.startPoint(gcf.getConnectors()[0].getDisplayBox().x , gcf.getConnectors()[0].getDisplayBox().y);
      plcNew.connectStart(gcf.getConnectors()[0]);
      Figure featureFigure = mFigure.get(f.getID());
      plcNew.endPoint(featureFigure.getConnectors()[3].getDisplayBox().x , featureFigure.getConnectors()[3].getDisplayBox().y);
View Full Code Here

Examples of de.fu_berlin.inf.dpp.whiteboard.gef.request.CreatePointlistRequest.addPoint()

   */
  @Override
  protected void updateTargetRequest() {
    CreatePointlistRequest req = getCreatePointlistRequest();
    if (isInState(STATE_DRAG)) {
      req.addPoint(getLocation());
    } else {
      req.clear();
      req.setLocation(getLocation());
    }
  }
View Full Code Here

Examples of de.hpi.eworld.gui.util.Polygon2D.addPoint()

  public Rectangle2D getInitialBounds() {
    PolygonLocationModel model = (PolygonLocationModel) getModelElement()
        .getLocation();
    Polygon2D poly = new Polygon2D();
    for (GlobalPosition p : model.getPoints()) {
      poly.addPoint(p.projected());
    }

    return poly.getBounds2D();
  }
View Full Code Here

Examples of de.hpi.eworld.model.db.data.event.PolygonLocationModel.addPoint()

    Assert.assertNotSame(gp1, pl.getPoints().get(0));
    Assert.assertEquals(gp2, pl.getPoints().get(0));
   
    Point2D p6 = new Point2D.Double(33,16);
    GlobalPosition gp6 = GlobalPosition.from(p6);
    pl.addPoint(gp6);
    Assert.assertEquals(4, pl.getPoints().size());
   
    Point2D p7 = new Point2D.Double(33,16);
    GlobalPosition gp7 = GlobalPosition.from(p7);
    pl.addPointAt(2, gp7);
View Full Code Here

Examples of de.lessvoid.nifty.tools.LinearInterpolator.addPoint()

    if (!containsTimeValues()) {
      return null;
    }
    LinearInterpolator interpolator = new LinearInterpolator();
    for (Attributes p : values) {
        interpolator.addPoint(p.getAsFloat("time"), p.getAsFloat("value"));
      }
    return interpolator;
  }

  public boolean containsTimeValues() {
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.