Examples of Layout


Examples of com.badlogic.gdx.scenes.scene2d.Layout

      actor.x = 0;
      actor.y = 0;
      actor.width = width;
      actor.height = height;
      if (actor instanceof Layout) {
        Layout layout = (Layout)actor;
        layout.invalidate();
        layout.layout();
      }
    }
  }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.Layout

    for (int i = 0, n = nodes.size; i < n; i++) {
      Node node = nodes.get(i);
      float rowWidth = indent + iconSpacingRight;
      Actor actor = node.actor;
      if (actor instanceof Layout) {
        Layout layout = (Layout)actor;
        rowWidth += layout.getPrefWidth();
        node.height = layout.getPrefHeight();
        layout.pack();
      } else {
        rowWidth += actor.getWidth();
        node.height = actor.getHeight();
      }
      if (node.icon != null) {
View Full Code Here

Examples of com.dotmarketing.business.Layout

        if(changedLayout.equals(l.getId())) {
          found = true;
          break;
        }
      }
      Layout layout = layoutAPI.loadLayout(changedLayout);
      if(!found) {
        roleAPI.addLayoutToRole(layout, role);
      }
    }
  }
View Full Code Here

Examples of com.extentech.formats.OOXML.Layout

    P para= new P(td.getFont(bk), td.toString());
    this.chartText= new ChartText(null, para, null);
  }

  public void setLayout(double x, double y) {
    this.layout= new Layout(null, new double[]{x, y, -1, -1});   
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Layout

* Date: Aug 18, 2009
* Time: 5:53:34 PM
*/
public class EditEntryPoint extends CommonEntryPoint {
    public void onModuleLoad() {
        @SuppressWarnings("unused")
        Layout junk = new AnchorLayout();
        checkSession();
        final RootPanel panel = RootPanel.get("editmode");
        if (panel != null) {
            final String path = DOM.getElementAttribute(panel.getElement(), "path");
View Full Code Here

Examples of com.google.gwt.layout.client.Layout

  /**
   * Creates an empty layout panel.
   */
  public LayoutPanel() {
    setElement(Document.get().createDivElement());
    layout = new Layout(getElement());
    layoutCmd = new LayoutCommand(layout);
  }
View Full Code Here

Examples of com.liferay.portal.model.Layout

    friendlyURLMap.put(LocaleUtil.getDefault(), friendlyURL);

    String typeSettings = layoutJSONObject.getString("typeSettings");

    Layout layout = LayoutLocalServiceUtil.addLayout(
      userId, groupId, privateLayout, parentLayoutId, nameMap, titleMap,
      null, null, null, LayoutConstants.TYPE_PORTLET, typeSettings,
      hidden, friendlyURLMap, serviceContext);

    LayoutTypePortlet layoutTypePortlet =
      (LayoutTypePortlet)layout.getLayoutType();

    String layoutTemplateId = layoutJSONObject.getString(
      "layoutTemplateId", _defaultLayoutTemplateId);

    if (Validator.isNotNull(layoutTemplateId)) {
      layoutTypePortlet.setLayoutTemplateId(
        userId, layoutTemplateId, false);
    }

    JSONArray columnsJSONArray = layoutJSONObject.getJSONArray("columns");

    addLayoutColumns(
      layout, LayoutTypePortletConstants.COLUMN_PREFIX, columnsJSONArray);

    LayoutLocalServiceUtil.updateLayout(
      groupId, layout.isPrivateLayout(), layout.getLayoutId(),
      layout.getTypeSettings());

    JSONArray layoutsJSONArray = layoutJSONObject.getJSONArray("layouts");

    addLayouts(privateLayout, layout.getLayoutId(), layoutsJSONArray);
  }
View Full Code Here

Examples of com.neophob.sematrix.core.layout.Layout

    @Test
    public void basicTest() throws Exception {
      final int panels = 3;
     
      Layout l = new HorizontalLayout(panels);
      assertEquals(panels, l.getRow1Size());
      assertEquals(0, l.getRow2Size());     
      assertEquals(Layout.LayoutName.HORIZONTAL, l.getLayoutName());
     
      MatrixData matrix = new MatrixData(8, 8);
      IFader f = new Switch(matrix, 50);
      List<OutputMapping> ioMapping = new ArrayList<OutputMapping>();
     
      //testcase#1: each output has a visual assigned
    for (int n=0; n<panels; n++) {
      ioMapping.add(new OutputMapping(f, n));     
    }
      LayoutModel lom0 = l.getDataForScreen(0, ioMapping);
      assertEquals(0, lom0.getOfsX());
      assertEquals(0, lom0.getOfsY());
      assertEquals(1, lom0.getSameFxOnX());
      assertEquals(1, lom0.getSameFxOnY());
      assertEquals(0, lom0.getVisualId());
      assertEquals(true, lom0.screenDoesNotNeedStretching());
     
      //testcase#2: output 0 and 2 shot visual 0, output 1 show visual 1
      ioMapping.get(0).setVisualId(0);
      ioMapping.get(2).setVisualId(0);
      ioMapping.get(1).setVisualId(1);
      lom0 = l.getDataForScreen(0, ioMapping);
      assertEquals(0, lom0.getOfsX());
      assertEquals(0, lom0.getOfsY());
      assertEquals(2, lom0.getSameFxOnX());
      assertEquals(1, lom0.getSameFxOnY());
      assertEquals(0, lom0.getVisualId());
      assertEquals(false, lom0.screenDoesNotNeedStretching());

      LayoutModel lom1 = l.getDataForScreen(1, ioMapping);
      assertEquals(0, lom1.getOfsX());
      assertEquals(0, lom1.getOfsY());
      assertEquals(1, lom1.getSameFxOnX());
      assertEquals(1, lom1.getSameFxOnY());
      assertEquals(1, lom1.getVisualId());
View Full Code Here

Examples of com.skymobi.qc.admin.dal.domain.Layout

      HashMap<String, Object> map = new HashMap<String, Object>();
      map.put("project", projectBO.getProjectByAttr("id", projectId));
      map.put("field", cf);
     
      Layout layout = getLayout(projectId);
      //换行
      if (layout.getCurrent_cols() == layout.getCols()){
        cf.setLayout_rows(layout.getRows()+1);
        cf.setLayout_cols(1);
      }else{
        cf.setLayout_rows(layout.getRows());
        cf.setLayout_cols(layout.getCols()+1);
      }
     
      fieldsMapper.customFieldsAddProject(map);

    } else {
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.Layout

    private void switchToAlertSender(String newAlertSender) {
        AbstractNotificationSenderForm newCanvas = createNotificationSenderForm(newAlertSender);
        // wipe existing DOM to avoid id conflicts. Use this flag to avoid having getCanvas() general a default
        // Canvas on the first "switch".
        if (senderCanvasInitialized) {
            Layout senderLayout = (Layout) senderCanvasItem.getCanvas();
            EnhancedUtility.destroyMembers(senderLayout);
            senderLayout.destroy();
        }
        senderCanvasInitialized = true;
        senderCanvasItem.setCanvas(newCanvas);
        markForRedraw();
    }
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.