Examples of Layout


Examples of org.kite9.diagram.position.Layout

    };
   
    db.introduceContexts(includedArrows, new DiagramBuilder.ContextFactory() {

      public Context createContextFor(Container subdivisionOf, List<Contained> contents, InsertionInterface ii) {
        Layout l = (subdivisionOf instanceof Context) ? ((Context)subdivisionOf).getLayoutDirection() null;
        return new Context(subdivisionOf.getID()+"-arrows", contents, false, null, l);
      }
     
    });
   
    db.introduceContexts(includedGlyphs, new DiagramBuilder.ContextFactory() {

      public Context createContextFor(Container subdivisionOf, List<Contained> contents, InsertionInterface ii) {
        Layout l = null;
        if (subdivisionOf instanceof Context) {
          // clear layout direction as it is inherited by the child contexts now
          l = ((Context)subdivisionOf).getLayoutDirection();
          ((Context)subdivisionOf).setLayoutDirection(null);
        }
View Full Code Here

Examples of org.odlabs.wiquery.plugin.layout.Layout

   *            Page parameters
   */
    public BasePage() {
      add(CSSPackageResource.getHeaderContribution(DefaultStyle.CSS_MAIN));
      add(CSSPackageResource.getHeaderContribution(Styles.CSS_MAIN));
      Layout layout = new Layout("layout", true) {
         
          private static final long serialVersionUID = 1L;

          @Override
          public Panel getLayoutWestComponent(String wicketId) {
            return new NavigationPanel(wicketId);
          }
         
          @Override
          public Panel getLayoutNorthComponent(String wicketId) {
            return new HeaderPanel(wicketId);
          }
         
          @Override
          public Panel getLayoutCenterComponent(final String wicketId) {
            return new IndicatorPanel(wicketId, creaAyuda()) {
             
              private static final long serialVersionUID = 1L;

          @Override
              protected Component newContents(String id) {
                return BasePage.this.getLayoutCenterComponent(id);
              }
            };           
          }
         
        };
        add(layout);
        layout.setResizable(PanePositionEnum.NORTH, false)
        .setClosable(PanePositionEnum.NORTH, false)
        .setSpacingOpen(PanePositionEnum.NORTH, 0)
        .setMinSize(PanePositionEnum.NORTH, 80)
        .setMaxSize(PanePositionEnum.NORTH, 82);
       
View Full Code Here

Examples of org.rssowl.ui.internal.OwlUI.Layout

    }
  }

  private void updateLayout(boolean updateInput) {
    IPreferenceScope preferences = Owl.getPreferenceService().getEntityScope(fInput.getMark());
    Layout layout = OwlUI.getLayout(preferences);

    /* Return early if layout already up to date */
    if (fLayout == layout)
      return;

View Full Code Here

Examples of org.sbml.jsbml.ext.layout.Layout

      model.setVersion(version);
     
      // Get LayoutModel
      LayoutModelPlugin layoutModel = LayoutExtension.getOrCreateLayoutModel(doc);
      // Add the layout
      Layout layout = createSBMLLayoutForView(view, model);
      layoutModel.add(layout);
    }
    return doc;
  }
View Full Code Here

Examples of org.woped.editor.controller.Layout

              grid.identifyUsersWithSingleAncestor();
              grid.moveUsersWithSingleAncestors();
              grid.identifyUsersWithMultipleAncestors();
              grid.moveUsersWithMultipleAncestors();
              grid.adjustYAxis();
              Layout layout = grid.createLayout();
              layout.name = currentCompoundRole.name;
              RoleLayoutSet.add(layout);
            }
          }
         
          //Execute algorithm for the compound Groups
          if (lm.allGroups.size() > 0) {
           
            if (lm.allCompoundGroups.size() == 1) {
              boolean unrelatedGroup = false;
              Iterator<?> it = lm.allGroups.iterator();
              while (it.hasNext()) {
                Group currentGroup = (Group) it.next();
                Iterator<?> subit = currentGroup.ancestors.iterator();
                while (subit.hasNext()) {
                  CompoundGroup currentCompound = (CompoundGroup) subit.next();
                  if (currentCompound.name == "") {
                    unrelatedGroup = true;
                    break;
                  }
                }
                if (unrelatedGroup == true ) {
                  break;
                }
              }
              if (unrelatedGroup == true) {
                CompoundGroup allGroups = new CompoundGroup(Messages.getString("PetriNet.Resources.AllCompoundGroupsName"));
                allGroups.children.addAll(lm.allGroups);
                it = lm.allGroups.iterator();
                while (it.hasNext()) {
                  Group currentGroup = (Group) it.next();
                  currentGroup.ancestors.add(allGroups);
                }
                lm.allCompoundGroups.add(allGroups);
              }
            }
           
            else if (lm.allCompoundGroups.size() == 0) {
              CompoundGroup cg = new CompoundGroup(Messages.getString("PetriNet.Resources.DefaultCompoundGroupName"));
              cg.children.addAll(lm.allGroups);
              Iterator<?> it = lm.allGroups.iterator();
              while (it.hasNext()) {
                Group currentGroup = (Group) it.next();
                currentGroup.ancestors.add(cg);
              }
              lm.allCompoundGroups.add(cg);
            }

            else {
              CompoundGroup allGroups = new CompoundGroup(Messages.getString("PetriNet.Resources.AllCompoundGroupsName"));
              allGroups.children.addAll(lm.allGroups);
              Iterator<?> it = lm.allGroups.iterator();
              while (it.hasNext()) {
                Group currentGroup = (Group) it.next();
                currentGroup.ancestors.add(allGroups);
              }
              lm.allCompoundGroups.add(allGroups);
            }
         
            Iterator<?> it = lm.allCompoundGroups.iterator();
            while (it.hasNext()) {
              CompoundGroup currentCompoundGroup = (CompoundGroup) it.next();
              GroupLayoutGrid grid = new GroupLayoutGrid(currentCompoundGroup);
              grid.identifyTrueSubSets();
              grid.analyzeSubSets();
              if (grid.complexSubsets == false) {
                grid.removeTrueSubSets();
              }
              grid.identifyUsersWithSingleAncestor();
              grid.moveUsersWithSingleAncestors();
              grid.identifyUsersWithMultipleAncestors();
              grid.moveUsersWithMultipleAncestors();
              grid.adjustYAxis();
              Layout layout = grid.createLayout();
              layout.name = currentCompoundGroup.name;
              GroupLayoutSet.add(layout);
            }
          }
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.layouts.Layout

