|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.content.TextLine
Represents a line of text.
| Constructor Summary | |
TextLine(SizeCalculator sizeCalc,
long lineheight)
Creates a new line of text. |
|
| Method Summary | |
StrictBounds |
getBounds()
Returns the bounds of the text. |
java.lang.String |
getContent()
Returns the text content. |
Content |
getContentForBounds(StrictBounds bounds)
Returns the content that fits in the specified bounds. |
ContentType |
getContentType()
Returns the content type, in this case ContentType.TEXT. |
long |
getHeight()
Returns the height of this text line. |
StrictBounds |
getMinimumContentSize()
Return the minimum content size. |
void |
setContent(java.lang.String content,
long x,
long y,
long width,
long height)
Sets the content for the line of text. |
java.lang.String |
toString()
Returns a string representation of this text line. |
void |
translate(long x,
long y)
Hack-Attack: Used for alignment of the content. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public TextLine(SizeCalculator sizeCalc,
long lineheight)
sizeCalc - the size calculator.lineheight - the line height that should be used for this text line.| Method Detail |
public long getHeight()
public ContentType getContentType()
ContentType.TEXT.
public void setContent(java.lang.String content,
long x,
long y,
long width,
long height)
content - the string for this line of text.x - the x coordinates for the bounds.y - the y coordinates for the bounds.width - the width of the bounds.height - the height of the bounds.public java.lang.String getContent()
public StrictBounds getBounds()
public Content getContentForBounds(StrictBounds bounds)
bounds - the bounds.public StrictBounds getMinimumContentSize()
public java.lang.String toString()
public void translate(long x,
long y)
x - the x translation.y - the y translation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||