LineFormat
Overview
LineFormat is a class in Aspose.Slides FOSS for Java.
Inherits from: ILineFormat.
Represents format of a line.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
formatNotDefined | boolean | Read | Indicates whether the line format is undefined |
fillFormat | ILineFillFormat | Read | Provides access to the line’s fill format |
width | double | Read | Gets or sets the line width in points |
dashStyle | LineDashStyle | Read | Gets or sets the dash style of the line |
customDashPattern | List<Double> | Read | Gets or sets a custom dash pattern as a list of lengths |
capStyle | LineCapStyle | Read | Gets or sets the cap style of the line ends |
style | LineStyle | Read | Gets or sets the overall line style |
alignment | LineAlignment | Read | Gets or sets the line’s alignment relative to its shape |
joinStyle | LineJoinStyle | Read | Gets or sets the style of line joins |
miterLimit | double | Read | Gets or sets the miter limit for sharp joins |
beginArrowheadStyle | LineArrowheadStyle | Read | Gets or sets the style of the beginning arrowhead |
endArrowheadStyle | LineArrowheadStyle | Read | Gets or sets the style of the ending arrowhead |
beginArrowheadWidth | LineArrowheadWidth | Read | Gets or sets the width type of the beginning arrowhead |
endArrowheadWidth | LineArrowheadWidth | Read | Gets or sets the width type of the ending arrowhead |
beginArrowheadLength | LineArrowheadLength | Read | Gets or sets the length type of the beginning arrowhead |
endArrowheadLength | LineArrowheadLength | Read | Gets or sets the length type of the ending arrowhead |
Methods
| Signature | Description |
|---|---|
LineFormat(parentElement: Element, saveCallback: Runnable, lnTag: String) | Creates a new LineFormat backed by the given parent XML element. |
LineFormat(parentElement: Element, saveCallback: Runnable) | Creates a new LineFormat with the default line tag “ln”. |
isFormatNotDefined() → boolean | Returns true when the line format is not defined |
getFillFormat() → ILineFillFormat | Returns the ILineFillFormat that defines the line’s fill |
getWidth() → double | |
setWidth(value: double) | Sets the line width to the specified value in points |
getDashStyle() → LineDashStyle | Returns the current dash style of the line |
setDashStyle(value: LineDashStyle) | Sets the line’s dash style |
getCustomDashPattern() → List<Double> | Returns the custom dash pattern as a list of lengths |
setCustomDashPattern(value: List<Double>) | Defines a custom dash pattern using a list of lengths |
getCapStyle() → LineCapStyle | Returns the line cap style |
setCapStyle(value: LineCapStyle) | Sets the line cap style |
getStyle() → LineStyle | Returns the line style (solid, etc.) |
setStyle(value: LineStyle) | Sets the line style |
getAlignment() → LineAlignment | Returns the line alignment relative to its shape |
setAlignment(value: LineAlignment) | Sets the line alignment |
getJoinStyle() → LineJoinStyle | Returns the line join style |
setJoinStyle(value: LineJoinStyle) | Sets the line join style |
getMiterLimit() → double | |
setMiterLimit(value: double) | Sets the miter limit value |
getBeginArrowheadStyle() → LineArrowheadStyle | Returns the style of the beginning arrowhead |
setBeginArrowheadStyle(value: LineArrowheadStyle) | Sets the beginning arrowhead style |
getEndArrowheadStyle() → LineArrowheadStyle | Returns the style of the ending arrowhead |
setEndArrowheadStyle(value: LineArrowheadStyle) | Sets the ending arrowhead style |
getBeginArrowheadWidth() → LineArrowheadWidth | Returns the width type of the beginning arrowhead |
setBeginArrowheadWidth(value: LineArrowheadWidth) | Sets the width type of the beginning arrowhead |
getEndArrowheadWidth() → LineArrowheadWidth | Returns the width type of the ending arrowhead |
setEndArrowheadWidth(value: LineArrowheadWidth) | Sets the width type of the ending arrowhead |
getBeginArrowheadLength() → LineArrowheadLength | Returns the length type of the beginning arrowhead |
setBeginArrowheadLength(value: LineArrowheadLength) | Sets the length type of the beginning arrowhead |
getEndArrowheadLength() → LineArrowheadLength | |
setEndArrowheadLength(value: LineArrowheadLength) |