![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.ChartFrame
com.aspose.cells.DisplayUnitLabel
public class DisplayUnitLabel
Method Summary | |
---|---|
byte |
getBackgroundMode()
Gets the display mode of the background. |
Font |
getFont()
Gets a Font object of title. |
int |
getRotation()
Gets text rotation angel. |
java.lang.String |
getText()
Sets the text of label. |
int |
getTextDirection()
Gets the text direction type. |
int |
getTextHorizontalAlignment()
Gets the text horizontal alignment. |
int |
getTextVerticalAlignment()
Gets the text vertical alignment of text. |
boolean |
isAutoScaleFont()
Check whether the text in the object changes font size when the object size changes. |
boolean |
isShadow()
Indicates if the frame has a shadow. |
void |
setAutoScaleFont(boolean isAutoScaleFont)
Set whether the text in the object changes font size when the object size changes. |
void |
setBackgroundMode(byte mode)
Sets the display mode of the background. |
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 |
setShadow(boolean shadow)
Sets if the frame has a shadow. |
void |
setText(java.lang.String content)
Gets the text of label. |
void |
setTextDirection(int directionType)
Sets the text direction type. |
void |
setTextHorizontalAlignment(int textAlignmentType)
Sets the text horizontal alignment. |
void |
setTextVerticalAlignment(int textAlignmentType)
Sets the text vertical alignment of text. |
Methods inherited from class com.aspose.cells.ChartFrame |
---|
equals, getArea, getAreaOrNull, getBorder, getBorderOrNull |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getText()
CellsException
- if chart has bean removed.public void setText(java.lang.String content)
content
- the text of label.
CellsException
- if chart has bean removed.public Font getFont()
CellsException
- if chart has bean removed.public void setFont(Font font)
font
- a Font object.
CellsException
- if chart has bean removed.public boolean isAutoScaleFont()
public void setAutoScaleFont(boolean isAutoScaleFont)
isAutoScaleFont
- true if the text in the object changes font size when the object size changes.public boolean isShadow()
public void setShadow(boolean shadow)
shadow
- true if the frame has a shadow.public int getTextHorizontalAlignment()
CellsException
- if chart has bean removed.setTextHorizontalAlignment(int)
public void setTextHorizontalAlignment(int textAlignmentType)
textAlignmentType
- the text horizontal alignment.
It could be one of the
following values: TextAlignmentType.LEFT |
TextAlignmentType.CENTER |
TextAlignmentType.RIGHT |
TextAlignmentType.JUSTIFY |
TextAlignmentType.DISTRIBUTED |
CellsException
- if chart has bean removed.
java.lang.IllegalArgumentException
- if test alignment type is invalid.public int getTextVerticalAlignment()
CellsException
- if chart has bean removed.setTextVerticalAlignment(int)
public void setTextVerticalAlignment(int textAlignmentType)
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 |
CellsException
- if chart has bean removed.
java.lang.IllegalArgumentException
- if test alignment type is invalid.public int getRotation()
CellsException
- if chart has bean removed.public void setRotation(int rotation)
rotation
- text rotation angel.
java.lang.IllegalArgumentException
- if rotation is not between -90 and 90.
CellsException
- if chart has bean removed.public int getTextDirection()
TextDirectionType
public void setTextDirection(int directionType)
directionType
- the direction type.
It must be one of the following values:
TextDirectionType.CONTEXT |
TextDirectionType.LEFT_TO_RIGHT |
TextDirectionType.RIGHT_TO_LEFT |
java.lang.IllegalArgumentException
- if the direction type is invalid.TextDirectionType
public byte getBackgroundMode()
setBackgroundMode(byte)
public void setBackgroundMode(byte mode)
mode
- the display mode of the background. It could be one of following:
BackgroundMode.AUTOMATIC |
BackgroundMode.TRANSPARENT |
BackgroundMode.OPAQUE |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |