Examples of Size


Examples of de.lessvoid.nifty.Size

    image.setImageMode(imageMode);
    imageRenderer.setImage(image);
   
    imageRenderer.setInset(convert.insetSizeValue(attributes.get("inset"), image.getHeight()));

    Size imageDimension = imageMode.getImageNativeSize(image);
    if (element.getConstraintWidth() == null) {
      element.setConstraintWidth(convert.sizeValue(imageDimension.getWidth() + "px"));
    }
    if (element.getConstraintHeight() == null) {
      element.setConstraintHeight(convert.sizeValue(imageDimension.getHeight() + "px"));
    }
  }
View Full Code Here

Examples of edu.csusm.cs671.auction.model.Size

    AuctionAgent auctionAgent = new AuctionAgentImpl(agentConfig);
    auctionAgent.start();
   
    StartAuctionMessage auctionMessage = new StartAuctionMessage();
   
    Work work = new Work(WorkType.TYPE_A,new Size(10000) );
   
    auctionMessage.setAuctionID(UUID.randomUUID());
    //auctionMessage.setTimeAuctionIsOpen(new Duration(10));
    auctionMessage.setWorkForAuction(work);
   
View Full Code Here

Examples of graphics.common.Size

        moveValY = new double[ NUM_ITEMS ];
        Random rand = new Random( System.currentTimeMillis() );
        //tree.buildTreeToDepth( 8 );
        for( int i = 0; i < NUM_ITEMS; i++ ) {
            Point tempPoint = Points.get( rand.nextInt( theWindow.getWidth() - 30 ) + 30, rand.nextInt( theWindow.getHeight() - 30 ) + 30 );
            Size tempSize = Sizes.get( rand.nextInt( 30 ) + 21, rand.nextInt( 30 ) + 21 );
            JavaSprite temp = new JavaSprite( "fenceright", tempPoint, tempSize );
            allGraphics.add( temp );
            tree.insert( temp );

            moveValX[ i ] = rand.nextDouble() * RAND_RANGE * ( rand.nextInt( 50 ) > 24 ? -1 : 1 );
View Full Code Here

Examples of io.dropwizard.util.Size

                    if (time != null) {
                        Duration dropWizardDuration = Duration.parse(fieldValue.asText());
                        long asLong = time.value().convert(dropWizardDuration.getQuantity(), dropWizardDuration.getUnit());
                        fieldValues.put(propertyName, asLong);
                    } else if (prop.getAnnotation(Bytes.class) != null) {
                        Size dropWizardSize = Size.parse(fieldValue.asText());
                        long asLong = dropWizardSize.toBytes();
                        fieldValues.put(propertyName, asLong);
                    }
                } catch (Throwable cause) {
                    throw JsonMappingException.wrapWithPath(cause, prop.getType().getRawClass(), propertyName);
                }
View Full Code Here

Examples of it.stefanobertini.zebra.beans.Size

public class CompressedGraphicsTest {

    @Test
    public void test1() {
  CompressedGraphics command = new CompressedGraphics(Orientation.horizontal, new Size(2, 16), new Position(90, 45),
          "F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("COMPRESSED-GRAPHICS 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");
View Full Code Here

Examples of javax.validation.constraints.Size

    }

    public void processConstraintDescriptor(ConstraintDescriptor cd) {
        //Size.class is understood by the tool
        if (cd.getAnnotation().annotationType().equals(Size.class)) {
            Size m = (Size) cd.getAnnotation();
//            System.out.println("size.max = " + m.max());  //read and use the metadata
        }
        for (Object composingCd : cd.getComposingConstraints()) {
            processConstraintDescriptor((ConstraintDescriptor) composingCd);
            //check composing constraints recursively
View Full Code Here

Examples of javax.validation.constraints.Size

public class StringSizeMetaDataTransformer extends AbstractBeanValidationMetaDataTransformer<Size>
{
    protected Map<String, Object> transformMetaData(ConstraintDescriptor<Size> constraintDescriptor)
    {
        Map<String, Object> results = new HashMap<String, Object>();
        Size annotation = constraintDescriptor.getAnnotation();

        int minimum = annotation.min();

        if(minimum != 0)
        {
            results.put(CommonMetaDataKeys.MIN_LENGTH, minimum);
        }
        else
        {
            results.put(CommonMetaDataKeys.MIN_LENGTH_DEFAULT, minimum);
        }

        int maximum = annotation.max();
        if(maximum != Integer.MAX_VALUE)
        {
            results.put(CommonMetaDataKeys.MAX_LENGTH, maximum);
        }
        else
View Full Code Here

Examples of net.mygwt.ui.client.util.Size

    if (!isAttached()) {
      return;
    }

    if (getWidgetCount() > 0) {
      Size size = MyDOM.getSize(getLayoutTarget());
      int width = size.width;
      int height = size.height;
      if (lastSize != null) {
        if (lastSize.width == width && lastSize.height == height) {
          return;
        }
      }
      lastSize = new Size(width, height);
    }
    layout.layout(this);
  }
View Full Code Here

Examples of org.apache.accumulo.core.util.Merge.Size

          end = null;
        else
          end = new Text(String.format("%05d", tablets.size()));
        KeyExtent extent = new KeyExtent(new Text("table"), end, start);
        start = end;
        tablets.add(new Size(extent, size));
      }
    }
View Full Code Here

Examples of org.apache.blur.store.blockcache_v2.Size

  protected Directory setupDirectory() throws IOException {
    int totalNumberOfBytes = 1000000;
    final int fileBufferSizeInt = numberBetween(113, 215);
    final int cacheBlockSizeInt = numberBetween(111, 251);

    Size fileBufferSize = new Size() {
      @Override
      public int getSize(CacheDirectory directory, String fileName) {
        return fileBufferSizeInt;
      }
    };

    Size cacheBlockSize = new Size() {
      @Override
      public int getSize(CacheDirectory directory, String fileName) {
        return cacheBlockSizeInt;
      }
    };
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.