Tabnine Logo
Animator.stop
Code IndexAdd Tabnine to your IDE (free)

How to use
stop
method
in
com.jogamp.opengl.util.Animator

Best Java code snippets using com.jogamp.opengl.util.Animator.stop (Showing top 13 results out of 315)

origin: jzy3d/jzy3d-api

  @Override
  public void run() {
    if (animator != null)
      animator.stop();
    renderer = null;
    view = null;
  }
}).start();
origin: org.jogamp.jogl/jogl-all-noawt

public void stop() {
  if(null!=glAnimator) {
    glAnimator.stop();
    glWindow.setVisible(false);
  }
}
origin: com.io7m.jcamera/com.io7m.jcamera.examples.jogl

 @Override
 public void windowDestroyed(
  final @Nullable WindowEvent e)
 {
  System.out.println("Stopping animator");
  anim.stop();
  System.out.println("Exiting");
  System.exit(0);
 }
});
origin: openimaj/openimaj

/**
 *     Closes the window and cleans up
 *
 *    {@inheritDoc}
 *     @see java.lang.Object#finalize()
 */
@Override
protected void finalize() throws Throwable
{
  this.animator.stop();
  this.window.close();
};
origin: com.io7m.jcamera/com.io7m.jcamera.examples.jogl

 @Override
 public void windowDestroyed(
  final @Nullable WindowEvent e)
 {
  System.out.println("Stopping animator");
  anim.stop();
  System.out.println("Exiting");
  System.exit(0);
 }
});
origin: jzy3d/jzy3d-api

@Override
public void dispose() {
  if (animator != null)
    animator.stop();
  if (renderer != null)
    renderer.dispose(this);
  renderer = null;
  view = null;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

public void destroy() {
  isValid = false;
  if(null!=glAnimator) {
    glAnimator.stop();
    glAnimator.remove(glWindow);
    glAnimator=null;
  }
  if(null!=glWindow) {
    glWindow.destroy();
    glWindow=null;
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

public void destroy() {
  isValid = false;
  if(null!=glAnimator) {
    glAnimator.stop();
    glAnimator.remove(glWindow);
    glAnimator=null;
  }
  if(null!=glWindow) {
    glWindow.destroy();
    glWindow=null;
  }
}
origin: matsim-org/matsim

public void pause() {
  if (server.isLive()) {
    ((OTFLiveServer) server).pause();
  }
  animator.stop();
  playing = false;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

public void stop() {
  if(null!=glAnimator) {
    glWindow.removeWindowListener(reparentHomeListener);
    glAnimator.stop();
    glWindow.setVisible(false);
  }
}
origin: jzy3d/jzy3d-api

  @Override
  public void run() {
    if (animator != null && animator.isStarted()) {
      animator.stop();
    }
    if (renderer != null) {
      renderer.dispose(window);
    }
    canvas.destroy();
    window = null;
    renderer = null;
    view = null;
    animator = null;
  }
}).start();
origin: kendzi/kendzi3d

@Override
public void run() {
  // If need stop animator before dispose frame.
  if (animator.isStarted()) {
    animator.stop();
  }
  // Dispose frame.
  frame.setVisible(false);
  frame.dispose();
  onCloseWindow();
}
origin: matsim-org/matsim

@Override
public void display(GLAutoDrawable glAutoDrawable) {
  int delay = OTFClientControl.getInstance().getOTFVisConfig().getDelay_ms();
  if (playing) {
    if (syncronizedPlay) {
      try {
        Thread.sleep(delay);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
      server.requestNewTime(getSimTime() + 1);
      if (simTime.getValue() >= loopEnd) {
        server.requestNewTime(loopStart);
        simTime.setValue(server.getLocalTime());
      }
    }
    simTime.setValue(server.getLocalTime());
    if (server.isFinished()) {
      animator.stop();
    }
  }
}
com.jogamp.opengl.utilAnimatorstop

Popular methods of Animator

  • <init>
    Creates a new Animator for a particular drawable.
  • start
  • add
  • isStarted
  • display
  • finishLifecycleAction
  • flushGLRunnables
  • getThreadName
  • handleUncaughtException
  • isAnimating
  • isPaused
  • setDrawablesExclCtxState
  • isPaused,
  • setDrawablesExclCtxState,
  • setThreadGroup,
  • remove,
  • setModeBits,
  • setRunAsFastAsPossible,
  • setUpdateFPSFrames

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now