Package info.bliki.wiki.model

Examples of info.bliki.wiki.model.ImageFormat


  public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
    String imageSrc = getImageBaseURL();
    if (imageSrc != null) {
      String imageHref = getWikiBaseURL();
      ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

      String imageName = imageFormat.getFilename();
      // String sizeStr = imageFormat.getSizeStr();
      // if (sizeStr != null) {
      // imageName = sizeStr + '-' + imageName;
      // }
      // if (imageName.endsWith(".svg")) {
View Full Code Here


  public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
    String imageSrc = getImageBaseURL();
    if (imageSrc != null) {
      String imageHref = getWikiBaseURL();
      ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

      String imageName = imageFormat.getFilename();
      // String sizeStr = imageFormat.getSizeStr();
      // if (sizeStr != null) {
      // imageName = sizeStr + '-' + imageName;
      // }
      // if (imageName.endsWith(".svg")) {
View Full Code Here

  public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
    String imageSrc = getImageBaseURL();
    if (imageSrc != null) {
      String imageHref = getWikiBaseURL();
      ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

      String imageName = imageFormat.getFilename();
      // String sizeStr = imageFormat.getSizeStr();
      // if (sizeStr != null) {
      // imageName = sizeStr + '-' + imageName;
      // }
      // if (imageName.endsWith(".svg")) {
View Full Code Here

  }

  public void parseInternalImageLink(String imageNamespace, String name) {
    // see JAMHTMLConverter#imageNodeToText() for the real HTML conversion
    // routine!!!
    ImageFormat imageFormat = ImageFormat.getImageFormat(name, imageNamespace);

    int pxWidth = imageFormat.getWidth();
    String caption = imageFormat.getCaption();
    TagNode divTagNode = new TagNode("div");
    divTagNode.addAttribute("id", "image", false);
    // divTagNode.addAttribute("href", hrefImageLink, false);
    // divTagNode.addAttribute("src", srcImageLink, false);
    divTagNode.addObjectAttribute("wikiobject", imageFormat);
    if (pxWidth != -1) {
      divTagNode.addAttribute("style", "width:" + pxWidth + "px", false);
    }
    pushNode(divTagNode);

    if (caption != null && caption.length() > 0) {

      TagNode captionTagNode = new TagNode("div");
      String clazzValue = "caption";
      String type = imageFormat.getType();
      if (type != null) {
        clazzValue = type + clazzValue;
      }
      captionTagNode.addAttribute("class", clazzValue, false);

      TagStack localStack = WikipediaParser.parseRecursive(caption, this, true,
          true);
      captionTagNode.addChildren(localStack.getNodeList());
      String altAttribute = captionTagNode.getBodyString();
      imageFormat.setAlt(altAttribute);
      pushNode(captionTagNode);
      // WikipediaParser.parseRecursive(caption, this);
      popNode();
    }
View Full Code Here

    public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
        String imageSrc = getImageBaseURL();
        if (imageSrc != null) {
            String imageHref = getWikiBaseURL();
            ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

            String imageName = imageFormat.getFilename();
            // String sizeStr = imageFormat.getSizeStr();
            // if (sizeStr != null) {
            // imageName = sizeStr + '-' + imageName;
            // }
            // if (imageName.endsWith(".svg")) {
View Full Code Here

    public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
        String imageSrc = getImageBaseURL();
        if (imageSrc != null) {
            String imageHref = getWikiBaseURL();
            ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

            String imageName = imageFormat.getFilename();
            // String sizeStr = imageFormat.getSizeStr();
            // if (sizeStr != null) {
            // imageName = sizeStr + '-' + imageName;
            // }
            // if (imageName.endsWith(".svg")) {
View Full Code Here

  public void parseInternalImageLink(String imageNamespace, String rawImageLink) {
    if (fExternalImageBaseURL != null) {
      String imageHref = fExternalWikiBaseURL;
      String imageSrc = fExternalImageBaseURL;
      ImageFormat imageFormat = ImageFormat.getImageFormat(rawImageLink, imageNamespace);

      String imageName = imageFormat.getFilename();
      // String sizeStr = imageFormat.getSizeStr();
      // if (sizeStr != null) {
      // imageName = sizeStr + '-' + imageName;
      // }
      // if (imageName.endsWith(".svg")) {
View Full Code Here

TOP

Related Classes of info.bliki.wiki.model.ImageFormat

Copyright © 2018 www.massapicom. 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.