Examples of width()


Examples of net.yacy.document.parser.html.ImageEntry.width()

                    prop.put("viewMode_links_" + i + "_type", "image");
                    prop.put("viewMode_links_" + i + "_text", (entry.alt().isEmpty()) ? " " : markup(wordArray, entry.alt()));
                    prop.put("viewMode_links_" + i + "_url", entry.url().toNormalform(false, true));
                    prop.put("viewMode_links_" + i + "_link", markup(wordArray, entry.url().toNormalform(false, true)));
                    if (entry.width() > 0 && entry.height() > 0)
                        prop.put("viewMode_links_" + i + "_attr", entry.width() + "x" + entry.height() + " Pixel");
                    else
                        prop.put("viewMode_links_" + i + "_attr", "unknown");
                    dark = !dark;
                    i++;
                }
View Full Code Here

Examples of net.yacy.document.parser.html.ImageEntry.width()

            ientry = i.next();
            url = new DigestURI(ientry.url());
            final String u = url.toString();
            if (u.indexOf(".ico") >= 0 || u.indexOf("favicon") >= 0) continue;
            if (ientry.height() > 0 && ientry.height() < 32) continue;
            if (ientry.width() > 0 && ientry.width() < 32) continue;
            desc = ientry.alt();
            final int appcount = queryhashes.size()  * 2 -
                           removeAppearanceHashes(url.toNormalform(false, false), queryhashes).size() -
                           removeAppearanceHashes(desc, queryhashes).size();
            final long ranking = Long.MAX_VALUE - (ientry.height() + 1) * (ientry.width() + 1) * (appcount + 1);
View Full Code Here

Examples of net.yacy.document.parser.html.ImageEntry.width()

            ientry = i.next();
            url = new DigestURI(ientry.url());
            final String u = url.toString();
            if (u.indexOf(".ico") >= 0 || u.indexOf("favicon") >= 0) continue;
            if (ientry.height() > 0 && ientry.height() < 32) continue;
            if (ientry.width() > 0 && ientry.width() < 32) continue;
            desc = ientry.alt();
            final int appcount = queryhashes.size()  * 2 -
                           removeAppearanceHashes(url.toNormalform(false, false), queryhashes).size() -
                           removeAppearanceHashes(desc, queryhashes).size();
            final long ranking = Long.MAX_VALUE - (ientry.height() + 1) * (ientry.width() + 1) * (appcount + 1);
View Full Code Here

Examples of net.yacy.document.parser.html.ImageEntry.width()

            if (ientry.width() > 0 && ientry.width() < 32) continue;
            desc = ientry.alt();
            final int appcount = queryhashes.size()  * 2 -
                           removeAppearanceHashes(url.toNormalform(false, false), queryhashes).size() -
                           removeAppearanceHashes(desc, queryhashes).size();
            final long ranking = Long.MAX_VALUE - (ientry.height() + 1) * (ientry.width() + 1) * (appcount + 1);
            result.add(new MediaSnippet(ContentDomain.IMAGE, url, MimeTable.url2mime(url), desc, ientry.fileSize(), ientry.width(), ientry.height(), ranking, source));
        }
        return result;
    }

View Full Code Here

Examples of net.yacy.document.parser.html.ImageEntry.width()

            desc = ientry.alt();
            final int appcount = queryhashes.size()  * 2 -
                           removeAppearanceHashes(url.toNormalform(false, false), queryhashes).size() -
                           removeAppearanceHashes(desc, queryhashes).size();
            final long ranking = Long.MAX_VALUE - (ientry.height() + 1) * (ientry.width() + 1) * (appcount + 1);
            result.add(new MediaSnippet(ContentDomain.IMAGE, url, MimeTable.url2mime(url), desc, ientry.fileSize(), ientry.width(), ientry.height(), ranking, source));
        }
        return result;
    }

    /**
 
View Full Code Here

Examples of org.axsl.font.Font.width()

     * @return The new progression dimension value, in millipoints.
     */
    private int recomputeProgressionDimension() {
        final CharSequence text = getText();
        final Font font = this.getPrimaryFont().getFont();
        final int pd = font.width(text, this.traitFontSize(), this.traitLetterSpacingOpt(),
                this.traitWordSpacingOpt(), true);
        return pd;
    }

    /**
 
View Full Code Here

Examples of org.axsl.ps.BoundingBox.width()

     * @throws GraphicException For errors processing the graphic.
     */
    public byte[] epsToPostScript(final EpsGraphic image, final int x,
            final int y, final int w, final int h) throws GraphicException {
        final BoundingBox bbox = image.getBoundingBox();
        final float bboxw = bbox.width();
        final float bboxh = bbox.height();

        StringBuilder buffer = new StringBuilder();
        buffer.append("%%BeginDocument: " + image.getName());
        buffer.append("BeginEPSF");
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowAttributeInList.width()

          AlternateOrderingAttribute ann = fields[j].getAnnotation(AlternateOrderingAttribute.class);

          showAttr.setAlternateOrderingAttribute(ann.attribute());
        }

        showAttr.setWidth(annotation.width());
       
        if (order(fields[j]) != 1000)
        {
          if (tmp.size() <= order(fields[j]))
            tmp.setSize(order(fields[j]) + 1);
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList.width()

        ShowAttribute showAttr = new ShowAttribute(null, attr);

        ShowTransientAttributeInList annotation = methods[i].getAnnotation(ShowTransientAttributeInList.class);

        showAttr.setTransientParameters(annotation.parameters());
        showAttr.setWidth(annotation.width());

        if (annotation.order() != 1000)
        {
          if (tmp.size() <= annotation.order())
            tmp.setSize(annotation.order() + 1);
View Full Code Here

Examples of org.foray.font.FreeStandingFont.width()

        assertTrue(node instanceof TextArea);
        final TextArea textArea = (TextArea) node;

        final FreeStandingFont fsf = getHelveticaFont();
        /* The following computation is tested in {@link TestFont4a#testWidth()}. */
        final int textWidth = fsf.width("Test of Centering", 12000, 0, 0, true);
        assertEquals(textWidth, textArea.crIpd());

        /* The x value of the text area content rectangle should be at the x
         * location of the parent line area + 1/2 of the unused area in the
         * line. Total line area ipd = 468,000. Unused line area ipd =
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.