com.aspose.slides
Class Line

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.Line
All Implemented Interfaces:
IShape, IShapeFormat

public final class Line
extends Shape

Represents the Line shape.


Method Summary
 TextFrame addTextFrame(java.lang.String text)
          Always throws PptEditException because Line can't have a TextFrame.
 boolean equals(java.lang.Object o)
          Returns a value indicating whether this instance is equal to a specified object.
 java.awt.Point getEndPoint()
          Returns the end point of a line.
 java.awt.Point getStartPoint()
          Returns the start point of a line.
 void serialize(java.io.OutputStream stream)
          Serializes the Line object to a stream.
 void setEndPoint(java.awt.Point value)
          Sets the end point of a line.
 void setStartPoint(java.awt.Point value)
          Sets the start point of a line.
 
Methods inherited from class com.aspose.slides.Shape
addLink, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getHeight, getLineFormat, getLink, getMasterShapeId, getName, getParent, getPlaceholder, getProtection, getRotation, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setProtection, setRotation, 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)
               throws PptException
Serializes the Line object to a stream.

Overrides:
serialize in class Shape
Parameters:
stream - stream to which the Line is to be serialized.
Throws:
PptException

getStartPoint

public java.awt.Point getStartPoint()
Returns the start point of a line.


setStartPoint

public void setStartPoint(java.awt.Point value)
Sets the start point of a line.

Parameters:
value - new start point.

getEndPoint

public java.awt.Point getEndPoint()
Returns the end point of a line.


setEndPoint

public void setEndPoint(java.awt.Point value)
Sets the end point of a line.

Parameters:
value - new end point.

addTextFrame

public TextFrame addTextFrame(java.lang.String text)
                       throws PptEditException
Always throws PptEditException because Line can't have a TextFrame.

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

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:
true if object is a Line that has the same coordinates as this instance; otherwise false.