|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.pdf2.LayoutBox.Box
public class LayoutBox.Box
A class representing a Box, several of which make up the visible content of a LayoutBox. Boxs on their own represent nothing but a space in the LayoutBox layout - if the rectangle is to be filled with some content (an image, for example), that has to be done separately.
The LayoutBox.Text class is a subclass of Box which is used to
specifically display a phrase of text.
LayoutBox.getBoxes()| Constructor Summary | |
|---|---|
protected |
LayoutBox.Box(float width,
float height,
float baseline,
int vertalign)
|
| Method Summary | |
|---|---|
float |
getBottom()
Return the bottom edge of this Box relative to the parent LayoutBox, in points. |
PDFImage |
getImage()
Return the optional image set by the setImage method,
or null if no image was defined. |
float |
getLeft()
Return the left edge of this Box relative to the parent LayoutBox, in points |
float |
getLineBottom()
Return the bottom edge of the line this Box sits on, relative to the parent LayoutBox, in points. |
int |
getLineNumber()
Return which line number this text belongs to. |
float |
getLineTop()
Return the top edge of the line this Box sits on, relative to the parent LayoutBox, in points. |
Object |
getLinkedObject()
Return the object set via setLinkedObject(java.lang.Object) |
LayoutBox |
getParent()
Return the LayoutBox that this Box is a child of |
float |
getRight()
Return the right edge of this Box relative to the parent LayoutBox, in points |
float |
getTop()
Return the top edge of this Box relative to the parent LayoutBox, in points. |
protected void |
setBottom(float bottom)
|
void |
setImage(PDFImage image)
Set an optional image which goes with this Box. |
protected void |
setLeft(float left)
|
protected void |
setLineCoords(float top,
float bottom,
int linenumber)
|
void |
setLinkedObject(Object o)
Associate an object with this Box. |
protected void |
setTop(float top)
|
protected void |
setWidth(float width)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LayoutBox.Box(float width,
float height,
float baseline,
int vertalign)
| Method Detail |
|---|
protected void setLeft(float left)
protected void setWidth(float width)
protected void setTop(float top)
protected void setBottom(float bottom)
protected void setLineCoords(float top,
float bottom,
int linenumber)
public final int getLineNumber()
LayoutBox.addLineBreak(org.faceless.pdf2.PDFStyle) do not count as lines.
Left or right floating boxes will have the same line number as the text next
to the top of the box. If the LayoutBox has not been flushed then this method
may return -1, indicating the line number hasn't been set yet.
public final float getLeft()
public final float getRight()
public final float getTop()
getBottom(),
getLineTop()public final float getBottom()
getTop(),
getLineBottom()public final float getLineTop()
getLineBottom(),
getTop()public final float getLineBottom()
getLineTop(),
getTop()public String toString()
toString in class Objectpublic void setImage(PDFImage image)
public PDFImage getImage()
setImage method,
or null if no image was defined.
public LayoutBox getParent()
public final Object getLinkedObject()
setLinkedObject(java.lang.Object)
public final void setLinkedObject(Object o)
LayoutBox.splitAt(float) call. Used in the Report
Generator, but probably not much use for most end users.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||