Examples of center()


Examples of CH.ifa.draw.framework.Figure.center()

        continue;

      if (f.getClass() != figure.getClass())
        continue;

      Point fPos = f.center();
      if (fPos.equals(pos))
      {
        // There is already another figure there at this position, try 50 pixels to the lower right
        offset.x += 50;
        offset.y += 50;
View Full Code Here

Examples of autotest.common.ui.SimpleDialog.center()

                        }
                    });
                    contents.setWidget(i, 0, link);
                }

                drill.center();
            }
        });
    }
}
View Full Code Here

Examples of bnGUI.venn.geometry.FRectangle.center()

                    if( node != null && node.vennObject != null && !node.vennObject.isEmpty() )
                    {
                      FRectangle rect = label.getBoundaries(g);
                        Assert.assertNotNull(rect);
                       
                        FSegment seg = new FSegment(node.vennObject.getCenter(),rect.center());
                        Assert.assertNotNull( seg );
                        // Polygon intersection point
                        FPoint a, b;
                        a = ((VennPolygonObject)node.vennObject).getPolygon().intersect(seg);
                        b = rect.toPolygon().intersect(seg);
View Full Code Here

Examples of ca.eandb.jmist.math.Box3.center()

   * @see ca.eandb.jmist.framework.scene.SceneElementDecorator#getBoundingSphere(int)
   */
  @Override
  public Sphere getBoundingSphere(int index) {
    Box3 b = super.getBoundingBox(index);
    return new Sphere(b.center(), b.diagonal() / 2.0);
  }

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.scene.SceneElementDecorator#getSurfaceArea()
   */
 
View Full Code Here

Examples of com.apress.progwt.client.college.gui.LoginWindow.center()

    private void doLogin(String secureTargetURL,
            AsyncCallback<User> callback) {
        this.callback = callback;
        LoginWindow lw = new LoginWindow(this, secureTargetURL);
        lw.center();
    }

    public void loginSuccess() {
        serviceCache.getCurrentUser(callback);
    }
View Full Code Here

Examples of com.apress.progwt.client.college.gui.ext.YesNoDialog.center()

                                .getName() + "?", new Command() {
                    public void execute() {
                        delete(collegeEntry);
                    }
                });
        ynDialog.center();
    }

    private void delete(final CollegeEntry collegeEntry) {
        RemoveSchoolFromRankCommand command = new RemoveSchoolFromRankCommand(
                collegeEntry.getApplication().getSchool(), user);
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.center()

        stage = new Stage();

        Table table = new Table(game.getSkin());
        table.setFillParent(true);
        table.center();

        Label title = new Label("JFIGHTER2DX", game.getSkin());
        title.setFontScale(2.5f);

        TextButton quickButton = new TextButton("RESUME", game.getSkin());
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Window.center()

    // add Text
    window.add(new HTML(prop.getText()));
   
    // center and display window
    window.show();
    window.center();
  }

  /**
   * Displays the currently selected proposal
   */
 
View Full Code Here

Examples of com.google.gerrit.client.ConfirmationDialog.center()

        @Override
        public void onOk() {
          deleteBranches(ids);
        }
      });
      confirmationDialog.center();
    }

    private void deleteBranches(final Set<Branch.NameKey> branchIds) {
      Util.PROJECT_SVC.deleteBranch(getProjectKey(), branchIds,
          new GerritCallback<Set<Branch.NameKey>>() {
View Full Code Here

Examples of com.google.gerrit.client.ErrorDialog.center()

                      super.go();
                    };
                  };
                  p.add(link);
                }
                errorDialog.center();
              }
            }
          });
    }
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.