Codota Logo
PdfContentByte.stroke
Code IndexAdd Codota to your IDE (free)

How to use
stroke
method
in
com.itextpdf.text.pdf.PdfContentByte

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.stroke (Showing top 20 results out of 315)

  • Common ways to obtain PdfContentByte
private void myMethod () {
PdfContentByte p =
  • Codota IconPdfWriter writer;writer.getDirectContent()
  • Codota IconPdfStamper pdfStamper;pdfStamper.getOverContent(pageNum)
  • Codota IconPdfStamper pdfStamper;pdfStamper.getUnderContent(pageNum)
  • Smart code suggestions by Codota
}
origin: youseries/ureport

cb.moveTo(position.getLeft(), position.getTop());
cb.lineTo(position.getLeft(), position.getBottom());
cb.stroke();
if(leftBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getTop()-2);
  cb.lineTo(position.getLeft()+2, position.getBottom()+2);
  cb.stroke();
cb.moveTo(position.getLeft(), position.getTop());
cb.lineTo(position.getRight(), position.getTop());
cb.stroke();
if(topBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getTop()-2);
  cb.lineTo(position.getRight()-2, position.getTop()-2);
  cb.stroke();
cb.moveTo(position.getRight(), position.getTop());
cb.lineTo(position.getRight(), position.getBottom());
cb.stroke();
if(rightBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getRight()-2, position.getTop()-2);
  cb.lineTo(position.getRight()-2, position.getBottom()+2);
  cb.stroke();
cb.moveTo(position.getLeft(), position.getBottom());
cb.lineTo(position.getRight(), position.getBottom());
cb.stroke();
if(bottomBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getBottom()+2);
origin: grakic/jfreesteel

private void drawRulerLine(PdfContentByte cb, int height)
{
  cb.moveTo(59, height);
  cb.lineTo(536, height);
  cb.stroke();
}
origin: org.gephi/preview-plugin

  cb.setGState(gState);
