Examples of Dimension


Examples of com.ibm.ucp.Dimension

           
        // pixelsx,y -> ScreenSize
        int pixelsX = getPolicyValueAsInt(device, "pixelsx", 0);
        int pixelsY = getPolicyValueAsInt(device, "pixelsy", 0);
        if (pixelsX > 0 && pixelsY > 0) {
            Dimension screenSize = new Dimension(pixelsX, pixelsY);
            Property screenSizeProperty = new Property("ScreenSize",
                    screenSize);
            hardwarePlatformComponent.addProperty(screenSizeProperty);
        }
           
        // charactersx,y -> ScreenSizeChar
        Dimension screenSizeChar;
        int charactersX = getPolicyValueAsInt(device, "charactersx", 0);
        int charactersY = getPolicyValueAsInt(device, "charactersy", 0);
        if (charactersX > 0 && charactersY > 0) {
            screenSizeChar = new Dimension(charactersX, charactersY);
            Property screenSizeCharProperty = new Property("ScreenSizeChar",
                    screenSizeChar);
            hardwarePlatformComponent.addProperty(screenSizeCharProperty);
        }
           
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.store.document.EntityPojo.Dimension

    regexConfig.replace = replace;
    regexConfig.fieldSet = fieldSet;
    regexConfig.compressed = null;
    regexConfig.type = type;
    if (null == dim) {
      Dimension x = DimensionUtility.getDimensionByType(type);
      if (null == x) {
        x = Dimension.What;
      }
      dim = x.toString();
     
      //DEBUG
      if (_DEBUG) System.out.println("pKV5: Guess dim = " + dim + " from " + type);
    }//TESTED (test1)
    regexConfig.dimension = dim;
View Full Code Here

Examples of com.inadco.hbl.api.Dimension

                                List<Dimension> dimensions,
                                int dimensionIndex,
                                int keyOffset,
                                TupleFactory tf) throws ExecException {

        Dimension d = dimensions.get(dimensionIndex);
        Object member= input.get(dimensionIndex+1);
       
        // resolve pig byte arrays to java arrays
        if ( member instanceof DataByteArray )
            member = ((DataByteArray)member).get();
       
        if (d instanceof Hierarchy) {
            Hierarchy h = (Hierarchy) d;
            int depth = h.getDepth();
            for (int i = 0; i < depth; i++) {
                h.getKey(member, i, keyHolder, keyOffset);
                if (dimensions.size() == dimensionIndex + 1) {
                    holder.add(tf.newTuple(tf.newTuple(new DataByteArray(keyHolder))));
                    keyHolder = keyHolder.clone();
                } else
                    walkDimensions(input,
                                   holder,
                                   keyHolder,
                                   dimensions,
                                   dimensionIndex + 1,
                                   keyOffset + d.getKeyLen(),
                                   tf);

            }
        } else {
            // non-hierarchy
            d.getKey(member, keyHolder, keyOffset);
            if (dimensions.size() == dimensionIndex + 1) {
                holder.add(tf.newTuple(tf.newTuple(new DataByteArray(keyHolder))));
                keyHolder = keyHolder.clone();
            } else
                walkDimensions(input, holder, keyHolder, dimensions, dimensionIndex + 1, keyOffset + d.getKeyLen(), tf);
        }
    }
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Dimension

    if (chunks.size() > 1)
      throw new ImageReadException("PNG contains more than one Header");

    PNGChunkIHDR pngChunkIHDR = (PNGChunkIHDR) chunks.get(0);

    return new Dimension(pngChunkIHDR.width, pngChunkIHDR.height);
  }
View Full Code Here

Examples of com.sun.dtv.lwuit.geom.Dimension

        }
        if(frame == frames.length){
            frame = 0;
        }
        int [] modified = frames[frame].modifiedRowOffsets;
        Rectangle rect = new Rectangle(0, frames[frame].smallestChangedRow, new Dimension(getWidth(), frames[frame].highestChangedRow -frames[frame].smallestChangedRow));
        return rect;
    }
View Full Code Here

Examples of com.sun.lwuit.geom.Dimension

            }*/
            Image img = Jid.createAvatar(person.getAvatar());
            if (img.getWidth() != 32)
              img = img.scaled(32, 32);
            pic.setIcon(img);
            pic.setPreferredSize(new Dimension(32,32));
            this.setPreferredSize(new Dimension(display_width, 40));
            return this;
        }
View Full Code Here

Examples of cross.reputation.model.Dimension

public class ConfigureModel {
 
  static void buildCrossReputationGlobalModel() {
    //Set the dimensions of each scale, the scale of each metric, the metrics
    //of each community, the categories of each community and the communities
    Dimension reputationInQandA = new Dimension("ReputationInQandA");
    Dimension projectsReputation = new Dimension("ReputationInProject");
    Dimension rankReputation = new Dimension("rankReputation");   
   
   
    String qandACategory = GlobalModel.addCategory("QandA");
    String securityWebAppCategory = GlobalModel.addCategory("SecurityWebApp");
    String projectConnCategory = GlobalModel.addCategory("ProjectConnection");
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Dimension

    private javax.vecmath.Vector3d m_vectorPrev;
    private edu.cmu.cs.stage3.util.HowMuch m_howMuch;
    public void prologue( double t ) {
      super.prologue( t );
      m_vectorPrev = new javax.vecmath.Vector3d( 1, 1, 1 );
      Dimension dimensionValue = ResizeAnimation.this.dimension.getDimensionValue();
      double amountValue = ResizeAnimation.this.amount.doubleValue();
      m_vector = Transformable.calculateResizeScale( dimensionValue, amountValue, likeRubber.booleanValue() );
            m_howMuch = (edu.cmu.cs.stage3.util.HowMuch)ResizeAnimation.this.howMuch.getValue();
    }
View Full Code Here

Examples of fm.last.darling.nspace.Dimension

    File yaml = new File(testDataFolder, "dataset.yaml");
    List<List<Dimension>> ret = Util.readRequestedProjections(yaml);

    List<List<Dimension>> expected = new ArrayList<List<Dimension>>();
    List<Dimension> projection0 = new ArrayList<Dimension>();
    projection0.add(new Dimension("country"));
    expected.add(projection0);
    List<Dimension> projection1 = new ArrayList<Dimension>();
    projection1.add(new Dimension("country"));
    projection1.add(new Dimension("service"));
    expected.add(projection1);

    assertEquals(ret.size(), expected.size());
    for (int i = 0; i < ret.size(); i++)
      assertEquals(ret.get(i).toString(), expected.get(i).toString());
View Full Code Here

Examples of io.conducive.client.ui.model.Dimension

        reattachHandlers();

        final String url = image.getUrl();
        // maybe we've seen it before and calculated it
        if (dimensionCache.get(url) != null) {
            Dimension dim = dimensionCache.get(url);
            calculateIdealSizeAndShow(image, caption, dim);
            // maybe it's already been loaded
        } else if (image.getOffsetHeight() > 0) {
            calculateIdealSizeAndShow(image, caption, null);
            // load offscreen
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.