![]() |
||
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.DataLabels
public class DataLabels
DataLabels of specified ASeries, ChartPoint or Trendline.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
|
byte |
getBackgroundMode()
Gets the display mode of the background. |
Font |
getFont()
Gets a Font object of the chart data label. |
byte |
getLabelPosition()
Gets the lable position. |
int |
getNumber()
Gets the built-in display format of numbers and dates. |
java.lang.String |
getNumberFormat()
Gets the format string for the DataLabels object. |
int |
getRotation()
Gets text rotation angel. |
char |
getSeparator()
Get the separator used for the data labels on a chart. |
java.lang.String |
getText()
Sets the text of a frame's title. |
int |
getTextDirection()
Gets the text direction type. |
int |
getTextHorizontalAlignment()
Gets the text horizontal alignment. |
int |
getTextVerticalAlignment()
Gets the text vertical alignment of text. |
int |
getX()
Gets position of DataLabels. |
int |
getY()
Gets position of DataLabels. |
boolean |
isAutoScaleFont()
Check whether the text in the object changes font size when the object size changes. |
boolean |
isBubbleShown()
Indicates whether the chart's data label bubble size display. |
boolean |
isCategoryNameShown()
Indicates whether the chart's data label category name display. |
boolean |
isLegendKeyShown()
Indicates whether the chart's data label legend key display. |
boolean |
isNumberFormatLinked()
Indicates if the number format is linked to the cells(so that the number format changes in the labels when it changes in the cells). |
boolean |
isPercentageShown()
Indicates whether the chart's data label Percentage display. |
boolean |
isSeriesShown()
Indicates whether chart's data label series names display. |
boolean |
isShadow()
Indicates if the frame has a shadow. |
boolean |
isValueShown()
Indicates whether the chart's data label values display. |
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 |
setBubbleShown(boolean isBubbleShown)
Sets whether the chart's data label bubble size display. |
void |
setCategoryNameShown(boolean isCategoryNameShown)
Sets whether the chart's data label category name display. |
void |
setFont(Font font)
Sets a Font object of the chart data label. |
void |
setLabelPosition(byte LablePositionType)
Sets the label postion. |
void |
setLegendKeyShown(boolean isLegendKeyShown)
Sets whether the chart's data label legend key display. |
void |
setNumber(int number)
Sets the built-in display format of numbers and dates. Use built-in numbers for better performance. |
void |
setNumberFormat(java.lang.String format)
Sets the format string for the DataLabels object. |
void |
setNumberFormatLinked(boolean linked)
Sets if the number format is linked to the cells(so that the number format changes in the labels when it changes in the cells). |
void |
setPercentageShown(boolean isPercentageShown)
Sets whether the chart's data label Percentage display. |
void |
setRotation(int rotation)
Sets text rotation angel.Must be between -90 and 90. |
void |
setSeparator(char separator)
Set the separator used for the data labels on a chart. |
void |
setSeriesShown(boolean isSeriesShown)
Sets whether chart's data label series names display. |
void |
setShadow(boolean shadow)
Sets if the frame has a shadow. |
void |
setText(java.lang.String content)
Gets the text of a frame's title. |
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. |
void |
setValueShown(boolean isValueShown)
Sets whether the chart's data label values display. |
void |
setX(int x)
Sets position of DataLabels. |
void |
setY(int y)
Sets position of DataLabels. |
Methods inherited from class com.aspose.cells.ChartFrame |
---|
getArea, getAreaOrNull, getBorder, getBorderOrNull |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object another)
equals
in class ChartFrame
public java.lang.String getText()
CellsException
- if chart has bean removed.public void setText(java.lang.String content)
content
- the text of a frame's title.
CellsException
- if chart has bean removed.public void setSeriesShown(boolean isSeriesShown)
isSeriesShown
- whether chart's data label series names display.
CellsException
- if the series has bean removed.public boolean isSeriesShown()
CellsException
- if the series has bean removed.public void setValueShown(boolean isValueShown)
isValueShown
- whether the chart's data label values display.
CellsException
- if the series has bean removed.public boolean isValueShown()
CellsException
- if the series has bean removed.public void setCategoryNameShown(boolean isCategoryNameShown)
isCategoryNameShown
- whether the chart's data label category name display.
CellsException
- if the series has bean removed.public boolean isCategoryNameShown()
CellsException
- if the series has bean removed.public boolean isPercentageShown()
CellsException
- if the series has bean removed.public void setPercentageShown(boolean isPercentageShown)
isPercentageShown
- whether the chart's data label Percentage display.
CellsException
- if the series has bean removed.public boolean isBubbleShown()
CellsException
- if the series has bean removed.public void setBubbleShown(boolean isBubbleShown)
isBubbleShown
- whether the chart's data label Percentage display.
CellsException
- if the series has bean removed.public boolean isLegendKeyShown()
CellsException
- if the series has bean removed.public void setLegendKeyShown(boolean isLegendKeyShown)
isLegendKeyShown
- whether the chart's data label legend key display.
CellsException
- if the series has bean removed.public byte getLabelPosition()
public void setLabelPosition(byte LablePositionType)
LablePositionType
- the label postion. It must be the const number of LabelPositionType.LabelPositionType
public char getSeparator()
public void setSeparator(char separator)
separator
- valid separators defined in DataLabelsSeparatorTypepublic boolean isShadow()
public void setShadow(boolean shadow)
shadow
- true if the frame has a shadow.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 |
public void setNumber(int number)
number
- the built-in formatting number.
java.lang.IllegalArgumentException
- if number is invalid.
CellsException
- if the series has bean removed.Style.setNumber(int)
public int getNumber()
CellsException
- if the series has bean removed.Style.setNumber(int)
public boolean isNumberFormatLinked()
public void setNumberFormatLinked(boolean linked)
linked
- if the number format is linked to the cellspublic java.lang.String getNumberFormat()
public void setNumberFormat(java.lang.String format)
format
- the format string for the DataLabels object.public Font getFont()
CellsException
- if series has bean removed.public void setFont(Font font)
font
- a Font object of the chart data label.
CellsException
- if series has bean removed.public boolean isAutoScaleFont()
public void setAutoScaleFont(boolean isAutoScaleFont)
isAutoScaleFont
- whether the text in the object changes font size when the object size changes.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 int getX()
setX(int)
public void setX(int x)
x
- According to Chart type:public int getY()
setY(int)
public void setY(int y)
y
- According to Chart type:
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |