LineFormat
Inheritance: java.lang.Object, com.aspose.slides.PVIObject
All Implemented Interfaces: com.aspose.slides.ILineFormat
public final class LineFormat extends PVIObject implements ILineFormat
Represents format of a line.
Methods
Method | Description |
---|---|
getVersion() | |
equals(Object obj) | |
isFormatNotDefined() | Returns true if line format is not defined (as just created, default). |
getFillFormat() | Returns the fill format of a line. |
getSketchFormat() | Returns the sketch format of a line. |
getWidth() | Returns or sets the width of a line. |
setWidth(double value) | Returns or sets the width of a line. |
getDashStyle() | Returns or sets the line dash style. |
setDashStyle(byte value) | Returns or sets the line dash style. |
getCustomDashPattern() | Returns or sets the custom dash pattern. |
setCustomDashPattern(float[] value) | Returns or sets the custom dash pattern. |
getCapStyle() | Returns or sets the line cap style. |
setCapStyle(byte value) | Returns or sets the line cap style. |
getStyle() | Returns or sets the line style. |
setStyle(byte value) | Returns or sets the line style. |
getAlignment() | Returns or sets the line alignment. |
setAlignment(byte value) | Returns or sets the line alignment. |
getJoinStyle() | Returns or sets the lines join style. |
setJoinStyle(byte value) | Returns or sets the lines join style. |
getMiterLimit() | Returns or sets the miter limit of a line. |
setMiterLimit(float value) | Returns or sets the miter limit of a line. |
getBeginArrowheadStyle() | Returns or sets the arrowhead style at the beginning of a line. |
setBeginArrowheadStyle(byte value) | Returns or sets the arrowhead style at the beginning of a line. |
getEndArrowheadStyle() | Returns or sets the arrowhead style at the end of a line. |
setEndArrowheadStyle(byte value) | Returns or sets the arrowhead style at the end of a line. |
getBeginArrowheadWidth() | Returns or sets the arrowhead width at the beginning of a line. |
setBeginArrowheadWidth(byte value) | Returns or sets the arrowhead width at the beginning of a line. |
getEndArrowheadWidth() | Returns or sets the arrowhead width at the end of a line. |
setEndArrowheadWidth(byte value) | Returns or sets the arrowhead width at the end of a line. |
getBeginArrowheadLength() | Returns or sets the arrowhead length at the beginning of a line. |
setBeginArrowheadLength(byte value) | Returns or sets the arrowhead length at the beginning of a line. |
getEndArrowheadLength() | Returns or sets the arrowhead length at the end of a line. |
setEndArrowheadLength(byte value) | Returns or sets the arrowhead length at the end of a line. |
equals(ILineFormat lineFormat) | Determines whether the two LineFormat instances are equal. |
getEffective() | Gets effective line formatting data with the inheritance applied. |
getVersion()
public long getVersion()
Version. Read-only long.
Returns: long
equals(Object obj)
public boolean equals(Object obj)
Compares with specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
isFormatNotDefined()
public final boolean isFormatNotDefined()
Returns true if line format is not defined (as just created, default). Read-only boolean .
Returns: boolean
getFillFormat()
public final ILineFillFormat getFillFormat()
Returns the fill format of a line. Read-only ILineFillFormat.
Returns: ILineFillFormat
getSketchFormat()
public final ISketchFormat getSketchFormat()
Returns the sketch format of a line. Read-only ILineFillFormat.
Returns: ISketchFormat
getWidth()
public final double getWidth()
Returns or sets the width of a line. Read/write double .
Returns: double
setWidth(double value)
public final void setWidth(double value)
Returns or sets the width of a line. Read/write double .
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
getDashStyle()
public final byte getDashStyle()
Returns or sets the line dash style. Read/write LineDashStyle.
Returns: byte
setDashStyle(byte value)
public final void setDashStyle(byte value)
Returns or sets the line dash style. Read/write LineDashStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getCustomDashPattern()
public final float[] getCustomDashPattern()
Returns or sets the custom dash pattern. Read/write float[] .
Returns: float[]
setCustomDashPattern(float[] value)
public final void setCustomDashPattern(float[] value)
Returns or sets the custom dash pattern. Read/write float[] .
Parameters:
Parameter | Type | Description |
---|---|---|
value | float[] |
getCapStyle()
public final byte getCapStyle()
Returns or sets the line cap style. Read/write LineCapStyle.
Returns: byte
setCapStyle(byte value)
public final void setCapStyle(byte value)
Returns or sets the line cap style. Read/write LineCapStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getStyle()
public final byte getStyle()
Returns or sets the line style. Read/write LineStyle.
Returns: byte
setStyle(byte value)
public final void setStyle(byte value)
Returns or sets the line style. Read/write LineStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getAlignment()
public final byte getAlignment()
Returns or sets the line alignment. Read/write LineAlignment.
Returns: byte
setAlignment(byte value)
public final void setAlignment(byte value)
Returns or sets the line alignment. Read/write LineAlignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getJoinStyle()
public final byte getJoinStyle()
Returns or sets the lines join style. Read/write LineJoinStyle.
Returns: byte
setJoinStyle(byte value)
public final void setJoinStyle(byte value)
Returns or sets the lines join style. Read/write LineJoinStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getMiterLimit()
public final float getMiterLimit()
Returns or sets the miter limit of a line. Read/write float .
Returns: float
setMiterLimit(float value)
public final void setMiterLimit(float value)
Returns or sets the miter limit of a line. Read/write float .
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getBeginArrowheadStyle()
public final byte getBeginArrowheadStyle()
Returns or sets the arrowhead style at the beginning of a line. Read/write LineArrowheadStyle.
Returns: byte
setBeginArrowheadStyle(byte value)
public final void setBeginArrowheadStyle(byte value)
Returns or sets the arrowhead style at the beginning of a line. Read/write LineArrowheadStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getEndArrowheadStyle()
public final byte getEndArrowheadStyle()
Returns or sets the arrowhead style at the end of a line. Read/write LineArrowheadStyle.
Returns: byte
setEndArrowheadStyle(byte value)
public final void setEndArrowheadStyle(byte value)
Returns or sets the arrowhead style at the end of a line. Read/write LineArrowheadStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getBeginArrowheadWidth()
public final byte getBeginArrowheadWidth()
Returns or sets the arrowhead width at the beginning of a line. Read/write LineArrowheadWidth.
Returns: byte
setBeginArrowheadWidth(byte value)
public final void setBeginArrowheadWidth(byte value)
Returns or sets the arrowhead width at the beginning of a line. Read/write LineArrowheadWidth.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getEndArrowheadWidth()
public final byte getEndArrowheadWidth()
Returns or sets the arrowhead width at the end of a line. Read/write LineArrowheadWidth.
Returns: byte
setEndArrowheadWidth(byte value)
public final void setEndArrowheadWidth(byte value)
Returns or sets the arrowhead width at the end of a line. Read/write LineArrowheadWidth.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getBeginArrowheadLength()
public final byte getBeginArrowheadLength()
Returns or sets the arrowhead length at the beginning of a line. Read/write LineArrowheadLength.
Returns: byte
setBeginArrowheadLength(byte value)
public final void setBeginArrowheadLength(byte value)
Returns or sets the arrowhead length at the beginning of a line. Read/write LineArrowheadLength.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getEndArrowheadLength()
public final byte getEndArrowheadLength()
Returns or sets the arrowhead length at the end of a line. Read/write LineArrowheadLength.
Returns: byte
setEndArrowheadLength(byte value)
public final void setEndArrowheadLength(byte value)
Returns or sets the arrowhead length at the end of a line. Read/write LineArrowheadLength.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
equals(ILineFormat lineFormat)
public final boolean equals(ILineFormat lineFormat)
Determines whether the two LineFormat instances are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
lineFormat | ILineFormat | The LineFormat to compare with the current LineFormat. |
Returns: boolean - true if the specified LineFormat is equal to the current LineFormat; otherwise, false.
getEffective()
public final ILineFormatEffectiveData getEffective()
Gets effective line formatting data with the inheritance applied.
This example demonstrates getting shape's effective line format properties. Presentation pres = new Presentation("MyPresentation.pptx"); try { ILineFormatEffectiveData effectiveLineFormat = pres.getSlides().get_Item(0).getShapes().get_Item(0).getLineFormat().getEffective(); System.out.println("Style: " + effectiveLineFormat.getStyle()); System.out.println("Width: " + effectiveLineFormat.getWidth()); System.out.println("Fill type: " + effectiveLineFormat.getFillFormat().getFillType()); } finally { if (pres != null) pres.dispose(); }
Returns: ILineFormatEffectiveData - A ILineFormatEffectiveData.