cb.stroke();
if (color.getAlpha() < 255) {
  cb.restoreState();
origin: org.gephi/preview-plugin

  cb.setGState(gState);
cb.stroke();
if (color.getAlpha() < 255) {
  cb.restoreState();
origin: org.gephi/preview-plugin

  cb.setGState(gState);
cb.stroke();
if (color.getAlpha() < 255) {
  cb.restoreState();
origin: com.itextpdf/itextg

setColorStroke(new BaseColor(0xC0, 0xC0, 0xC0));
arc(llx + 1f, lly + 1f, urx - 1f, ury - 1f, 0f, 360f);
stroke();
setColorStroke(new BaseColor(0xA0, 0xA0, 0xA0));
arc(llx + 0.5f, lly + 0.5f, urx - 0.5f, ury - 0.5f, 45, 180);
stroke();
setColorStroke(new BaseColor(0x00, 0x00, 0x00));
arc(llx + 1.5f, lly + 1.5f, urx - 1.5f, ury - 1.5f, 45, 180);
stroke();
if (on) {
origin: com.itextpdf/itextpdf

setColorStroke(new BaseColor(0xC0, 0xC0, 0xC0));
arc(llx + 1f, lly + 1f, urx - 1f, ury - 1f, 0f, 360f);
stroke();
setColorStroke(new BaseColor(0xA0, 0xA0, 0xA0));
arc(llx + 0.5f, lly + 0.5f, urx - 0.5f, ury - 0.5f, 45, 180);
stroke();
setColorStroke(new BaseColor(0x00, 0x00, 0x00));
arc(llx + 1.5f, lly + 1.5f, urx - 1.5f, ury - 1.5f, 45, 180);
stroke();
if (on) {
origin: com.itextpdf/itextpdf

setLineCap(0);
rectangle(llx, lly, urx - llx, ury - lly);
stroke();
lineTo(urx - 1.5f, lly + 1.5f);
lineTo(urx - 1.5f, ury - 1f);
stroke();
lineTo(llx + 1f, ury - 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
lineTo(llx + 2f, ury - 2f);
lineTo(urx - 2f, ury - 2f);
stroke();
restoreState();
origin: com.itextpdf/itextg

setLineCap(0);
rectangle(llx, lly, urx - llx, ury - lly);
stroke();
lineTo(urx - 1.5f, lly + 1.5f);
lineTo(urx - 1.5f, ury - 1f);
stroke();
lineTo(llx + 1f, ury - 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
lineTo(llx + 2f, ury - 2f);
lineTo(urx - 2f, ury - 2f);
stroke();
restoreState();
origin: org.xhtmlrenderer/flying-saucer-pdf-itext5

case STROKE:
  if (traces > 0)
    cb.stroke();
  break;
default: // drawType==CLIP
origin: com.itextpdf/itextpdf

canvas.moveTo(s + leftX, y + offset);
canvas.lineTo(s + w + leftX, y + offset);
canvas.stroke();
origin: com.itextpdf/itextg

canvas.moveTo(s + leftX, y + offset);
canvas.lineTo(s + w + leftX, y + offset);
canvas.stroke();
origin: com.itextpdf/itextpdf

case STROKE:
  if (traces > 0)
    cb.stroke();
  break;
default: //drawType==CLIP
origin: com.bstek.ureport/ureport2-core

cb.moveTo(position.getLeft(), position.getTop());
cb.lineTo(position.getLeft(), position.getBottom());
cb.stroke();
if(leftBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getTop()-2);
  cb.lineTo(position.getLeft()+2, position.getBottom()+2);
  cb.stroke();
cb.moveTo(position.getLeft(), position.getTop());
cb.lineTo(position.getRight(), position.getTop());
cb.stroke();
if(topBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getTop()-2);
  cb.lineTo(position.getRight()-2, position.getTop()-2);
  cb.stroke();
cb.moveTo(position.getRight(), position.getTop());
cb.lineTo(position.getRight(), position.getBottom());
cb.stroke();
if(rightBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getRight()-2, position.getTop()-2);
  cb.lineTo(position.getRight()-2, position.getBottom()+2);
  cb.stroke();
cb.moveTo(position.getLeft(), position.getBottom());
cb.lineTo(position.getRight(), position.getBottom());
cb.stroke();
if(bottomBorder.getStyle().equals(BorderStyle.doublesolid)){
  cb.moveTo(position.getLeft()+2, position.getBottom()+2);
origin: com.itextpdf/itextpdf

setLineCap(0);
rectangle(llx, lly, urx - llx, ury - lly);
stroke();
lineTo(llx + 1f, ury - 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
lineTo(urx - 1f, lly + 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
origin: com.itextpdf/itextg

setLineCap(0);
rectangle(llx, lly, urx - llx, ury - lly);
stroke();
lineTo(llx + 1f, ury - 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
lineTo(urx - 1f, lly + 1f);
lineTo(urx - 1f, ury - 1f);
stroke();
origin: org.technbolts/gutenberg

public void drawFooter(PdfContentByte canvas, PageInfos pageInfos) {
  if (pageInfos.getRawPageNumber() == 1 && !footerOnFirstPage)
    return;
  if (drawLine) {
    BaseColor lineColor = styles.getColorOrDefault(HEADER_LINE_COLOR);
    canvas.saveState();
    canvas.setColorStroke(lineColor);
    canvas.setLineWidth(1.2f);
    canvas.moveTo(rect.getLeft(), rect.getBottom() - 6);
    canvas.lineTo(rect.getRight(), rect.getBottom() - 6);
    canvas.stroke();
    canvas.restoreState();
  }
  float bottom = rect.getBottom() - 20;
  Phrase footer = footerText(pageInfos);
  if (footer != null) {
    showTextAligned(canvas, Element.ALIGN_LEFT, footer, rect.getLeft(), bottom, 0);
  }
  Font footerFont = styles.getFontOrDefault(FOOTER_FONT);
  Phrase page = new Phrase(pageInfos.getFormattedPageNumber(), footerFont);
  showTextAligned(canvas, Element.ALIGN_RIGHT, page, rect.getRight(), bottom, 0);
}
origin: sc.fiji/Colocalisation_Analysis

  cb.lineTo(PageSize.A4.getRight(50), vertPos);
cb.stroke();
origin: com.itextpdf/itextpdf

stroke();
origin: com.itextpdf/itextg

stroke();
com.itextpdf.text.pdfPdfContentBytestroke

Javadoc

Strokes the path.

Popular methods of PdfContentByte

  • addTemplate
    adds a template with the given matrix.
  • createTemplate
  • beginText
    Starts the writing of text.
  • endText
    Ends the writing of text and makes the current font invalid.
  • lineTo
    Appends a straight line segment from the current point (x, y). The new current point is (x, y).
  • moveTo
    Move the current point (x, y), omitting any connecting line segment.
  • restoreState
    Restores the graphic state. saveState andrestoreState must be balanced.
  • saveState
    Saves the graphic state. saveState andrestoreState must be balanced.
  • setFontAndSize
    Set the font and the size for the subsequent text writing.
  • setLineWidth
    Changes the line width. The line width specifies the thickness of the line used to stroke a path and
  • addImage
    Adds an Image to the page. The Image must have absolute positioning. The image can be placed inline.
  • setTextMatrix
    Changes the text matrix.
  • addImage,
  • setTextMatrix,
  • showText,
  • fill,
  • rectangle,
  • setColorFill,
  • setColorStroke,
  • setGState,
  • beginLayer

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now