Package Modules

Examples of Modules.Map


         
        }
    }  
   
    public void showMap(int id, String type){
        Map aux = cjtMap.getMap(id);
        AuxiliarElement elem;
        List<String[]> dat = new ArrayList();
        Stack<AuxiliarElement> auxiliar = (Stack)aux.getCjtElement().clone();
        String [] list;
        int i=0;
        while(!auxiliar.isEmpty()){           
            elem = auxiliar.peek();
            auxiliar.pop();
            list = new String[6];          
            list[0] = elem.getName();
            list[1] = String.valueOf(elem.getDim().getX());
            list[2] = String.valueOf(elem.getDim().getY());
        
            switch (elem.getFlag()){
                    case 0:
                        list[3] = String.valueOf(elem.getFinalX());
                        list[4] = String.valueOf(elem.getFinalY());
                        break;
                    case 1:           
                        list[3] = String.valueOf(elem.getFinalX());
                        list[4] = String.valueOf(elem.getFinalY()-elem.getDim().getY()+1);                       
                        break;
                    case 2:
                        list[3] = String.valueOf(elem.getFinalX()-elem.getDim().getX()+1);
                        list[4] = String.valueOf(elem.getFinalY()-elem.getDim().getY());
                        break;
                    case 3:
                        list[3] = String.valueOf(elem.getFinalX()-elem.getDim().getX());
                        list[4] = String.valueOf(elem.getFinalY());
                        break;
           
           
            list[5] = "S";           
            dat.add(list);           
        }
        if(type.equals("2D")){
            mainFrame.removeCjtMapView();
            mainFrame.showMap2D(aux.getDimensionMap().getX(), aux.getDimensionMap().getY(), dat, aux.getNameRoom(), aux.getDoors(), aux.getWindows());
        }      
        //window = new WindowView(aux.getDimensionMap().getX(), aux.getDimensionMap().getY(), dat, aux.getNameRoom());       
    }
View Full Code Here

TOP

Related Classes of Modules.Map

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.