Examples of WindowPosition


Examples of com.poker.ui.windows.auxiluary.WindowPosition

    }

    void PreparePositions() {

        WindowPosition wpos;
        for (int j = 0; j < this.programSettings.getNumPositionRows(); j++) {
            for (int i = 0; i < this.programSettings.getNumPositionCols(); i++) {
                wpos = new WindowPosition();
                wpos.setX(i);
                wpos.setY(j);
                wpos.setPosNum(i + j * this.programSettings.getNumPositionCols());
                wpos.setPlayWindow(null);
                this.windowsPos.add(wpos);
            }
        }
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);viewer.setPreferredSize(getSize());
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);
       
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
        viewer.setPreferredSize(getSize());
        //viewer.getModel().getGraphLayout().initialize(getSize());
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);
       
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
        viewer.setPreferredSize(getSize());
        //viewer.getModel().getGraphLayout().initialize(getSize());
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);viewer.setPreferredSize(getSize());
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);
       
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
        viewer.setPreferredSize(getSize());
        //viewer.getModel().getGraphLayout().initialize(getSize());
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);
       
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
        viewer.setPreferredSize(getSize());
        //viewer.getModel().getGraphLayout().initialize(getSize());
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);viewer.setPreferredSize(getSize());
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

        }

        setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
        updatePopupMenu(popupMenu,keyToActionMap);
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
        final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        graphMouse.add(new PickingGraphMousePlugin());
        viewer.setGraphMouse(graphMouse);
        viewer.setPickSupport(new ShapePickSupport());
        viewer.addMouseListener(this);viewer.setPreferredSize(getSize());
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
        getContentPane().add(panel);
        pack();
     
        restoreLayout(true, currentGraph);
        setBounds(framePosition.getRect());
        framesVisible.add(this);// register as an active frame.
        setVisible(true);
    }
View Full Code Here

Examples of statechum.GlobalConfiguration.WindowPosition

            setIconImage(icon);
        }

        setKeyBindings();
        //getContentPane().removeAll();
        WindowPosition framePosition = globalConfig.loadFrame(propName);
        setSize(new Dimension(framePosition.getRect().width, framePosition.getRect().height));
        setBounds(framePosition.getRect());

        viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
                propName != null ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));

        viewer.setBackground(Color.WHITE);
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.