public class ContactListRenderer extends AbstractContactRenderer {
    private String itemClasses;

    @Override
    protected Layout getLayout(Object unfiltered, Class type) {
        return new Layout() {
            @Override
            public HtmlComponent createComponent(Object unfiltered, Class type) {
                List<MetaObject> contacts = getFilteredContacts((Collection<PartyContact>) unfiltered);
                if (contacts.isEmpty()) {
                    return new HtmlText();
View Full Code Here

Examples of soc.qase.info.Layout

    String displayInfo = null;

    length = Utils.stringLength(data, off);
    displayInfo = Utils.stringValue(data, off, length);

    layout = new Layout(displayInfo);

    setLength(length + 1);
  }
View Full Code Here

Examples of test.list.types.Layout

    testAssert(sep.reverseSeparated().toTerm().isEqual(patternReversed), "separated reverse toTerm test");

    Module head = sep.getHead();

    testAssert(head.isEqual(factory.makeModule_Default("m1")), "separator from term test, head");
    Layout l1 = sep.getWsl();
    testAssert(l1.isEqual(factory.makeLayout_Default("l1")), "getSeparator test l1");
    Layout l2 = sep.getWsr();
    testAssert(l2.isEqual(factory.makeLayout_Default("l2")), "getSeparator test l2");
    Module second = sep.getTail().getHead();
    testAssert(second.isEqual(factory.makeModule_Default("m2")), "separator from term test, second element");
    Layout l3 = sep.getTail().getWsl();

    testAssert(l3.isEqual(factory.makeLayout_Default("l3")), "getSeparator test l3");
    Layout l4 = sep.getTail().getWsr();
    testAssert(l4.isEqual(factory.makeLayout_Default("l4")), "getSeparator test l4");

    testAssert(sep.getLength() == 4, "separated list length test");

    sep = factory.makeSeparated();
    testAssert(sep.toTerm().isEqual(factory.getPureFactory().makeList()), "empty separated list");
View Full Code Here

Examples of ucar.nc2.iosp.Layout

        if (dt == DataType.STRING)
          hasStrings = true;
      }

      int recsize = matt.mdt.byteSize;
      Layout layout = new LayoutRegular(matt.dataPos, recsize, shape, new Section(shape));
      sm.setStructureSize(recsize);

      // place data into an ArrayStructureBB for efficiency
      ArrayStructureBB asbb = new ArrayStructureBB(sm, shape);
      byte[] byteArray = asbb.getByteBuffer().array();
      while (layout.hasNext()) {
        Layout.Chunk chunk = layout.next();
        if (chunk == null) continue;
        if (debugStructure)
          System.out.println(" readStructure " + matt.name + " chunk= " + chunk + " index.getElemSize= " + layout.getElemSize());
        // copy bytes directly into the underlying byte[]
        raf.seek(chunk.getSrcPos());
        raf.read(byteArray, (int) chunk.getDestElem() * recsize, chunk.getNelems() * recsize);
      }

      // strings are stored on the heap, and must be read separately
      if (hasStrings) {
        int destPos = 0;
        for (int i = 0; i< layout.getTotalNelems(); i++) { // loop over each structure
          h5iosp.convertStrings(asbb, destPos, sm);
          destPos += layout.getElemSize();
        }
      }
      return asbb;
    } // Structure case

    // Strings
    if ((vinfo.typeInfo.hdfType == 9) && (vinfo.typeInfo.isVString)) {
      Layout layout = new LayoutRegular(matt.dataPos, matt.mdt.byteSize, shape, new Section(shape));
      ArrayObject.D1 data = new ArrayObject.D1(String.class, (int) layout.getTotalNelems());
      int count = 0;
      while (layout.hasNext()) {
        Layout.Chunk chunk = layout.next();
        if (chunk == null) continue;
        for (int i = 0; i < chunk.getNelems(); i++) {
          long address = chunk.getSrcPos() + layout.getElemSize() * i;
          String sval = readHeapString(address);
          data.set(count++, sval);
        }
      }
      return data;
    } // vlen case

    // Vlen (non-String)
    if (vinfo.typeInfo.hdfType == 9) { // vlen
      int endian = vinfo.typeInfo.endian;
      DataType readType = dataType;
      if (vinfo.typeInfo.base.hdfType == 7) { // reference
        readType = DataType.LONG;
        endian = 1; // apparently always LE
      }

      Layout layout = new LayoutRegular(matt.dataPos, matt.mdt.byteSize, shape, new Section(shape));

      // general case is to read an array of vlen objects
      // each vlen generates an Array - so return ArrayObject of Array
      boolean scalar = layout.getTotalNelems() == 1; // if scalar, return just the len Array
      Array[] data = new Array[(int) layout.getTotalNelems()];
      int count = 0;
      while (layout.hasNext()) {
        Layout.Chunk chunk = layout.next();
        if (chunk == null) continue;
        for (int i = 0; i < chunk.getNelems(); i++) {
          long address = chunk.getSrcPos() + layout.getElemSize() * i;
          Array vlenArray = getHeapDataArray(address, readType, endian);
          if (vinfo.typeInfo.base.hdfType == 7)
            data[count++] = h5iosp.convertReference(vlenArray);
          else
            data[count++] = vlenArray;
        }
      }
      return (scalar) ? data[0] : Array.factory(Array.class, shape, data);
    } // vlen case

    // NON-STRUCTURE CASE
    DataType readDtype = dataType;
    int elemSize = dataType.getSize();
    int endian = vinfo.typeInfo.endian;

    if (vinfo.typeInfo.hdfType == 2) { // time
      readDtype = vinfo.mdt.timeType;
      elemSize = readDtype.getSize();

    } else if (vinfo.typeInfo.hdfType == 3) { // char
      if (vinfo.mdt.byteSize > 1) {
        int[] newShape = new int[shape.length + 1];
        System.arraycopy(shape, 0, newShape, 0, shape.length);
        newShape[shape.length] = vinfo.mdt.byteSize ;
        shape = newShape;
      }

    } else if (vinfo.typeInfo.hdfType == 5) { // opaque
      elemSize = vinfo.mdt.byteSize;

    } else if (vinfo.typeInfo.hdfType == 8) { // enum
      H5header.TypeInfo baseInfo = vinfo.typeInfo.base;
      readDtype = baseInfo.dataType;
      elemSize = readDtype.getSize();
      endian = baseInfo.endian;
    }

    Layout layout = new LayoutRegular(matt.dataPos, elemSize, shape, new Section(shape));
    Object data = h5iosp.readDataPrimitive(layout, dataType, shape, null, endian, false);
    Array dataArray = null;

    if ((dataType == DataType.CHAR)) {
      if (vinfo.mdt.byteSize > 1) { // chop back into pieces
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.