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
 void 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()
          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 a Line object to the 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, getName, getParent, getPlaceholder, getRotation, getShadowFormat, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, 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 a Line object to the stream.

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

getStartPoint

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

Returns:
The start point.

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.

Returns:
The end point.

setEndPoint

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

Parameters:
value - new end point.

addTextFrame

public void addTextFrame(java.lang.String text)
                  throws PptEditException
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.
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.