Package modbuspal.generator

Examples of modbuspal.generator.GeneratorRenderer


            return;
        }

        for(int i=0; i<generators.length; i++)
        {
            GeneratorRenderer renderer = new GeneratorRenderer(this, generators[i]);
            automation.addGeneratorListener(renderer);
            generatorsListPanel.add( renderer, new Integer(i) );
        }
        generatorsListScrollPane.validate();
    }
View Full Code Here


        Component comps[] = generatorsListPanel.getComponents();
        for(int i=0; i<comps.length; i++)
        {
            if( comps[i] instanceof GeneratorRenderer )
            {
                GeneratorRenderer renderer = (GeneratorRenderer)comps[i];
                if( renderer.getGenerator() == g1 )
                {
                    return renderer;
                }
            }
        }
View Full Code Here

    @Override
    public void generatorHasBeenAdded(Automation source, Generator generator, int index)
    {
        // add slave panel into the gui and refresh gui
        GeneratorRenderer renderer = new GeneratorRenderer(this, generator);
        automation.addGeneratorListener(renderer);
        generatorsListPanel.add( renderer, new Integer(index) );
        generatorsListScrollPane.validate();
    }
View Full Code Here

TOP

Related Classes of modbuspal.generator.GeneratorRenderer

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.