Examples of autosize()


Examples of javafx.scene.Group.autosize()

  public MediaView view;

  public Scene createScene(final String sourceURL) throws Throwable {
    final ControlPanel panel = UISession.getControlPanel();
    final Group root = new Group();
    root.autosize();
    MediaUtils.activeMedia = sourceURL;
    final String trailer = MediaUtils.getMediaURL(sourceURL);
    try {
      media = new Media(trailer.trim());
    } catch (final Exception e) {
View Full Code Here

Examples of javafx.scene.text.Text.autosize()

        Text label = new Text(" " + labelText + " ");
        label.setTextAlignment(TextAlignment.CENTER);
        label.setFont(Font.font(null, bold ? FontWeight.BOLD : FontWeight.NORMAL, 10));
        //position label accounting for width
        label.relocate(labelX + labelWidth / 2 - label.getBoundsInLocal().getWidth() / 2, 0);
        label.autosize();

        if (leafPane.getChildren().isEmpty()) {
            //just add first label
            leafPane.getChildren().add(label);
        } else {
View Full Code Here

Examples of org.compiere.minigrid.MiniTable.autoSize()

    table.setColumnClass(5, String.class, true);       //  Locator
    table.setColumnClass(6, String.class, true);       //  ASI
    table.setColumnClass(7, String.class, true);      //  DocNo
    table.setColumnClass(8, String.class, true);       //  Warehouse
    //
    table.autoSize();
  //  initAtpTab

  /**
   * @return selected product category ID
   */
 
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.