Examples of LineSeparator


Examples of com.intellij.util.LineSeparator

        final String filePath = file.getCanonicalPath();
        final List<EditorConfig.OutPair> outPairs = SettingsProviderComponent.getInstance().getOutPairs(filePath);
        final String lineEndings = Utils.configValueForKey(outPairs, lineEndingsKey);
        if (!lineEndings.isEmpty()) {
            try {
                LineSeparator separator = LineSeparator.valueOf(lineEndings.toUpperCase(Locale.US));
                String oldSeparator = file.getDetectedLineSeparator();
                String newSeparator = separator.getSeparatorString();
                if (!StringUtil.equals(oldSeparator, newSeparator)) {
                    file.setDetectedLineSeparator(newSeparator);
                    if (!statusBarUpdated) {
                        statusBarUpdated = true;
                        updateStatusBar();
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

    }
    // line color
    BaseColor lineColor = null;
    // alignment
    int align = HtmlUtilities.alignmentValue(attrs.get(HtmlTags.ALIGN));
    return new LineSeparator(lineWidth, percentage, lineColor, align, offset);
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

    }
    // line color
    BaseColor lineColor = null;
    // alignment
    int align = HtmlUtilities.alignmentValue(attrs.get(HtmlTags.ALIGN));
    return new LineSeparator(lineWidth, percentage, lineColor, align, offset);
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

      Paragraph header2 = new Paragraph();
      header2.setAlignment(Element.ALIGN_LEFT);
     
      header2.add(new Paragraph("Computerservice � Matthias M�ller � Rheingoldstr. 38a � 56329 St. Goar", headerAdressFont));
     
      header2.add(new LineSeparator((float) 0.8, 100, BaseColor.BLACK, Element.ALIGN_CENTER, 12));
     
      Paragraph adresse = new Paragraph();
      //adresse.add(new Paragraph(" ", new Font(Font.FontFamily.TIMES_ROMAN, 8)));
      float[] relSize = {3, 2};
      PdfPTable table = new PdfPTable(relSize);
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

          if (tmpSize > 0)
            hrSize = tmpSize;
        }
        if (addLeadingBreak)
          currentParagraph.add(Chunk.NEWLINE);
        currentParagraph.add(new LineSeparator(hrSize, hrWidth, null, hrAlign, currentParagraph.getLeading()/2));
        currentParagraph.add(Chunk.NEWLINE);
        return;
      }
      if (tag.equals(HtmlTags.CHUNK) || tag.equals(HtmlTags.SPAN)) {
        cprops.addToChain(tag, h);
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

    }
    // line color
    BaseColor lineColor = null;
    // alignment
    int align = HtmlUtilities.alignmentValue(attrs.get(HtmlTags.ALIGN));
    return new LineSeparator(lineWidth, percentage, lineColor, align, offset);
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

  private void addTitle(final Document document) throws DocumentException {
    progress.setValue(10);
    final Paragraph from = new Paragraph(Config.getFrom(),getDefaultFont());
    from.setAlignment(Paragraph.ALIGN_CENTER);
    from.add(new Chunk("\n"));
      from.add(new Chunk(new LineSeparator(1f, 100f, BaseColor.BLACK, Element.ALIGN_CENTER, 0)));
      from.add(new Chunk("\n\n"));
      document.add(from);
     
      final PdfPTable table = new PdfPTable(2);
      final Paragraph invoice = new Paragraph("Invoice No", getDefaultBoldFont());
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

      table.addCell(note);
      table.addCell(noteValue);
     
      table.setHorizontalAlignment(Element.ALIGN_LEFT);
      document.add(new Paragraph("\n"));
      document.add(new LineSeparator(1f, 100f, BaseColor.BLACK, Element.ALIGN_CENTER, 0));
    document.add(table);
    document.add(new Paragraph("\n", getDefaultFont()));
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

    // 编号深度
    cDomainChapter.setNumberDepth(0);
    // 必须添加一个Section。Chapter不会产生目录!!(会产生目录,只有一章的时候阅读器默认隐藏了而已!)
    // Section section = cDomainChapter.addSection(pDomainTitle);
    // 分割线
    LineSeparator line = new LineSeparator(2f, 100, BaseColor.BLACK,
        Element.ALIGN_CENTER, -5f);
    pDomainTitle.add(line);

    List<Biz> bizs = domain.getBizs();
View Full Code Here

Examples of com.itextpdf.text.pdf.draw.LineSeparator

    }
    // line color
    BaseColor lineColor = null;
    // alignment
    int align = HtmlUtilities.alignmentValue(attrs.get(HtmlTags.ALIGN));
    return new LineSeparator(lineWidth, percentage, lineColor, align, offset);
  }
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.