com.aspose.slides
Class LineFormat

java.lang.Object
  extended by com.aspose.slides.LineFormat
All Implemented Interfaces:
ILineFormat, IPresentationComponent, ISlideComponent

public class LineFormat
extends java.lang.Object
implements ILineFormat

Represents format of a line.


Method Summary
 boolean equals(ILineFormat lineFormat)
           Determines whether the two LineFormat instances are equal.
 boolean equals(java.lang.Object obj)
           Determines whether the two LineFormat instances are equal.
 int getAlignment()
           Returns or sets the line alignment.
 int getBeginArrowheadLength()
           Returns or sets the arrowhead length at the beginning of a line.
 int getBeginArrowheadStyle()
           Returns or sets the arrowhead style at the beginning of a line.
 int getBeginArrowheadWidth()
           Returns or sets the arrowhead width at the beginning of a line.
 int getCapStyle()
           Returns or sets the line cap style.
 float[] getCustomDashPattern()
           Returns or sets the custom dash pattern.
 int getDashStyle()
           Returns or sets the line dash style.
 int getEndArrowheadLength()
           Returns or sets the arrowhead length at the end of a line.
 int getEndArrowheadStyle()
           Returns or sets the arrowhead style at the end of a line.
 int getEndArrowheadWidth()
           Returns or sets the arrowhead width at the end of a line.
 ILineFillFormat getFillFormat()
           Returns the fill format of a line.
 int getJoinStyle()
           Returns or sets the lines join style.
 float getMiterLimit()
           Returns or sets the miter limit of a line.
 IPresentation getPresentation()
           Returns the parent presentation of a LineFormat.
 IBaseSlide getSlide()
           Returns the parent slide of a LineFormat.
 int getStyle()
           Returns or sets the line style.
 double getWidth()
           Returns or sets the width of a line.
 int hashCode()
           Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 boolean isFormatNotDefined()
           Returns true if line format is not defined (as just created, default).
 void setAlignment(int value)
           
 void setBeginArrowheadLength(int value)
           
 void setBeginArrowheadStyle(int value)
           
 void setBeginArrowheadWidth(int value)
           
 void setCapStyle(int value)
           
 void setCustomDashPattern(float[] value)
           
 void setDashStyle(int value)
           
 void setEndArrowheadLength(int value)
           
 void setEndArrowheadStyle(int value)
           
 void setEndArrowheadWidth(int value)
           
 void setJoinStyle(int value)
           
 void setMiterLimit(float value)
           
 void setStyle(int value)
           
 void setWidth(double value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFormatNotDefined

public boolean isFormatNotDefined()

Returns true if line format is not defined (as just created, default).

Specified by:
isFormatNotDefined in interface ILineFormat

equals

public boolean equals(java.lang.Object obj)

Determines whether the two LineFormat instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The LineFormat to compare with the current LineFormat.
Returns:
<b>true</b> if the specified LineFormat is equal to the current LineFormat; otherwise, <b>false</b>.

equals

public boolean equals(ILineFormat lineFormat)

Determines whether the two LineFormat instances are equal.

Specified by:
equals in interface ILineFormat
Parameters:
lineFormat - The LineFormat to compare with the current LineFormat.
Returns:
<b>true</b> if the specified LineFormat is equal to the current LineFormat; otherwise, <b>false</b>.

getFillFormat

public ILineFillFormat getFillFormat()

Returns the fill format of a line. Read-only LineFillFormat .

Specified by:
getFillFormat in interface ILineFormat

getWidth

public double getWidth()

Returns or sets the width of a line. Read/write double.

Specified by:
getWidth in interface ILineFormat

setWidth

public void setWidth(double value)
Specified by:
setWidth in interface ILineFormat

getDashStyle

public int getDashStyle()

Returns or sets the line dash style. Read/write LineDashStyle.

Specified by:
getDashStyle in interface ILineFormat

setDashStyle

public void setDashStyle(int value)
Specified by:
setDashStyle in interface ILineFormat

getCustomDashPattern

public float[] getCustomDashPattern()

Returns or sets the custom dash pattern. Read/write float[].

Specified by:
getCustomDashPattern in interface ILineFormat

setCustomDashPattern

public void setCustomDashPattern(float[] value)
Specified by:
setCustomDashPattern in interface ILineFormat

getCapStyle

public int getCapStyle()

Returns or sets the line cap style. Read/write LineCapStyle.

Specified by:
getCapStyle in interface ILineFormat

setCapStyle

public void setCapStyle(int value)
Specified by:
setCapStyle in interface ILineFormat

getStyle

public int getStyle()

Returns or sets the line style. Read/write LineStyle.

Specified by:
getStyle in interface ILineFormat

setStyle

public void setStyle(int value)
Specified by:
setStyle in interface ILineFormat

getAlignment

public int getAlignment()

Returns or sets the line alignment. Read/write LineAlignment.

Specified by:
getAlignment in interface ILineFormat

setAlignment

public void setAlignment(int value)
Specified by:
setAlignment in interface ILineFormat

getJoinStyle

public int getJoinStyle()

Returns or sets the lines join style. Read/write LineJoinStyle.

Specified by:
getJoinStyle in interface ILineFormat

setJoinStyle

public void setJoinStyle(int value)
Specified by:
setJoinStyle in interface ILineFormat

getMiterLimit

public float getMiterLimit()

Returns or sets the miter limit of a line. Read/write float.

Specified by:
getMiterLimit in interface ILineFormat

setMiterLimit

public void setMiterLimit(float value)
Specified by:
setMiterLimit in interface ILineFormat

getBeginArrowheadStyle

public int getBeginArrowheadStyle()

Returns or sets the arrowhead style at the beginning of a line. Read/write LineArrowheadStyle.

Specified by:
getBeginArrowheadStyle in interface ILineFormat

setBeginArrowheadStyle

public void setBeginArrowheadStyle(int value)
Specified by:
setBeginArrowheadStyle in interface ILineFormat

getEndArrowheadStyle

public int getEndArrowheadStyle()

Returns or sets the arrowhead style at the end of a line. Read/write LineArrowheadStyle.

Specified by:
getEndArrowheadStyle in interface ILineFormat

setEndArrowheadStyle

public void setEndArrowheadStyle(int value)
Specified by:
setEndArrowheadStyle in interface ILineFormat

getBeginArrowheadWidth

public int getBeginArrowheadWidth()

Returns or sets the arrowhead width at the beginning of a line. Read/write LineArrowheadWidth.

Specified by:
getBeginArrowheadWidth in interface ILineFormat

setBeginArrowheadWidth

public void setBeginArrowheadWidth(int value)
Specified by:
setBeginArrowheadWidth in interface ILineFormat

getEndArrowheadWidth

public int getEndArrowheadWidth()

Returns or sets the arrowhead width at the end of a line. Read/write LineArrowheadWidth.

Specified by:
getEndArrowheadWidth in interface ILineFormat

setEndArrowheadWidth

public void setEndArrowheadWidth(int value)
Specified by:
setEndArrowheadWidth in interface ILineFormat

getBeginArrowheadLength

public int getBeginArrowheadLength()

Returns or sets the arrowhead length at the beginning of a line. Read/write LineArrowheadLength.

Specified by:
getBeginArrowheadLength in interface ILineFormat

setBeginArrowheadLength

public void setBeginArrowheadLength(int value)
Specified by:
setBeginArrowheadLength in interface ILineFormat

getEndArrowheadLength

public int getEndArrowheadLength()

Returns or sets the arrowhead length at the end of a line. Read/write LineArrowheadLength.

Specified by:
getEndArrowheadLength in interface ILineFormat

setEndArrowheadLength

public void setEndArrowheadLength(int value)
Specified by:
setEndArrowheadLength in interface ILineFormat

hashCode

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:
23456


Overriden to make compiler happy. Always returns constant because object is mutable.


getSlide

public IBaseSlide getSlide()

Returns the parent slide of a LineFormat. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a LineFormat. Read-only Presentation.

Specified by:
getPresentation in interface IPresentationComponent