Codota Logo
EDTUtil.getPollPeriod
Code IndexAdd Codota to your IDE (free)

How to use
getPollPeriod
method
in
com.jogamp.newt.util.EDTUtil

Best Java code snippets using com.jogamp.newt.util.EDTUtil.getPollPeriod (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.jogamp.jogl/jogl-all-noawt

final long coopSleep = edtUtil.getPollPeriod() * 2;
if( edtUtil.isRunning() ) {
  edtUtil.invokeStop(false, closeNativeTask); // don't block
origin: ch.unibas.cs.gravis/scalismo-native-stub

final long coopSleep = edtUtil.getPollPeriod() * 2;
if( edtUtil.isRunning() ) {
  edtUtil.invokeStop(false, closeNativeTask); // don't block
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public final void confinePointer(final boolean confine) {
  if(this.pointerConfined != confine) {
    boolean setVal = 0 == getWindowHandle();
    if(!setVal) {
      if(confine) {
        requestFocus();
        warpPointer(getSurfaceWidth()/2, getSurfaceHeight()/2);
      }
      setVal = confinePointerImpl(confine);
      if(confine) {
        // give time to deliver mouse movements w/o confinement,
        // this allows user listener to sync previous position value to the new centered position
        try {
          Thread.sleep(3 * screen.getDisplay().getEDTUtil().getPollPeriod());
        } catch (final InterruptedException e) { }
      }
    }
    if(setVal) {
      this.pointerConfined = confine;
    }
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public final void confinePointer(final boolean confine) {
  if( !isReconfigureMaskSupported(STATE_MASK_POINTERCONFINED) && isNativeValid() ) {
    return;
  }
  if(stateMask.get(STATE_BIT_POINTERCONFINED) != confine) {
    boolean setVal = 0 == getWindowHandle();
    if(!setVal) {
      if(confine) {
        requestFocus();
        warpPointer(getSurfaceWidth()/2, getSurfaceHeight()/2);
      }
      setVal = confinePointerImpl(confine);
      if(confine) {
        // give time to deliver mouse movements w/o confinement,
        // this allows user listener to sync previous position value to the new centered position
        try {
          Thread.sleep(3 * screen.getDisplay().getEDTUtil().getPollPeriod());
        } catch (final InterruptedException e) { }
      }
    }
    if(setVal) {
      stateMask.put(STATE_BIT_POINTERCONFINED, confine);
    }
  }
}
com.jogamp.newt.utilEDTUtilgetPollPeriod

Popular methods of EDTUtil

  • invoke
    Appends task to the EDT task queue if current thread is not EDT, otherwise execute task immediately.
  • isCurrentThreadEDT
    Returns true if the current thread is the event dispatch thread (EDT). The EDT is the platform speci
  • invokeStop
    Append the final task to the EDT task queue, signals EDT to stop. If wait is true methods blocks unt
  • isCurrentThreadEDTorNEDT
    Returns true if either #isCurrentThreadEDT() or #isCurrentThreadNEDT() is true, otherwise false.
  • isRunning
  • start
    Starts the EDT after it's creation or after #invokeStop(boolean,Runnable). If the EDT is running, it
  • waitUntilStopped
    Wait until EDT task is stopped. No stop action is performed, #invokeStop(boolean,java.lang.Runnable)

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JFrame (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now