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
| Name | Type | Access | Description |
|---|---|---|---|
color | Color | Read | Gets the stroke (outline) color. |
fillColor | Color | Read | Gets the fill color for closed shapes. |
lineWidth | float | Read | Gets the line width in user-space units. |
dashArray | float[] | Read | Gets the dash pattern array. |
dashPhase | float | Read | Gets the dash phase offset. |
rotationAngle | float | Read | Gets the rotation angle in degrees. |
doubled | boolean | Read | Returns whether the line is rendered doubled. |
scalingRateX | float | Read | Gets the horizontal scaling rate. |
scalingRateY | float | Read | Gets the vertical scaling rate. |
skewAngleX | float | Read | Gets the horizontal skew angle in degrees. |
skewAngleY | float | Read | Gets the vertical skew angle in degrees. |
Methods
| Signature | Description |
|---|---|
GraphInfo() | Creates a new {@code GraphInfo} with default styling (line width 1.0, no dash, no fill). |
getColor() → Color | Gets the stroke (outline) color. |
setColor(color: Color) | Sets the stroke (outline) color. |
getFillColor() → Color | Gets the fill color for closed shapes. |
setFillColor(fillColor: Color) | Sets the fill color for closed shapes. |
getLineWidth() → float | Gets 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() → float | Gets the dash phase offset. |
setDashPhase(dashPhase: float) | Sets the dash phase offset. |
getRotationAngle() → float | Gets the rotation angle in degrees. |
setRotationAngle(rotationAngle: float) | Sets the rotation angle in degrees. |
isDoubled() → boolean | Returns whether the line is rendered doubled. |
setDoubled(doubled: boolean) | Sets whether the line should be rendered doubled. |
getScalingRateX() → float | Gets the horizontal scaling rate. |
setScalingRateX(scalingRateX: float) | Sets the horizontal scaling rate. |
getScalingRateY() → float | Gets the vertical scaling rate. |
setScalingRateY(scalingRateY: float) | Sets the vertical scaling rate. |
getSkewAngleX() → float | Gets the horizontal skew angle in degrees. |
setSkewAngleX(skewAngleX: float) | Sets the horizontal skew angle in degrees. |
getSkewAngleY() → float | Gets the vertical skew angle in degrees. |
setSkewAngleY(skewAngleY: float) | Sets the vertical skew angle in degrees. |