LineFormat

Overview

LineFormat is a class in Aspose.Slides FOSS for Java. Inherits from: ILineFormat.

Represents format of a line.

Properties

NameTypeAccessDescription
formatNotDefinedbooleanReadIndicates whether the line format is undefined
fillFormatILineFillFormatReadProvides access to the line’s fill format
widthdoubleReadGets or sets the line width in points
dashStyleLineDashStyleReadGets or sets the dash style of the line
customDashPatternList<Double>ReadGets or sets a custom dash pattern as a list of lengths
capStyleLineCapStyleReadGets or sets the cap style of the line ends
styleLineStyleReadGets or sets the overall line style
alignmentLineAlignmentReadGets or sets the line’s alignment relative to its shape
joinStyleLineJoinStyleReadGets or sets the style of line joins
miterLimitdoubleReadGets or sets the miter limit for sharp joins
beginArrowheadStyleLineArrowheadStyleReadGets or sets the style of the beginning arrowhead
endArrowheadStyleLineArrowheadStyleReadGets or sets the style of the ending arrowhead
beginArrowheadWidthLineArrowheadWidthReadGets or sets the width type of the beginning arrowhead
endArrowheadWidthLineArrowheadWidthReadGets or sets the width type of the ending arrowhead
beginArrowheadLengthLineArrowheadLengthReadGets or sets the length type of the beginning arrowhead
endArrowheadLengthLineArrowheadLengthReadGets or sets the length type of the ending arrowhead

Methods

SignatureDescription
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()booleanReturns true when the line format is not defined
getFillFormat()ILineFillFormatReturns the ILineFillFormat that defines the line’s fill
getWidth()double
setWidth(value: double)Sets the line width to the specified value in points
getDashStyle()LineDashStyleReturns 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()LineCapStyleReturns the line cap style
setCapStyle(value: LineCapStyle)Sets the line cap style
getStyle()LineStyleReturns the line style (solid, etc.)
setStyle(value: LineStyle)Sets the line style
getAlignment()LineAlignmentReturns the line alignment relative to its shape
setAlignment(value: LineAlignment)Sets the line alignment
getJoinStyle()LineJoinStyleReturns the line join style
setJoinStyle(value: LineJoinStyle)Sets the line join style
getMiterLimit()double
setMiterLimit(value: double)Sets the miter limit value
getBeginArrowheadStyle()LineArrowheadStyleReturns the style of the beginning arrowhead
setBeginArrowheadStyle(value: LineArrowheadStyle)Sets the beginning arrowhead style
getEndArrowheadStyle()LineArrowheadStyleReturns the style of the ending arrowhead
setEndArrowheadStyle(value: LineArrowheadStyle)Sets the ending arrowhead style
getBeginArrowheadWidth()LineArrowheadWidthReturns the width type of the beginning arrowhead
setBeginArrowheadWidth(value: LineArrowheadWidth)Sets the width type of the beginning arrowhead
getEndArrowheadWidth()LineArrowheadWidthReturns the width type of the ending arrowhead
setEndArrowheadWidth(value: LineArrowheadWidth)Sets the width type of the ending arrowhead
getBeginArrowheadLength()LineArrowheadLengthReturns the length type of the beginning arrowhead
setBeginArrowheadLength(value: LineArrowheadLength)Sets the length type of the beginning arrowhead
getEndArrowheadLength()LineArrowheadLength
setEndArrowheadLength(value: LineArrowheadLength)

See Also