Graph
Overview
Graph is a class in Aspose.Pdf FOSS for Java.
Inherits from: BaseParagraph.
Represents a drawing canvas that can be added to a PDF page’s paragraph collection.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | double | Read | Gets the width of this graph canvas. |
height | double | Read | Gets the height of this graph canvas. |
left | double | Read | Gets the left position offset. |
top | double | Read | Gets the top position offset. |
changePosition | boolean | Read | Returns whether position changes are tracked for layout. |
border | BorderInfo | Read | Gets the border styling for this graph. |
graphInfo | GraphInfo | Read | Gets the graphic styling properties for this graph. |
shapes | ShapeCollection | Read | Gets the collection of shapes contained in this graph. |
title | String | Read | Gets the title of this graph. |
margin | MarginInfo | Read | Gets the margin information for this paragraph. |
horizontalAlignment | HorizontalAlignment | Read | Gets the horizontal alignment of this paragraph within its container. |
inLineParagraph | boolean | Read | Returns whether this paragraph is an inline element. |
keptWithNext | boolean | Read | Returns whether this paragraph should be kept together with the next paragraph |
| on the same page during layout. | |||
firstParagraphInColumn | boolean | Read | Returns whether this paragraph is the first in its column. |
inNewPage | boolean | Read | Returns whether this paragraph should start on a new page during layout. |
hyperlink | Hyperlink | Read | Returns the hyperlink attached to this paragraph (web, local or file |
| target), or {@code null} if the paragraph is not clickable. |
Methods
| Signature | Description |
|---|---|
Graph(width: double, height: double) | Creates a new graph canvas with the specified dimensions. |
getWidth() → double | Gets the width of this graph canvas. |
setWidth(width: double) | Sets the width of this graph canvas. |
getHeight() → double | Gets the height of this graph canvas. |
setHeight(height: double) | Sets the height of this graph canvas. |
getLeft() → double | Gets the left position offset. |
setLeft(left: double) | Sets the left position offset. |
getTop() → double | Gets the top position offset. |
setTop(top: double) | Sets the top position offset. |
isChangePosition() → boolean | Returns whether position changes are tracked for layout. |
setChangePosition(changePosition: boolean) | Sets whether position changes are tracked for layout. |
getBorder() → BorderInfo | Gets the border styling for this graph. |
setBorder(border: BorderInfo) | Sets the border styling for this graph. |
getGraphInfo() → GraphInfo | Gets the graphic styling properties for this graph. |
setGraphInfo(graphInfo: GraphInfo) | Sets the graphic styling properties for this graph. |
getShapes() → ShapeCollection | Gets the collection of shapes contained in this graph. |
getTitle() → String | Gets the title of this graph. |
setTitle(title: String) | Sets the title of this graph. |
getMargin() → MarginInfo | Gets the margin information for this paragraph. |
setMargin(margin: MarginInfo) | Sets the margin information for this paragraph. |
getHorizontalAlignment() → HorizontalAlignment | Gets the horizontal alignment of this paragraph within its container. |
setHorizontalAlignment(horizontalAlignment: HorizontalAlignment) | Sets the horizontal alignment of this paragraph within its container. |
isInLineParagraph() → boolean | Returns whether this paragraph is an inline element. |
setInLineParagraph(inLineParagraph: boolean) | Sets whether this paragraph should be treated as an inline element. |
isKeptWithNext() → boolean | Returns whether this paragraph should be kept together with the next paragraph |
| on the same page during layout. | |
setKeptWithNext(keptWithNext: boolean) | Sets whether this paragraph should be kept together with the next paragraph |
| on the same page during layout. | |
isFirstParagraphInColumn() → boolean | Returns whether this paragraph is the first in its column. |
setFirstParagraphInColumn(firstParagraphInColumn: boolean) | Sets whether this paragraph is the first in its column. |
isInNewPage() → boolean | Returns whether this paragraph should start on a new page during layout. |
setInNewPage(inNewPage: boolean) | Sets whether this paragraph should start on a new page during layout. |
getHyperlink() → Hyperlink | Returns the hyperlink attached to this paragraph (web, local or file |
| target), or {@code null} if the paragraph is not clickable. | |
setHyperlink(hyperlink: Hyperlink) | Attaches a hyperlink to this paragraph. |