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.


Field Summary
 
Fields inherited from class com.aspose.slides.Shape
defaultConnectionPoints, emptyConnectionPoints, emptyShape, m_anchor, m_animationSettings, m_fillFormat, m_frame, m_lineFormat, m_link, m_nFSTVersion, m_options, m_parent, m_shadowFormat, m_shapesParent, m_tags, m_TextFrame, m_version
 
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()
          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, getAnchor, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getFrame, getgeoBottom, getgeoRight, getHeight, getLineFormat, getLink, getMasterShapeId, getName, getOptions, getParent, getPlaceholder, getRotation, getRotation0_360, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setRotation, setWidth, setX, setY, shouldDraw, zOrder
 
Methods inherited from class java.lang.Object
clone, finalize, 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 TextFrame 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.