Examples of jumpTo()


Examples of com.google.collide.client.editor.ViewportModel.jumpTo()

          viewport.shiftVertically(key == KeyCodeMap.PAGE_DOWN, true);
          return true;

        case KeyCodeMap.HOME:
        case KeyCodeMap.END:
          viewport.jumpTo(key == KeyCodeMap.END);
          return true;
      }

      return false;
    }
View Full Code Here

Examples of de.nameless.gameEngine.gameObjects.NEUnit.jumpTo()

    if(done){
     
      NEField sourceField = game.getFieldByXY(oldPos.x,oldPos.y);
      NEUnit u  = game.getUnitByID(unitid);
      System.out.println(sourceField);
      u.jumpTo(sourceField);
      u.releaseMovedLable();   
      done = false;
    }   
  }
View Full Code Here

Examples of dwlab.shapes.sprites.Sprite.jumpTo()

  @Override
  public void drawUsingTileMap( TileMap tileMap, LinkedList shapes, Color drawingColor ) {
    if( !tileMap.visible ) return;
    Sprite sprite = new Sprite();
    sprite.jumpTo( tileMap );
    sprite.setSize( tileMap.getWidth(), tileMap.getHeight() );
    drawUsingSprite( sprite );
  }

View Full Code Here

Examples of dwlab.shapes.sprites.Sprite.jumpTo()

      area.setSize( 4d, 4d );
      area.startingTime = instance.time;
      double angle = ball1.directionTo( ball2 ) + 0.5d * Math.PI;
      for( int n = 1; n <= particlesQuantity; n++ ) {
        Sprite particle = new Sprite();
        particle.jumpTo( area );
        particle.angle = angle + Service.random( -Math.PI / 12d, Math.PI / 12d ) + ( n % 2 ) * Math.PI;
        particle.setDiameter( Service.random( 0.2d, 0.6d ) );
        particle.velocity = Service.random( 0.5d, 3d );
        area.particles.addLast( particle );
      }
View Full Code Here

Examples of org.broad.igv.feature.exome.ExomeReferenceFrame.jumpTo()

        if (exomeTrack == null) return false;

        ExomeReferenceFrame exomeFrame = new ExomeReferenceFrame(defaultFrame, exomeTrack);

        Locus locus = new Locus(defaultFrame.getChrName(), (int) defaultFrame.getOrigin(), (int) defaultFrame.getEnd());
        exomeFrame.jumpTo(locus);
        defaultFrame = exomeFrame;
        frames.clear();
        frames.add(defaultFrame);
        exomeMode = true;
        return true;
View Full Code Here

Examples of org.broad.igv.ui.panel.ReferenceFrame.jumpTo()

        int lastStart = genome.getChromosome(chr).getLength() - 4 * halfwidth;
        int[] starts = new int[]{500, 5000, 15000, start, 500000, lastStart};
        int[] ends = new int[]{600, 10000, 20000, end, 600000, lastStart + 2 * halfwidth};
        for (int ii = 0; ii < starts.length; ii++) {
            frame.jumpTo(new Locus(chr, starts[ii], ends[ii]));
            int actEnd = (int) frame.getEnd();

            manager.load(context, renderOptions, false);

            assertManagerHasInterval(manager, chr, starts[ii], actEnd);
View Full Code Here

Examples of org.broad.igv.ui.panel.ReferenceFrame.jumpTo()

        RenderContextImpl context = new RenderContextImpl(null, null, frame, null);

        for (int pp = 0; pp < numPans; pp++) {
            shift = pp * panInterval;
            Locus locus = new Locus(chr, start + shift, end + shift);
            frame.jumpTo(locus);

            manager.load(context, renderOptions, false);

            assertManagerHasInterval(manager, chr, locus.getStart(), locus.getEnd());
        }
View Full Code Here

Examples of org.broad.igv.ui.panel.ReferenceFrame.jumpTo()

        String chr = "chr1";
        int start = 5;
        int end = 5000;
        int limit = 2;

        frame.jumpTo(chr, start, end);

        Assert.assertEquals(chr, frame.getChrName());
        assertTrue(Math.abs(frame.getCurrentRange().getStart() - start) < limit);
        assertTrue(Math.abs(frame.getCurrentRange().getEnd() - end) < limit);
View Full Code Here

Examples of org.broad.igv.ui.panel.ReferenceFrame.jumpTo()

            if (!chr.equals(frame.getChrName())) {
                // Switch chromosomes.  We have to do some tricks to maintain the same resolution scale.
                double range = frame.getEnd() - frame.getOrigin();
                int newOrigin = (int) Math.max(newCenter - range / 2, 0);
                int newEnd = (int) (newOrigin + range);
                frame.jumpTo(chr, newOrigin, newEnd);
            } else {
                frame.centerOnLocation(newCenter);
            }
        }
    }
View Full Code Here

Examples of org.broad.igv.ui.panel.ReferenceFrame.jumpTo()

                            final String endString =
                                    getAttribute((Element) childNode, SessionAttribute.END.getText()).replace(",", "");
                            int start = ParsingUtils.parseInt(startString);
                            int end = ParsingUtils.parseInt(endString);
                            org.broad.igv.feature.Locus locus = new Locus(chr, start, end);
                            f.jumpTo(locus);
                        } catch (NumberFormatException e) {
                            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
                        }
                    }
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.