Examples of pause()


Examples of avrora.sim.Simulation.pause()

                //hit play and a sim is already running unpaused...in which
                //case we do nothing (We DONT want to start two simulations
            }
            return true;
        } else if (PAUSE.equals(cmd)) {
            sim.pause();
            return true;
        } else if (REWIND.equals(cmd)) {
            //move slider to the left
            int slideValue = simTimeSlider.getValue();
            if (slideValue <= -1) {
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie.pause()

  /**
   * Pause.
   */
  public void pause() {
    GSMovie movie = getMovie();
    movie.pause();
  }


  /**
   * Time.
 
View Full Code Here

Examples of com.google.gwt.dom.client.AudioElement.pause()

  }

  @Override
  public boolean play() {
    AudioElement elem = audio.getAudioElement();
    elem.pause();
    try {
      // IE9 has been seen to throw an exception here
      elem.setCurrentTime(0);
    } catch (Exception ignore) {
    }
View Full Code Here

Examples of com.jme3.cinematic.events.CinematicEvent.pause()

    @Override
    public void onPause() {
        for (int i = 0; i < cinematicEvents.size(); i++) {
            CinematicEvent ce = cinematicEvents.get(i);
            if (ce.getPlayState() == PlayState.Playing) {
                ce.pause();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusRegistration.pause()

      started = reg.start();
      assertEquals("Started", false, started);
      assertEquals("Registered State", RegistrationState.STARTED, reg.getState());

      // Pause
      reg.pause();
      assertEquals("Registered State", RegistrationState.PAUSED, reg.getState());
      assertEquals("Component Status", Status.PAUSED, reg.getStatus().getStatus());

      // resume
      reg.resume();
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusRegistration.pause()

      started = reg.start();
      assertEquals("Started", false, started);
      assertEquals("Registered State", RegistrationState.STARTED, reg.getState());

      // Pause
      reg.pause();
      assertEquals("Registered State", RegistrationState.PAUSED, reg.getState());
      assertEquals("Component Status", Status.PAUSED, reg.getStatus().getStatus());

      // resume
      reg.resume();
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusV3Registration.pause()

            r.pause();
            regStatePair = new RegStatePair(r.getState(), r.getRegistrationId());
          }
          else
          {
            r2.pause();
            regStatePair = new RegStatePair(r2.getState().name(), r2.getRegistrationId());
          }
        }
      }
      else
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusV3Registration.pause()

      {
        DatabusV3Registration r = regMap.get(reg.getRegId());
        if (r.getState().isRunning())
        {
          if (r.getState() != RegistrationState.PAUSED)
            r.pause();
        }
      }
    }
    writeJsonObjectToResponse(getAllTopLevelRegStates(), request);
  }
View Full Code Here

Examples of com.linkedin.databus2.producers.EventProducer.pause()

        .entrySet()) {
      EventProducer producer = entry.getValue();

      if (null != producer) {
        if (producer.isRunning()) {
          producer.pause();
          LOG.info("EventProducer :" + producer.getName()
              + "  pause sent");
        } else if (producer.isPaused()) {
          LOG.info("EventProducer :" + producer.getName()
              + "  already paused");
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.pause()

        new ZKHelixDataAccessor(clusterName, new ZkBaseDataAccessor<ZNRecord>(_zkClient));
    Builder keyBuilder = accessor.keyBuilder();

    if (enabled)
    {
      accessor.removeProperty(keyBuilder.pause());
    }
    else
    {
      accessor.createProperty(keyBuilder.pause(), new PauseSignal("pause"));
    }
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.