com.aspose.slides
Class Line

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.Line

public final class Line
extends Shape

Represents a Line shape.


Method Summary
 TextFrame addTextFrame(java.lang.String text)
           Adds a new TextFrame to a shape.
 boolean equals(java.lang.Object o)
           Returns a value indicating whether this instance is equal to a specified object.
 java.awt.Point getEndPoint()
           
 boolean getFlipHorizontal()
           <b>True</b> if a shape was flipped horizontally.
 boolean getFlipVertical()
           <b>True</b> if a shape was flipped vertically.
 int getRotation()
           Returns or sets the number of degrees the specified shape is rotated around the z-axis.
 java.awt.Point getStartPoint()
           
 void serialize(java.io.OutputStream stream)
           
 void setEndPoint(java.awt.Point value)
           
 void setFlipHorizontal(boolean value)
           
 void setFlipVertical(boolean value)
           
 void setRotation(int value)
           
 void setStartPoint(java.awt.Point value)
           
 
Methods inherited from class com.aspose.slides.Shape
addLink, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getFlipH, getFlipV, getHeight, getHidden, getLineFormat, getLink, getMasterShapeId, getName, getParent, getParentSlide, getPlaceholder, getProtection, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setProtection, setWidth, setX, setY, zOrder
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serialize

public void serialize(java.io.OutputStream stream)
Overrides:
serialize in class Shape

getStartPoint

public java.awt.Point getStartPoint()

setStartPoint

public void setStartPoint(java.awt.Point value)

getEndPoint

public java.awt.Point getEndPoint()

setEndPoint

public void setEndPoint(java.awt.Point value)

addTextFrame

public TextFrame addTextFrame(java.lang.String text)

Adds a new TextFrame to a shape. If shape already has TextFrame then do nothing.

Overrides:
addTextFrame in class Shape
Parameters:
text - Default text for a new TextFrame.

equals

public boolean equals(java.lang.Object o)

Returns a value indicating whether this instance is equal to a specified object.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with this instance.
Returns:
<b>True</b> if o is a Line that has the same coordinates as this instance; otherwise, <b>false</b>.

getFlipHorizontal

public boolean getFlipHorizontal()

<b>True</b> if a shape was flipped horizontally. Read/write bool.

Overrides:
getFlipHorizontal in class Shape

setFlipHorizontal

public void setFlipHorizontal(boolean value)
Overrides:
setFlipHorizontal in class Shape

getFlipVertical

public boolean getFlipVertical()

<b>True</b> if a shape was flipped vertically. Read/write bool.

Overrides:
getFlipVertical in class Shape

setFlipVertical

public void setFlipVertical(boolean value)
Overrides:
setFlipVertical in class Shape

getRotation

public int getRotation()

Returns or sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read/write int.

Overrides:
getRotation in class Shape

setRotation

public void setRotation(int value)
Overrides:
setRotation in class Shape