DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class ParagraphStyle

java.lang.Object
  extended by com.cete.dynamicpdf.pageelements.ParagraphStyle

public class ParagraphStyle
extends java.lang.Object

Represents type of paragraphing possible.


Field Summary
 TextAlign align
          Represents the alignment of a paragraph.
 boolean allowOrphanLines
          Represents if paragraphs should be allowed to break leaving one line on a page.
 float indent
          Represents the indention of the first line of a paragraph.
 float leftIndent
          Represents the left indentation of a paragraph.
 boolean preserveWhiteSpace
          Represents if a white space should be preserved.
 float rightIndent
          Represents the right indentation of a paragraph.
 float spacingAfter
          Represents the spacing after a paragraph.
 float spacingBefore
          Represents the spacing before a paragraph.
 
Constructor Summary
ParagraphStyle(float spacingBefore, float spacingAfter, float indent, float leftIndent, float rightIndent, TextAlign align, boolean allowOrphanLines, boolean preserveWhiteSpace)
          Creates a new instance of ParagraphStyle
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests equality of paragraph styles,return true if the two paragraph styles are equal.
 int getHashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spacingBefore

public float spacingBefore
Represents the spacing before a paragraph.


spacingAfter

public float spacingAfter
Represents the spacing after a paragraph.


indent

public float indent
Represents the indention of the first line of a paragraph.


leftIndent

public float leftIndent
Represents the left indentation of a paragraph.


rightIndent

public float rightIndent
Represents the right indentation of a paragraph.


align

public TextAlign align
Represents the alignment of a paragraph.

See Also:
TextAlign

allowOrphanLines

public boolean allowOrphanLines
Represents if paragraphs should be allowed to break leaving one line on a page.


preserveWhiteSpace

public boolean preserveWhiteSpace
Represents if a white space should be preserved.

Constructor Detail

ParagraphStyle

public ParagraphStyle(float spacingBefore,
                      float spacingAfter,
                      float indent,
                      float leftIndent,
                      float rightIndent,
                      TextAlign align,
                      boolean allowOrphanLines,
                      boolean preserveWhiteSpace)
Creates a new instance of ParagraphStyle

Parameters:
spacingBefore - Represents the spacing before a paragraph.
spacingAfter - Represents the spacing after a paragraph.
indent - Represents the indention of the first line of a paragraph.
leftIndent - Represents the left indentation of a paragraph.
rightIndent - Represents the right indentation of a paragraph.
align - Represents the alignment of a paragraph.
allowOrphanLines - Represents if paragraphs should be allowed to break leaving one line on a page.
preserveWhiteSpace - Represents if a white space should be preserved.
See Also:
TextAlign
Method Detail

equals

public boolean equals(java.lang.Object obj)
Tests equality of paragraph styles,return true if the two paragraph styles are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - represents java object.
Returns:
true, if the objects are equals. Otherwise false.

getHashCode

public int getHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns:
the hash code of the object.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software