Package fm.ak.otse.twod

Examples of fm.ak.otse.twod.ComponentRenderer


        renderer = new Renderer(this);
        hertz = new Hertz(this);
        mouse = new Mouse(this);
        keyboard = new Keyboard(this);
       
        componentrenderer = new ComponentRenderer(this);
        //net = new Net(this);
        //otse = this;
        base = this;
    }
View Full Code Here


     * shows the clear
     *
     * @see #hide()
     */
    public void display() {
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
        synchronized (cr.queue) {
            cr.queue.add(spread);
            cr.queue.add(guy);
        }
    }
View Full Code Here

   
    /**
     * removes the Clear from the screen. Does not {@link #unload} it
     */
    public void hide() {
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
        synchronized (cr.components) {
            spread.markDispose();
            guy.markDispose();
            text.markDispose();
        }
View Full Code Here

       
        float r = 73;
        float g = 83;
        float b = 92;
       
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
       
        synchronized (cr.queue) {
           
            if ( text != null )
                text.markDispose();
View Full Code Here

     * unloads the resources used by Clear
     */
    public void unload() {
        System.out.println("unloading the clear");
       
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
       
        synchronized (cr.components) {
            text.markDispose();
            text = null;
            spread.markDispose();
View Full Code Here

       
        // TODO: rewrite
       
        Component focus = null;
       
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
       
        focus = cr.findAndTriggerSingleMouseTarget();
       
        if ( focus != null ) {
            System.out.println("focus is on " + focus.develName);
            focus.handleMouseFocus();
        }
View Full Code Here

                    Thread.sleep(INTERVAL * 1);
                   
                    Floater.leans();
                   
                    ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
                   
                    synchronized (cr.queue) {
                        Mouse.setGrabbed(false);
                       
                        if ( Local.fatal )
View Full Code Here

            Strip.index += 1;
            Strip.rgba(0.0784313725490196f, 0.1725490196078431f, 0.2470588235294118f, 255);
            Strips.add(Strip);
        }
       
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();

        //synchronized (queue) {
            cr.queue.addAll(Strips);
        //}
View Full Code Here

     * @return
     */
    public static Datagram create(String sprite) {
        Datagram d = new Datagram(sprite);

        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
       
        //synchronized (Component.queue) {
            cr.queue.add(d);
        //}

View Full Code Here

     *
     * @deprecated not useful. Sometimes we want to do more in the synchronized
     * block, or add more than one Component
     */
    public static void collect(Datagram d) {
        ComponentRenderer cr = Otse.getInstance().getComponentRenderer();
       
        //synchronized (Component.queue) {
            cr.queue.add(d);
        //}
    }
View Full Code Here

TOP

Related Classes of fm.ak.otse.twod.ComponentRenderer

Copyright © 2018 www.massapicom. 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.