Examples of scroll()


Examples of org.sonar.server.search.Result.scroll()

    Result results = index.search(new RuleQuery(), new QueryContext().setScroll(true));

    assertThat(results.getTotal()).isEqualTo(max);
    assertThat(results.getHits()).hasSize(0);

    Iterator<Rule> it = results.scroll();
    int count = 0;
    while (it.hasNext()) {
      count++;
      it.next();
    }
View Full Code Here

Examples of org.spoutcraft.api.gui.Scrollable.scroll()

      if (w != null && isInBoundingRect(w, x, y)) {
        if (w instanceof Scrollable) {
          // Stupid LWJGL not recognizing vertical scrolls :(
          Scrollable lw = (Scrollable) w;
          if (axis == Orientation.VERTICAL) {
            lw.scroll(0, -scroll / 30);
          } else {
            lw.scroll(-scroll / 30, 0);
          }
          PacketControlAction action = new PacketControlAction(lw.getScreen() != null ? lw.getScreen() : getScreen(), lw, axis.toString(), lw.getScrollPosition(axis));
          SpoutClient.getInstance().getPacketManager().sendSpoutPacket(action);
View Full Code Here

Examples of tripleplay.ui.Scroller.scroll()

        // updates the scroll offset
        UnitSlot updatePos = new UnitSlot() {
            @Override public void onEmit () {
                float x = xpos.value.get() * scroll.hrange.max();
                float y = ypos.value.get() * scroll.vrange.max();
                scroll.scroll(x, y);
            }
        };
        xpos.value.connect(updatePos);
        ypos.value.connect(updatePos);

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.