|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectaspose.pdf.Paragraph
aspose.pdf.Canvas
public class Canvas
Represents a Canvas in a Pdf document.
Typical usages are the following:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class aspose.pdf.Paragraph |
|---|
Paragraph.VerticalPositionInfo |
| Field Summary |
|---|
| Fields inherited from class aspose.pdf.Paragraph |
|---|
_realPageNumber, INNER_INDENT, isNeedAddToPage, isPositionProcessed, VerticalPosInfo |
| Constructor Summary | |
|---|---|
Canvas()
Constructor - initializes a new instance of the Canvas class with default width(available page width) and height(279F). |
|
Canvas(float width,
float height)
Constructor - initializes a new instance of the Canvas class with specified width and height. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones a new Canvas object. |
java.lang.Object |
completeClone()
|
BorderInfo |
getBorder()
Gets a a BorderInfo object that indicates the border info of the canvas. |
float |
getBoxHeight()
Gets a float value that indicates the height of the canvas. |
float |
getBoxWidth()
Gets a float value that indicates the width of the canvas. |
Color |
getFillColor()
Gets a Color object that indicates the background color of the canvas. |
boolean |
getIsWidthSet()
Gets a boolean value that indicates whether the WidthSet property of the canvas has been set. |
Paragraphs |
getParagraphs()
Gets a GraphInfo collection that indicates all paragraphs in the section. |
void |
setBorder(BorderInfo boxBorder)
Sets a a BorderInfo object that
indicates the border info of the canvas. |
void |
setBoxHeight(float value)
Sets a float value that indicates the height of the canvas. |
void |
setBoxWidth(float value)
Sets a float value that indicates the width of the canvas. |
void |
setFillColor(Color backColor)
Sets a Color object that indicates the
background color of the canvas. |
void |
setParagraphs(Paragraphs docParas)
Sets a GraphInfo collection that
indicates all paragraphs in the section. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Canvas(float width,
float height)
Canvas class with specified width and height.
width - The width of the Canvas.height - The height of the Canvas.public Canvas()
Canvas class with default width(available page width) and height(279F).
| Method Detail |
|---|
public boolean getIsWidthSet()
public void setBoxWidth(float value)
value - BoxWidth value.public float getBoxWidth()
public float getBoxHeight()
public void setBoxHeight(float value)
value - BoxHeigh value.public BorderInfo getBorder()
BorderInfo object that indicates the border info of the canvas.
BorderInfo object.public void setBorder(BorderInfo boxBorder)
BorderInfo object that
indicates the border info of the canvas.
boxBorder - BorderInfo object.public Color getFillColor()
Color object that indicates the background color of the canvas.
Color object.public void setFillColor(Color backColor)
Color object that indicates the
background color of the canvas.
backColor - Color object.public Paragraphs getParagraphs()
GraphInfo collection that indicates all paragraphs in the section.
GraphInfo object.public void setParagraphs(Paragraphs docParas)
GraphInfo collection that
indicates all paragraphs in the section.
docParas - Paragraphs object.public java.lang.Object completeClone()
completeClone in class Paragraphpublic java.lang.Object clone()
Clones a new Canvas object. Paragraphs in
the canvas are not cloned.
clone in class java.lang.ObjectCanvas object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||