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 the Line shape.


Method Summary
 void addTextFrame(java.lang.String text)
          Adds a new TextFrame to a shape.
 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, getAlternativeText, getAnimationSettings, getFillFormat, getHeight, getLineFormat, getLink, getName, getParent, getPlaceholder, getRotation, getTags, getTextFrame, 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
equals, 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