Examples of fill()


Examples of buildcraft.core.fluids.Tank.fill()

      } else if (emptyTank == null && tank.isEmpty()) {
        emptyTank = tank;
      }
    }
    if (emptyTank != null) {
      int used = emptyTank.fill(resource, doFill);
      if (used > 0 && doFill) {
        sendNetworkUpdate();
      }
      return used;
    }
View Full Code Here

Examples of com.agifans.picedit.picture.Picture.fill()

                    previousY = (int) previousClickPoint.getY();
                }

                // If a given tool is active then update the AGI picture.
                if (editStatus.isFillActive()) {
                    picture.fill(x, y);
                    if (editStatus.isFirstClick()) {
                        picture.addPictureCode(PictureCodeType.DRAW_FILL);
                    }
                    picture.addPictureCode(PictureCodeType.FILL_POINT_DATA, x, y);
                } else if (editStatus.isLineActive()) {
View Full Code Here

Examples of com.asakusafw.runtime.io.csv.CsvParser.fill()

        try {
            StringOption buffer = new StringOption();
            while (parser.next()) {
                String[] line = new String[columns];
                for (int i = 0; i < columns; i++) {
                    parser.fill(buffer);
                    line[i] = buffer.or((String) null);
                }
                parser.endRecord();
                results.add(line);
            }
View Full Code Here

Examples of com.badlogic.gdx.graphics.Pixmap.fill()

        - (int)baseLine;
      glyph.xadvance = FreeType.toInt(metrics.getHoriAdvance());

      if (bitmapped) {
        pixmap.setColor(Color.CLEAR);
        pixmap.fill();
        ByteBuffer buf = bitmap.getBuffer();
        for (int h = 0; h < glyph.height; h++) {
          int idx = h * bitmap.getPitch();
          for (int w = 0; w < (glyph.width + glyph.xoffset); w++) {
            int bit = (buf.get(idx + (w / 8)) >>> (7 - (w % 8))) & 1;
View Full Code Here

Examples of com.caucho.config.reflect.BaseType.fill()

   
    ProcessInjectionTargetImpl<T> processTarget
      = new ProcessInjectionTargetImpl<T>(target, annotatedType);
   
    BaseType eventType = createBaseType(ProcessInjectionTargetImpl.class);
    eventType = eventType.fill(createBaseType(annotatedType.getBaseType()));

    fireExtensionEvent(processTarget, eventType);

    return (InjectionTarget<T>) processTarget.getInjectionTarget();
  }
View Full Code Here

Examples of com.facebook.LinkBench.generators.DataGenerator.fill()

  private long doTest(DataGenFactory fact, byte[] buf, Random rng, int trials, double param) {
    DataGenerator gen = fact.make(param);

    long start = System.nanoTime();
    for (int j = 0; j < trials; j++) {
      gen.fill(rng, buf);
    }
    long end = System.nanoTime();
    long timeTaken = end - start;
    return timeTaken;
  }
View Full Code Here

Examples of com.facebook.LinkBench.generators.MotifDataGenerator.fill()

  public void testMotif() {
    MotifDataGenerator gen = new MotifDataGenerator();

    System.err.println("uniqueness 0.25");
    gen.init(0, 8, 0.25);
    byte data[] = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 0.0");
    gen.init(0, 8, 0.0);
    data = gen.fill(new Random(), new byte[64]);
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.io.EndPoint.fill()

                    LOG.debug("{} closed", connection);
                    break;
                }
                else
                {
                    int read = endPoint.fill(buffer);
                    if (LOG.isDebugEnabled()) // Avoid boxing of variable 'read'
                        LOG.debug("Read {} bytes from {}", read, endPoint);
                    if (read > 0)
                    {
                        parse(buffer);
View Full Code Here

Examples of com.google.appengine.tools.pipeline.impl.model.Slot.fill()

    for (Object value : slotValues) {
      if (value instanceof ListMarker) {
        List<?> valueList = ((ListMarker) value).valueList;
        List<Slot> slotList = new ArrayList<>(valueList.size());
        Slot dummyListSlot = createDummySlot();
        dummyListSlot.fill(null);
        for (Object v : valueList) {
          Slot slot = createDummySlot();
          slot.fill(v);
          slotList.add(slot);
        }
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics2D.fill()

            BufferedImage.TYPE_INT_ARGB);

        // fill background
        Graphics2D graphics = image.createGraphics();
        graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 0.0f));
        graphics.fill(graphics.getDeviceConfiguration().getBounds());
        graphics.setComposite(AlphaComposite.SrcOver);

        // draw paint
        graphics.setPaint(paint);
        graphics.translate(- bounds.getMinX(), - bounds.getMinY());
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.