Stroke
Overview
Stroke is a class in Aspose.Words FOSS for Java.
Inherits from: IFillable.
Defines a stroke for a shape.
Edition status of its 75 listed members (a property and its accessor methods are listed separately, overloads once): 75 not yet exercised by a verified example.
This class declares 49 methods for Stroke objects in Java programs.
Available methods include: getBackColor, getBackThemeColor, getBackTintAndShade, getBaseForeColor, getColor, getColor2, getDashStyle, getEndArrowLength, getEndArrowType, getEndArrowWidth, getEndCap, getFill, and 37 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: backColor, backThemeColor, backTintAndShade, baseForeColor, color, color2, and 20 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
on | boolean | Read/Write | Defines whether the path will be stroked. |
color | Color | Read/Write | Defines the color of a stroke. |
color2 | Color | Read/Write | Defines a second color for a stroke. |
foreColor | Color | Read/Write | Gets or sets the foreground color of the stroke. |
baseForeColor | Color | Read | Gets the base foreground color of the stroke without any modifiers. |
backColor | Color | Read/Write | Gets or sets the background color of the stroke. |
foreThemeColor | int | Read/Write | Gets or sets a ThemeColor object that represents the stroke foreground color. |
backThemeColor | int | Read/Write | Gets or sets a ThemeColor object that represents the stroke background color. |
foreTintAndShade | double | Read/Write | Gets or sets a double value that lightens or darkens the stroke foreground color. |
backTintAndShade | double | Read/Write | Gets or sets a double value that lightens or darkens the stroke background color. |
visible | boolean | Read/Write | Gets or sets a flag indicating whether the stroke is visible. |
transparency | double | Read/Write | Gets or sets a value between 0.0 (opaque) and 1.0 (clear) representing the degree of transparency of the stroke. |
weight | double | Read/Write | Defines the brush thickness that strokes the path of a shape in points. |
dashStyle | int | Read/Write | Specifies the dot and dash pattern for a stroke. |
joinStyle | int | Read/Write | Defines the join style of a polyline. |
endCap | int | Read/Write | Defines the cap style for the end of a stroke. |
lineStyle | int | Read/Write | Defines the line style of the stroke. |
startArrowType | int | Read/Write | Defines the arrowhead for the start of a stroke. |
endArrowType | int | Read/Write | Defines the arrowhead for the end of a stroke. |
startArrowWidth | int | Read/Write | Defines the arrowhead width for the start of a stroke. |
startArrowLength | int | Read/Write | Defines the arrowhead length for the start of a stroke. |
endArrowWidth | int | Read/Write | Defines the arrowhead width for the end of a stroke. |
endArrowLength | int | Read/Write | Defines the arrowhead length for the end of a stroke. |
opacity | double | Read/Write | Defines the amount of transparency of a stroke. |
imageBytes | byte[] | Read | Gets the image bytes. |
fill | Fill | Read | Gets fill formatting for the Stroke. |
Methods
| Signature | Description |
|---|---|
getOn() → boolean | Defines whether the path will be stroked. |
setOn(value: boolean) | Sets the on value. |
getColor() → Color | Defines the color of a stroke. |
setColor(value: Color) | Sets the color value. |
getColor2() → Color | Defines a second color for a stroke. |
setColor2(value: Color) | Sets the color2 value. |
getForeColor() → Color | Gets or sets the foreground color of the stroke. |
setForeColor(value: Color) | Sets the fore color value. |
getBaseForeColor() → Color | Gets the base foreground color of the stroke without any modifiers. |
getBackColor() → Color | Gets or sets the background color of the stroke. |
setBackColor(value: Color) | Sets the back color value. |
getForeThemeColor() → int | Gets or sets a ThemeColor object that represents the stroke foreground color. |
setForeThemeColor(value: int) | Sets the fore theme color value. |
getBackThemeColor() → int | Gets or sets a ThemeColor object that represents the stroke background color. |
setBackThemeColor(value: int) | Sets the back theme color value. |
getForeTintAndShade() → double | Gets or sets a double value that lightens or darkens the stroke foreground color. |
setForeTintAndShade(value: double) | Sets the fore tint and shade value. |
getBackTintAndShade() → double | Gets or sets a double value that lightens or darkens the stroke background color. |
setBackTintAndShade(value: double) | Sets the back tint and shade value. |
getVisible() → boolean | Gets or sets a flag indicating whether the stroke is visible. |
setVisible(value: boolean) | Sets the visible value. |
getTransparency() → double | Gets or sets a value between 0.0 (opaque) and 1.0 (clear) representing the degree of transparency of the stroke. |
setTransparency(value: double) | Sets the transparency value. |
getWeight() → double | Defines the brush thickness that strokes the path of a shape in points. |
setWeight(value: double) | Sets the weight value. |
getDashStyle() → int | Specifies the dot and dash pattern for a stroke. |
setDashStyle(value: int) | Sets the dash style value. |
getJoinStyle() → int | Defines the join style of a polyline. |
setJoinStyle(value: int) | Sets the join style value. |
getEndCap() → int | Defines the cap style for the end of a stroke. |
setEndCap(value: int) | Sets the end cap value. |
getLineStyle() → int | Defines the line style of the stroke. |
setLineStyle(value: int) | Sets the line style value. |
getStartArrowType() → int | Defines the arrowhead for the start of a stroke. |
setStartArrowType(value: int) | Sets the start arrow type value. |
getEndArrowType() → int | Defines the arrowhead for the end of a stroke. |
setEndArrowType(value: int) | Sets the end arrow type value. |
getStartArrowWidth() → int | Defines the arrowhead width for the start of a stroke. |
setStartArrowWidth(value: int) | Sets the start arrow width value. |
getStartArrowLength() → int | Defines the arrowhead length for the start of a stroke. |
setStartArrowLength(value: int) | Sets the start arrow length value. |
getEndArrowWidth() → int | Defines the arrowhead width for the end of a stroke. |
setEndArrowWidth(value: int) | Sets the end arrow width value. |
getEndArrowLength() → int | Defines the arrowhead length for the end of a stroke. |
setEndArrowLength(value: int) | Sets the end arrow length value. |
getOpacity() → double | Defines the amount of transparency of a stroke. |
setOpacity(value: double) | Sets the opacity value. |
getImageBytes() → byte[] | Returns the image bytes. |
getFill() → Fill | Gets fill formatting for the Stroke. |