Package net.sf.jiga.xtended.kernel

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


            if (isReverseEnabled()) {
                timeFrame = realTimeLength() - timeFrame;
            }
            animator = Math.min(length - 1, Math.max(0, (int) Math.round(((float) timeFrame / (float) realTimeLength()) * (float) length)));
            position(animator);
            monitor.notify();
            return animator;
        }
    }

    @Override
View Full Code Here


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

    @Override
View Full Code Here

    @Override
    public void remove() {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            frames.remove(animator);
            monitor.notify();
        }
    }

    @Override
    public void rewind() {
View Full Code Here

                animator = length - 1;
            } else {
                animator = 0;
            }
            sfx_played = false;
            monitor.notify();
        }
    }

    /**
     * @param delay the delay in millis between each frame change, e.g.
View Full Code Here

                    }
                } else {
                    sfx_played = false;
                }
            }
            monitor2.notify();
        }
        return this;
    }
    float texPty = .5f;
View Full Code Here

     */
    @Override
    public SpriteGLHandler getCurrentSprite() {
        final Monitor monitor = imageSynch;
        synchronized (monitor) {
            monitor.notify();
            return getSprite(animator);
        }
    }

    @Override
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.