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

NameTypeAccessDescription
widthdoubleReadGets the width of this graph canvas.
heightdoubleReadGets the height of this graph canvas.
leftdoubleReadGets the left position offset.
topdoubleReadGets the top position offset.
changePositionbooleanReadReturns whether position changes are tracked for layout.
borderBorderInfoReadGets the border styling for this graph.
graphInfoGraphInfoReadGets the graphic styling properties for this graph.
shapesShapeCollectionReadGets the collection of shapes contained in this graph.
titleStringReadGets the title of this graph.
marginMarginInfoReadGets the margin information for this paragraph.
horizontalAlignmentHorizontalAlignmentReadGets the horizontal alignment of this paragraph within its container.
inLineParagraphbooleanReadReturns whether this paragraph is an inline element.
keptWithNextbooleanReadReturns whether this paragraph should be kept together with the next paragraph
on the same page during layout.
firstParagraphInColumnbooleanReadReturns whether this paragraph is the first in its column.
inNewPagebooleanReadReturns whether this paragraph should start on a new page during layout.
hyperlinkHyperlinkReadReturns the hyperlink attached to this paragraph (web, local or file
target), or {@code null} if the paragraph is not clickable.

Methods

SignatureDescription
Graph(width: double, height: double)Creates a new graph canvas with the specified dimensions.
getWidth()doubleGets the width of this graph canvas.
setWidth(width: double)Sets the width of this graph canvas.
getHeight()doubleGets the height of this graph canvas.
setHeight(height: double)Sets the height of this graph canvas.
getLeft()doubleGets the left position offset.
setLeft(left: double)Sets the left position offset.
getTop()doubleGets the top position offset.
setTop(top: double)Sets the top position offset.
isChangePosition()booleanReturns whether position changes are tracked for layout.
setChangePosition(changePosition: boolean)Sets whether position changes are tracked for layout.
getBorder()BorderInfoGets the border styling for this graph.
setBorder(border: BorderInfo)Sets the border styling for this graph.
getGraphInfo()GraphInfoGets the graphic styling properties for this graph.
setGraphInfo(graphInfo: GraphInfo)Sets the graphic styling properties for this graph.
getShapes()ShapeCollectionGets the collection of shapes contained in this graph.
getTitle()StringGets the title of this graph.
setTitle(title: String)Sets the title of this graph.
getMargin()MarginInfoGets the margin information for this paragraph.
setMargin(margin: MarginInfo)Sets the margin information for this paragraph.
getHorizontalAlignment()HorizontalAlignmentGets the horizontal alignment of this paragraph within its container.
setHorizontalAlignment(horizontalAlignment: HorizontalAlignment)Sets the horizontal alignment of this paragraph within its container.
isInLineParagraph()booleanReturns whether this paragraph is an inline element.
setInLineParagraph(inLineParagraph: boolean)Sets whether this paragraph should be treated as an inline element.
isKeptWithNext()booleanReturns 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()booleanReturns whether this paragraph is the first in its column.
setFirstParagraphInColumn(firstParagraphInColumn: boolean)Sets whether this paragraph is the first in its column.
isInNewPage()booleanReturns 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()HyperlinkReturns 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.

See Also