Examples of expand()


Examples of org.eclipse.wb.draw2d.geometry.Rectangle.expand()

    // prepare bounds
    Rectangle bounds;
    {
      Figure hostFigure = getHostFigure();
      bounds = request.getTransformedRectangle(hostFigure.getBounds());
      FigureUtils.translateFigureToAbsolute(hostFigure, bounds.expand(1, 1));
    }
    // update selection feedback
    m_resizeFeedback.setBounds(bounds);
    // update text feedback
    m_textFeedback.setText(Integer.toString(bounds.width - 2));
View Full Code Here

Examples of org.geotools.geometry.iso.coordinate.EnvelopeImpl.expand()

    //EnvelopeImpl rEnv = this.getFeatGeometryFactory().getGeometryFactoryImpl().createEnvelope(actSurf.getEnvelope());
   
    /* Add envelopes of the other Curves */
    while (surfIter.hasNext()) {
      actSurf = (Surface) surfIter.next();
      rEnv.expand(actSurf.getEnvelope());
    }

    return rEnv;
  }
 
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveHandler.expand()

                         * in which case we don't need to expand it because the developer
                         * already did so before packaging.
                         */
                        subArchiveToExpand = chooseSubArchiveToExpand(moduleUri, subTarget, subArchive, source2);
                        if (subArchiveToExpand != null) {
                            subHandler.expand(subArchiveToExpand, subTarget, context);
                        } else {
                            /*
                             * The target for expansion is the same URI as the
                             * subarchive.  Make sure they are the same type;
                             * if so, we just skip the expansion.  Otherwise,
View Full Code Here

Examples of org.gradle.api.file.CopySpec.expand()

        }
       
        // expands
       
        if (!expands.isEmpty())
            spec.expand(expands);
       
        if (!Strings.isNullOrEmpty(dir))
            spec.into(dir);
       
        return null;
View Full Code Here

Examples of org.h2.compress.CompressLZF.expand()

            byte[] result = new byte[pageSize];
            long time = System.currentTimeMillis();
            for (int i = 0; i < 1000; i++) {
                for (int k = 0; k < comp.size(); k++) {
                    byte[] data = comp.get(k);
                    compress.expand(data, 0, data.length, result, 0, pageSize);
                }
            }
            System.out.println("expand: " + (System.currentTimeMillis() - time) + " ms");
        }
    }
View Full Code Here

Examples of org.h2.compress.Compressor.expand()

            byte[] result = new byte[pageSize];
            long time = System.currentTimeMillis();
            for (int i = 0; i < 1000; i++) {
                for (int k = 0; k < comp.size(); k++) {
                    byte[] data = comp.get(k);
                    compress.expand(data, 0, data.length, result, 0, pageSize);
                }
            }
            System.out.println("expand: " + (System.currentTimeMillis() - time) + " ms");
        }
    }
View Full Code Here

Examples of org.h2.tools.CompressTool.expand()

                    CompressTool tool = CompressTool.getInstance();
                    byte[] buff = new byte[1024];
                    Random r = new Random();
                    while (!stop) {
                        r.nextBytes(buff);
                        byte[] test = tool.expand(tool.compress(buff, "LZF"));
                        assertEquals(buff, test);
                    }
                }
            };
            tasks[i] = t;
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString.expand()

  /**
   * Test quotes.
   */
  public void testQuotes() {
    ConfigString string = new ConfigString("'${A.A}'", variables, properties);
    assertTrue("sub failed in expand", string.expand("", variables,
        properties));
    assertEquals("'${A.A}'", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnode.shell.PathnamePattern.expand()

            globbedWordTokens.add(wordToken);
            return;
        }
        PathnamePattern pattern = PathnamePattern.compilePathPattern(word);
        // Expand using the current directory as the base for relative path patterns.
        LinkedList<String> paths = pattern.expand(new File("."));
        // If it doesn't match anything, a pattern 'expands' to itself.
        if (paths.isEmpty()) {
            globbedWordTokens.add(wordToken);
        } else {
            for (String path : paths) {
View Full Code Here

Examples of org.jpedal.jbig2.image.JBIG2Bitmap.expand()

    if (noOfReferedToSegments == 0 || inlineImage) {
      PageInformationSegment pageSegment = decoder.findPageSegement(segmentHeader.getPageAssociation());
      JBIG2Bitmap pageBitmap = pageSegment.getPageBitmap();

      if (pageSegment.getPageBitmapHeight() == -1 && regionBitmapYLocation + regionBitmapHeight > pageBitmap.getHeight()) {
        pageBitmap.expand(regionBitmapYLocation + regionBitmapHeight, pageSegment.getPageInformationFlags().getFlagValue(PageInformationFlags.DEFAULT_PIXEL_VALUE));
      }
    }

    if (noOfReferedToSegments > 1) {
      if(JBIG2StreamDecoder.debug)
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.