|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.text.TextLine
public class TextLine
Represents a line of text.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
TextLine(int start,
int length,
int mWidth,
float yOffset,
int spaceCount,
boolean newParagraph,
boolean hardReturn,
boolean hyphenate)
Initializes a new instance of the TextLine class. |
Method Summary | |
---|---|
boolean |
getHardReturn()
Gets a value indicating if the line ends with a hard return. |
boolean |
getHyphenate()
Gets a value indicating if the line is to be hyphenated. |
int |
getLength()
Gets the length of the lines text. |
int |
getMWidth()
Gets the mwidth of the line. |
boolean |
getNewParagraph()
Gets a value indicating if the line begins a paragraph. |
int |
getSpaceCount()
Gets the space count for the line. |
int |
getStart()
Gets the start index of the lines text. |
float |
getWidth(float fontSize)
Returns the width of the line's text in points. |
float |
getYOffset()
Gets the y offset of the line. |
void |
setHardReturn(boolean hardReturn)
Sets a value indicating if the line ends with a hard return. |
void |
setHyphenate(boolean hyphenate)
Sets a value indicating if the line is to be hyphenated. |
void |
setLength(int length)
Sets the length of the lines text. |
void |
setMWidth(int mWidth)
Sets the mwidth of the line. |
void |
setNewParagraph(boolean newParagraph)
Sets a value indicating if the line begins a paragraph. |
void |
setSpaceCount(int spaceCount)
Sets the space count for the line. |
void |
setStart(int start)
Sets the start index of the lines text. |
void |
setYOffset(float yOffset)
Sets the y offset of the line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextLine(int start, int length, int mWidth, float yOffset, int spaceCount, boolean newParagraph, boolean hardReturn, boolean hyphenate)
TextLine
class.
start
- int start index for the text.length
- int length of the text.mWidth
- int mWidth of the text.yOffset
- float Y offset for the line.spaceCount
- int number of spaces in the line.newParagraph
- boolean specifies if the line begins a paragraph.hardReturn
- boolean specifies if the line ends with a hard return.hyphenate
- boolean specifies if the line ends with a hyphenation.Method Detail |
---|
public void setStart(int start)
start
- int start index of the lines text.public int getStart()
public void setLength(int length)
length
- int length of the lines text.public int getLength()
public void setHardReturn(boolean hardReturn)
hardReturn
- boolean value indicating if the line ends with a
hard return.public boolean getHardReturn()
public void setNewParagraph(boolean newParagraph)
newParagraph
- boolean value indicating if the line begins
a paragraph.public boolean getNewParagraph()
public void setHyphenate(boolean hyphenate)
hyphenate
- boolean value indicating if the line is to be hyphenated.public boolean getHyphenate()
public void setSpaceCount(int spaceCount)
spaceCount
- int space count for the line.public int getSpaceCount()
public void setMWidth(int mWidth)
mWidth
- int mwidth of the line.public int getMWidth()
public void setYOffset(float yOffset)
yOffset
- float y offset of the line.public float getYOffset()
public float getWidth(float fontSize)
fontSize
- float font size to use for the width.
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |