Package net.sf.jiga.xtended.kernel

Examples of net.sf.jiga.xtended.kernel.Monitor.notify()


                }

                mt.removeImage(bgImg, hashCode());
                mt.removeImage(display, hashCode());

                monitor.notify();

            }

        } catch (InterruptedException ex) {
View Full Code Here


                } else {
                    Display.this.tx = AffineTransform.getScaleInstance(1.0, 1.0);
                }
                originalBox = new Dimension(display.getWidth(this), display.getHeight(this));
                valid = true;
                monitor.notify();
            }
        } catch (Exception ex) {
            if (JXAenvUtils._debugSys) {
                ex.printStackTrace();
            }
View Full Code Here

                                doOffscreenTasks(this, offscreen_action_list);
                                GLFX._GLEndFX();
                                GLFX._GLBeginFX(false);
                                doOffscreenTasks(this, after_action_list);
                                GLFX._GLEndFX();
                                monitor.notify();
                        }
                        GL11.glFlush();
                        markFPS();
                } catch (Exception ex) {
                        if (isDebugEnabled()) {
View Full Code Here

            final Monitor monitor = processMonitor;
            synchronized (monitor) {
                while (processing) {
                    monitor.wait();
                }
                monitor.notify();
                dispatching = true;
                long now = e.getWhen();
                if (hasAttribute("player") ? isPlayerKeycode(e) : true) {
                    /* manage key pression time*/
                    switch (e.getID()) {
View Full Code Here

            final Monitor monitor0 = dispatchMonitor;
            synchronized (monitor0) {
                while (dispatching) {
                    monitor0.wait();
                }
                monitor0.notify();
                processing = true;
                if ((!isLWJGLAccel() && isLoaded()) || (isLWJGLAccel() && GLisLoaded())) {
                    /* match animation troughout keys sequences*/
                    long now = System.currentTimeMillis();
                    SortedMap<Long, KeyEventWrapper> filter = filterKeysSequence(threadedEventsSequence, now);
View Full Code Here

            if (!isReverseEnabled()) {
                animator = length - 1;
            } else {
                animator = 0;
            }
            monitor.notify();
        }
    }

    /**
     * gets the playerStatus of the animation
View Full Code Here

    @Override
    public int getPosition() {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            monitor.notify();
            return animator;
        }
    }

    @Override
View Full Code Here

    @Override
    public boolean hasNext() {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            int next = (isReverseEnabled()) ? -1 : +1;
            monitor.notify();
            return frames.containsKey(animator + next);
        }
    }

    @Override
View Full Code Here

    public SpriteGLHandler next() {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            pause();
            animator = getAnimatorValue(NEXT, animator);
            monitor.notify();
            return getSprite(animator);
        }
    }

    @Override
View Full Code Here

    public long position(int i) {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            assert (i < length && i >= 0) : getClass().getCanonicalName() + " iterator is not in the correct interval!";
            animator = i;
            monitor.notify();
        }
        adjustStartTime();
        return getTimeFramePosition();
    }
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.