Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class Title

java.lang.Object
  extended by com.aspose.cells.Title

public class Title
extends java.lang.Object

Encapsulates the object that represents the title of chart or axis.


Method Summary
 Area getArea()
          Gets the Area.
 Line getBorder()
          Gets the border Line.
 Font getFont()
          Gets a Font object of title.
 int getRotation()
          Gets text rotation angel.
 java.lang.String getText()
          Sets the text of a frame's title.
 int getTextHorizontalAlignment()
          Gets the text horizontal alignment.
 int getTextVerticalAlignment()
          Gets the text vertical alignment of text.
 void setFont(Font font)
          Sets a Font object of title.
 void setRotation(int rotation)
          Sets text rotation angel.Must be between -90 and 90.
 void setText(java.lang.String text)
          Gets the text of a frame's title.
 void setTextHorizontalAlignment(int textAlignmentType)
          Sets the text horizontal alignment.
 void setTextVerticalAlignment(int textAlignmentType)
          Sets the text vertical alignment of text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()
Sets the text of a frame's title.

Returns:
the text of a frame's title.
Throws:
CellsException - if chart has bean removed.

setText

public void setText(java.lang.String text)
Gets the text of a frame's title.

Parameters:
text - the text of a frame's title.
Throws:
CellsException - if chart has bean removed.

getFont

public Font getFont()
Gets a Font object of title.

Returns:
a Font object.
Throws:
CellsException - if chart has bean removed.

setFont

public void setFont(Font font)
Sets a Font object of title.

Parameters:
font - a Font object.
Throws:
CellsException - if chart has bean removed.

getTextHorizontalAlignment

public int getTextHorizontalAlignment()
Gets the text horizontal alignment.

Returns:
the text horizontal alignment.
Throws:
CellsException - if chart has bean removed.
See Also:
setTextHorizontalAlignment(int)

setTextHorizontalAlignment

public void setTextHorizontalAlignment(int textAlignmentType)
Sets the text horizontal alignment.

Parameters:
textAlignmentType - the text horizontal alignment. It could be one of the following values:
TextAlignmentType.LEFT
TextAlignmentType.CENTER
TextAlignmentType.RIGHT
TextAlignmentType.JUSTIFY
TextAlignmentType.DISTRIBUTED
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if text alignment type is invalid.

getTextVerticalAlignment

public int getTextVerticalAlignment()
Gets the text vertical alignment of text.

Returns:
the text vertical alignment of text.
Throws:
CellsException - if chart has bean removed.
See Also:
setTextVerticalAlignment(int)

setTextVerticalAlignment

public void setTextVerticalAlignment(int textAlignmentType)
Sets the text vertical alignment of text.

Parameters:
textAlignmentType - the text vertical alignment of text. It could be one of the following values:
TextAlignmentType.TOP
TextAlignmentType.CENTER
TextAlignmentType.BOTTOM
TextAlignmentType.JUSTIFY
TextAlignmentType.DISTRIBUTED
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if text alignment type is invalid.

setRotation

public void setRotation(int rotation)
Sets text rotation angel.Must be between -90 and 90.

Parameters:
rotation - text rotation angel.
Throws:
java.lang.IllegalArgumentException - if rotation is not between -90 and 90.
CellsException - if chart has bean removed.

getRotation

public int getRotation()
Gets text rotation angel.

Returns:
text rotation angel.
Throws:
CellsException - if chart has bean removed.

getBorder

public Line getBorder()
Gets the border Line.

Returns:
the border Line.
Throws:
CellsException - if chart has bean removed.

getArea

public Area getArea()
Gets the Area.

Returns:
the Area.
Throws:
CellsException - if chart has bean removed.