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

NameTypeAccessDescription
onbooleanRead/WriteDefines whether the path will be stroked.
colorColorRead/WriteDefines the color of a stroke.
color2ColorRead/WriteDefines a second color for a stroke.
foreColorColorRead/WriteGets or sets the foreground color of the stroke.
baseForeColorColorReadGets the base foreground color of the stroke without any modifiers.
backColorColorRead/WriteGets or sets the background color of the stroke.
foreThemeColorintRead/WriteGets or sets a ThemeColor object that represents the stroke foreground color.
backThemeColorintRead/WriteGets or sets a ThemeColor object that represents the stroke background color.
foreTintAndShadedoubleRead/WriteGets or sets a double value that lightens or darkens the stroke foreground color.
backTintAndShadedoubleRead/WriteGets or sets a double value that lightens or darkens the stroke background color.
visiblebooleanRead/WriteGets or sets a flag indicating whether the stroke is visible.
transparencydoubleRead/WriteGets or sets a value between 0.0 (opaque) and 1.0 (clear) representing the degree of transparency of the stroke.
weightdoubleRead/WriteDefines the brush thickness that strokes the path of a shape in points.
dashStyleintRead/WriteSpecifies the dot and dash pattern for a stroke.
joinStyleintRead/WriteDefines the join style of a polyline.
endCapintRead/WriteDefines the cap style for the end of a stroke.
lineStyleintRead/WriteDefines the line style of the stroke.
startArrowTypeintRead/WriteDefines the arrowhead for the start of a stroke.
endArrowTypeintRead/WriteDefines the arrowhead for the end of a stroke.
startArrowWidthintRead/WriteDefines the arrowhead width for the start of a stroke.
startArrowLengthintRead/WriteDefines the arrowhead length for the start of a stroke.
endArrowWidthintRead/WriteDefines the arrowhead width for the end of a stroke.
endArrowLengthintRead/WriteDefines the arrowhead length for the end of a stroke.
opacitydoubleRead/WriteDefines the amount of transparency of a stroke.
imageBytesbyte[]ReadGets the image bytes.
fillFillReadGets fill formatting for the Stroke.

Methods

SignatureDescription
getOn() → booleanDefines whether the path will be stroked.
setOn(value: boolean)Sets the on value.
getColor() → ColorDefines the color of a stroke.
setColor(value: Color)Sets the color value.
getColor2() → ColorDefines a second color for a stroke.
setColor2(value: Color)Sets the color2 value.
getForeColor() → ColorGets or sets the foreground color of the stroke.
setForeColor(value: Color)Sets the fore color value.
getBaseForeColor() → ColorGets the base foreground color of the stroke without any modifiers.
getBackColor() → ColorGets or sets the background color of the stroke.
setBackColor(value: Color)Sets the back color value.
getForeThemeColor() → intGets or sets a ThemeColor object that represents the stroke foreground color.
setForeThemeColor(value: int)Sets the fore theme color value.
getBackThemeColor() → intGets or sets a ThemeColor object that represents the stroke background color.
setBackThemeColor(value: int)Sets the back theme color value.
getForeTintAndShade() → doubleGets or sets a double value that lightens or darkens the stroke foreground color.
setForeTintAndShade(value: double)Sets the fore tint and shade value.
getBackTintAndShade() → doubleGets or sets a double value that lightens or darkens the stroke background color.
setBackTintAndShade(value: double)Sets the back tint and shade value.
getVisible() → booleanGets or sets a flag indicating whether the stroke is visible.
setVisible(value: boolean)Sets the visible value.
getTransparency() → doubleGets 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() → doubleDefines the brush thickness that strokes the path of a shape in points.
setWeight(value: double)Sets the weight value.
getDashStyle() → intSpecifies the dot and dash pattern for a stroke.
setDashStyle(value: int)Sets the dash style value.
getJoinStyle() → intDefines the join style of a polyline.
setJoinStyle(value: int)Sets the join style value.
getEndCap() → intDefines the cap style for the end of a stroke.
setEndCap(value: int)Sets the end cap value.
getLineStyle() → intDefines the line style of the stroke.
setLineStyle(value: int)Sets the line style value.
getStartArrowType() → intDefines the arrowhead for the start of a stroke.
setStartArrowType(value: int)Sets the start arrow type value.
getEndArrowType() → intDefines the arrowhead for the end of a stroke.
setEndArrowType(value: int)Sets the end arrow type value.
getStartArrowWidth() → intDefines the arrowhead width for the start of a stroke.
setStartArrowWidth(value: int)Sets the start arrow width value.
getStartArrowLength() → intDefines the arrowhead length for the start of a stroke.
setStartArrowLength(value: int)Sets the start arrow length value.
getEndArrowWidth() → intDefines the arrowhead width for the end of a stroke.
setEndArrowWidth(value: int)Sets the end arrow width value.
getEndArrowLength() → intDefines the arrowhead length for the end of a stroke.
setEndArrowLength(value: int)Sets the end arrow length value.
getOpacity() → doubleDefines the amount of transparency of a stroke.
setOpacity(value: double)Sets the opacity value.
getImageBytes() → byte[]Returns the image bytes.
getFill() → FillGets fill formatting for the Stroke.

See Also