GraphInfo

Overview

GraphInfo is a class in Aspose.PDF FOSS for Java.

Represents graphic styling properties for drawing shapes.

This class provides 23 methods for working with GraphInfo objects in Java programs. Available methods include: GraphInfo, getColor, getDashArray, getDashPhase, getFillColor, getLineWidth, getRotationAngle, getScalingRateX, getScalingRateY, getSkewAngleX, getSkewAngleY, isDoubled, and 11 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: color, dashArray, dashPhase, doubled, fillColor, lineWidth, and 5 more.

Properties

NameTypeAccessDescription
colorColorReadGets the stroke (outline) color.
fillColorColorReadGets the fill color for closed shapes.
lineWidthfloatReadGets the line width in user-space units.
dashArrayfloat[]ReadGets the dash pattern array.
dashPhasefloatReadGets the dash phase offset.
rotationAnglefloatReadGets the rotation angle in degrees.
doubledbooleanReadReturns whether the line is rendered doubled.
scalingRateXfloatReadGets the horizontal scaling rate.
scalingRateYfloatReadGets the vertical scaling rate.
skewAngleXfloatReadGets the horizontal skew angle in degrees.
skewAngleYfloatReadGets the vertical skew angle in degrees.

Methods

SignatureDescription
GraphInfo()Creates a new {@code GraphInfo} with default styling (line width 1.0, no dash, no fill).
getColor()ColorGets the stroke (outline) color.
setColor(color: Color)Sets the stroke (outline) color.
getFillColor()ColorGets the fill color for closed shapes.
setFillColor(fillColor: Color)Sets the fill color for closed shapes.
getLineWidth()floatGets the line width in user-space units.
setLineWidth(lineWidth: float)Sets the line width in user-space units.
getDashArray()float[]Gets the dash pattern array.
setDashArray(dashArray: float[])Sets the dash pattern array.
getDashPhase()floatGets the dash phase offset.
setDashPhase(dashPhase: float)Sets the dash phase offset.
getRotationAngle()floatGets the rotation angle in degrees.
setRotationAngle(rotationAngle: float)Sets the rotation angle in degrees.
isDoubled()booleanReturns whether the line is rendered doubled.
setDoubled(doubled: boolean)Sets whether the line should be rendered doubled.
getScalingRateX()floatGets the horizontal scaling rate.
setScalingRateX(scalingRateX: float)Sets the horizontal scaling rate.
getScalingRateY()floatGets the vertical scaling rate.
setScalingRateY(scalingRateY: float)Sets the vertical scaling rate.
getSkewAngleX()floatGets the horizontal skew angle in degrees.
setSkewAngleX(skewAngleX: float)Sets the horizontal skew angle in degrees.
getSkewAngleY()floatGets the vertical skew angle in degrees.
setSkewAngleY(skewAngleY: float)Sets the vertical skew angle in degrees.

See Also

 English