Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Wiki  API  Corporate

com.aspose.powerpoint
Class Background

java.lang.Object
  extended by com.aspose.powerpoint.Shape
      extended by com.aspose.powerpoint.Rectangle
          extended by com.aspose.powerpoint.Background

public final class Background
extends Rectangle

Represents the background of a slide.


Method Summary
 void addTextFrame(java.lang.String text)
          Adds a new TextFrame to a shape.
 int getHeight()
          Returns the height of the background.
 int getRotation()
          Returns the number of degrees the specified shape is rotated around the z-axis.
 int getWidth()
          Returns the width of the background.
 int getX()
          Returns the x-coordinate of the upper-left corner of the background.
 int getY()
          Returns the y-coordinate of the upper-left corner of the background.
 void setHeight(int value)
          Do nothing.
 void setRotation(int value)
          Do nothing.
 void setWidth(int value)
          Do nothing.
 void setX(int value)
          Do nothing.
 void setY(int value)
          Do nothing.
 void zOrder(int cmd)
          Do nothing.
 
Methods inherited from class com.aspose.powerpoint.Rectangle
isMasterTextHolder
 
Methods inherited from class com.aspose.powerpoint.Shape
addLink, clearLink, getAlternativeText, getAnimationSettings, getFillFormat, getLineFormat, getLink, getParent, getTags, getTextFrame, getZOrderPosition, isFlipH, isFlipV, isTextHolder, setAlternativeText, setFlipH, setFlipV
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

zOrder

public void zOrder(int cmd)
Do nothing.

Overrides:
zOrder in class Shape
Parameters:
cmd - specifies where to move the specified shape relative to the other shapes. See ZOrderCmd.

getRotation

public int getRotation()
Returns 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.

Overrides:
getRotation in class Shape
Returns:
Always returns 0 for background.

setRotation

public void setRotation(int value)
Do nothing.

Overrides:
setRotation in class Shape
Parameters:
value - rotation angle.

getX

public int getX()
Returns the x-coordinate of the upper-left corner of the background.

Overrides:
getX in class Shape
Returns:
Always returns 0 for background.

setX

public void setX(int value)
Do nothing.

Overrides:
setX in class Shape
Parameters:
value - new x coordinate.

getY

public int getY()
Returns the y-coordinate of the upper-left corner of the background.

Overrides:
getY in class Shape
Returns:
Always returns 0 for background.

setY

public void setY(int value)
Do nothing.

Overrides:
setY in class Shape
Parameters:
value - new y coordinate.

getWidth

public int getWidth()
Returns the width of the background.

Overrides:
getWidth in class Shape
Returns:
Always returns width of the parent slide.

setWidth

public void setWidth(int value)
Do nothing.

Overrides:
setWidth in class Shape
Parameters:
value - new width.

getHeight

public int getHeight()
Returns the height of the background.

Overrides:
getHeight in class Shape
Returns:
Always returns height of the parent slide.

setHeight

public void setHeight(int value)
Do nothing.

Overrides:
setHeight in class Shape
Parameters:
value - new height.

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