Examples of CellComponent


Examples of jmt.gui.jmodel.JGraphMod.CellComponent

    keys = stations.keySet().iterator();
    while (keys.hasNext()) {
      oldkey = keys.next();
      // Creates a new station with parameters got from previous copy operation
      newkey = sd.deserializeStation(stations.get(oldkey));
      newcell = mediator.getCellFactory().createCell(sd.getStationType(newkey) + "Cell", new CellComponent(newkey, sd));
      tempkey.put(oldkey, newkey);
      // Calculates where this station should be put
      oldpos = stationpositions.get(oldkey);
      newpos = new Point2D.Double(where.getX() + oldpos.getX() - zero.getX(), where.getY() + oldpos.getY() - zero.getY());
      // Insert created station into JGraph. Finds the first empty position going
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.CellComponent

        resizeToggleButton.setEnabled(true);
        sizeSlider.setEnabled(true);

        // See if there is a translate component on the Cell. If so, then set
        // the toggle button state.
        CellComponent component = cell.getComponent(TranslateAffordanceCellComponent.class);
        translateToggleButton.setSelected(component != null);
        translateToggleButton.repaint();

        // In theory each affordance component can hold a different size value.
        // In practice this can never happen since the GUI enforces all of the
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.CellComponent

        if (translateToggleButton.isSelected() != visible) {
            translateToggleButton.setSelected(visible);
        }

        // See if there is already a translate component on the Cell.
        CellComponent component = cell.getComponent(TranslateAffordanceCellComponent.class);

        // If we are selecting the translate toggle button, then add the
        // translate component if it is not already on there. Also, set its
        // size.
        if (visible == true) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.CellComponent

        if (rotateToggleButton.isSelected() != visible) {
            rotateToggleButton.setSelected(visible);
        }

        // See if there is already a rotate component on the Cell.
        CellComponent component = cell.getComponent(RotateAffordanceCellComponent.class);

        // If we are selecting the rotation toggle button, then add the rotate
        // component if it is not already on there. Also, set its size.
        if (visible == true) {
            if (component == null) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.CellComponent

        if (resizeToggleButton.isSelected() != visible) {
            resizeToggleButton.setSelected(visible);
        }

        // See if there is already a rotate component on the Cell.
        CellComponent component = cell.getComponent(ResizeAffordanceCellComponent.class);

        // If we are selecting the resize toggle button, then add the resize
        // component if it is not already on there. Also, set its size.
        if (visible == true) {
            if (component == null) {
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.