charttextarea-ag凯发旗舰厅



com.spire.xls.charts
class charttextarea

java.lang.object
  extended by com.spire.xls.core.spreadsheet.xlsobject
      extended by com.spire.xls.charts.charttextarea
all implemented interfaces:
ichartdatalabels, icharttextarea, ifont, ioptimizedupdate

public class charttextarea
extends xlsobject
implements ichartdatalabels

this class create xls test document text area


constructor summary
charttextarea(icharttextarea textarea, xlsworkbook book)
           
 
method summary
 java.awt.font generatenativefont()
          generates .net font object corresponding to the current font.
 chartbackgroundmode getbackgroundmode()
          display mode of the background.
 java.awt.color getcolor()
          gets font color.
 java.lang.string getdelimiter()
          delimeter.
 fontwrapper getfont()
          returns font impl for current font.
 java.lang.string getfontname()
          returns or sets the font name.
 ichartframeformat getframeformat()
          return format of the text area.
 horizontalaligntype gethorizontalaligntype()
           
 int getindex()
          returns font index.
 excelcolors getknowncolor()
          returns or sets the primary color of the object, as shown in the following table.
 java.lang.string getnumberformat()
          gets or sets number format for the text area.
 int getnumberformatindex()
          gets index to the number format.
 ocolor getocolor()
          returns textarea's color object.
 java.lang.object getparent()
           
 xlsworkbook getparentworkbook()
          returns parent workbook object.
 datalabelpositiontype getposition()
          represents data labels position.
 boolean getshowleaderlines()
          indicates whether leader lines is in data labels.
 double getsize()
          returns the size of the font.
 java.lang.string getstrikethroughtype()
          strikethrough type.
 java.lang.string gettext()
          area's text.
 int gettextrotationangle()
          text rotation angle.
 fontunderlinetype getunderline()
          returns or sets the type of underline applied to the font.
 fontvertialalignmenttype getverticalalignment()
          gets / sets font vertical alignment.
 float getx()
           
 float gety()
           
 boolean hasbubblesize()
          indicates whether buble size is in data labels.
 void hasbubblesize(boolean value)
          indicates whether buble size is in data labels.
 boolean hascategoryname()
          indicates whether category name is in data labels.
 void hascategoryname(boolean value)
          indicates whether category name is in data labels.
 boolean hasdatalabels()
          indicates whether contain datalabels .
 boolean haslegendkey()
          indicates whether legend key is in data labels.
 void haslegendkey(boolean value)
          indicates whether legend key is in data labels.
 boolean haspercentage()
          indicates whether percentage is in data labels.
 void haspercentage(boolean value)
          indicates whether percentage is in data labels.
 boolean hasseriesname()
          indicates whether series name is in data labels.
 void hasseriesname(boolean value)
          indicates whether series name is in data labels.
 boolean hasvalue()
          indicates whether value is in data labels.
 void hasvalue(boolean value)
          indicates whether value is in data labels.
 boolean isautocolor()
          indicates whether color is automatically selected.
 boolean isautomode()
          true if background is set to automatic.
 boolean isbold()
          true if the font is bold.
 void isbold(boolean isbold)
          true if the font is bold.
 boolean isitalic()
          true if the font style is italic.
 void isitalic(boolean value)
          true if the font style is italic.
 boolean isshowlabelpercent()
          indicates whether to show category label and value as percentage.
 void isshowlabelpercent(boolean value)
          indicates whether to show category label and value as percentage.
 boolean isstrikethrough()
          true if the font is struck through with a horizontal line.
 void isstrikethrough(boolean value)
          true if the font is struck through with a horizontal line.
 boolean issubscript()
          true if the font is formatted as subscript.
 void issubscript(boolean value)
          true if the font is formatted as subscript.
 boolean issuperscript()
          true if the font is formatted as superscript.
 void issuperscript(boolean value)
          true if the font is formatted as superscript.
 boolean istrend()
          indicates if current text assign to trend object.
 void istrend(boolean value)
          indicates if current text assign to trend object.
 void setbackgroundmode(chartbackgroundmode value)
          display mode of the background.
 void setcolor(java.awt.color color)
          sets font color.
 void setdelimiter(java.lang.string value)
          delimeter.
 void setfont(excelfont font)
          sets internal font according to the font.
 void setfontname(java.lang.string value)
          returns or sets the font name.
 void sethorizontalaligntype(horizontalaligntype value)
           
 void setknowncolor(excelcolors value)
          returns or sets the primary color of the object, as shown in the following table.
 void setnumberformat(java.lang.string value)
          gets or sets number format for the text area.
 void setposition(datalabelpositiontype value)
          represents data labels position.
 void setsize(double size)
          sets the size of the font.
 void setstrikethroughtype(java.lang.string value)
          strikethrough type.
 void settext(java.lang.string value)
          area's text.
 void settextrotationangle(int textrotationangle)
          sets text rotation angle.
 void setunderline(fontunderlinetype value)
          returns or sets the type of underline applied to the font.
 void setverticalalignment(fontvertialalignmenttype value)
          gets / sets font vertical alignment.
 void setx(float value)
           
 void sety(float value)
           
 
methods inherited from class com.spire.xls.core.spreadsheet.xlsobject
dispose
 
methods inherited from interface com.spire.xls.core.ichartdatalabels
setshowleaderlines
 
methods inherited from interface com.spire.xls.core.interfacess.ioptimizedupdate
beginupdate, endupdate
 
constructor detail

charttextarea

public charttextarea(icharttextarea textarea,
                     xlsworkbook book)
method detail

gettext

public java.lang.string gettext()
area's text.
specified by:
gettext in interface icharttextarea

settext

public void settext(java.lang.string value)
area's text.

gettextrotationangle

public int gettextrotationangle()
text rotation angle.
specified by:
gettextrotationangle in interface icharttextarea

settextrotationangle

public void settextrotationangle(int textrotationangle)
sets text rotation angle.

getframeformat

public ichartframeformat getframeformat()
return format of the text area.
specified by:
getframeformat in interface icharttextarea

getbackgroundmode

public chartbackgroundmode getbackgroundmode()
display mode of the background.
specified by:
getbackgroundmode in interface icharttextarea

setbackgroundmode

public void setbackgroundmode(chartbackgroundmode value)
display mode of the background.

isautomode

public boolean isautomode()
true if background is set to automatic.
specified by:
isautomode in interface icharttextarea

getparent

public java.lang.object getparent()
overrides:
getparent in class xlsobject

isbold

public boolean isbold()
true if the font is bold. read boolean.
specified by:
isbold in interface ifont

isbold

public void isbold(boolean isbold)
true if the font is bold. write boolean.
specified by:
isbold in interface ifont

getknowncolor

public excelcolors getknowncolor()
returns or sets the primary color of the object, as shown in the following table. use the rgb function to create a color value. read / write integer.
specified by:
getknowncolor in interface ifont

setknowncolor

public void setknowncolor(excelcolors value)
returns or sets the primary color of the object, as shown in the following table. use the rgb function to create a color value. read / write integer.
specified by:
setknowncolor in interface ifont

getcolor

public java.awt.color getcolor()
gets font color. searches for the closestes color in the workbook palette.
specified by:
getcolor in interface ifont

setcolor

public void setcolor(java.awt.color color)
sets font color. searches for the closestes color in the workbook palette.
specified by:
setcolor in interface ifont

isitalic

public boolean isitalic()
true if the font style is italic. read / write boolean.
specified by:
isitalic in interface ifont

isitalic

public void isitalic(boolean value)
true if the font style is italic. read / write boolean.
specified by:
isitalic in interface ifont

getsize

public double getsize()
returns the size of the font. read / write variant.
specified by:
getsize in interface ifont

setsize

public void setsize(double size)
sets the size of the font.
specified by:
setsize in interface ifont

isstrikethrough

public boolean isstrikethrough()
true if the font is struck through with a horizontal line. read / write boolean
specified by:
isstrikethrough in interface ifont

isstrikethrough

public void isstrikethrough(boolean value)
true if the font is struck through with a horizontal line. read / write boolean
specified by:
isstrikethrough in interface ifont

issubscript

public boolean issubscript()
true if the font is formatted as subscript. false by default. read / write boolean.
specified by:
issubscript in interface ifont

issubscript

public void issubscript(boolean value)
true if the font is formatted as subscript. false by default. read / write boolean.
specified by:
issubscript in interface ifont

getstrikethroughtype

public java.lang.string getstrikethroughtype()
strikethrough type. read / write sngstrike dblstrike
specified by:
getstrikethroughtype in interface ifont

setstrikethroughtype

public void setstrikethroughtype(java.lang.string value)
strikethrough type. read / write sngstrike dblstrike
specified by:
setstrikethroughtype in interface ifont

issuperscript

public boolean issuperscript()
true if the font is formatted as superscript. false by default. read/write boolean
specified by:
issuperscript in interface ifont

issuperscript

public void issuperscript(boolean value)
true if the font is formatted as superscript. false by default. read/write boolean
specified by:
issuperscript in interface ifont

getunderline

public fontunderlinetype getunderline()
returns or sets the type of underline applied to the font. can be one of the following fontunderlinetypestyle constants. read / write fontunderlinetype.
specified by:
getunderline in interface ifont

setunderline

public void setunderline(fontunderlinetype value)
returns or sets the type of underline applied to the font. can be one of the following fontunderlinetypestyle constants. read / write fontunderlinetype.
specified by:
setunderline in interface ifont

getfontname

public java.lang.string getfontname()
returns or sets the font name. read / write string.
specified by:
getfontname in interface ifont

setfontname

public void setfontname(java.lang.string value)
returns or sets the font name. read / write string.
specified by:
setfontname in interface ifont

getverticalalignment

public fontvertialalignmenttype getverticalalignment()
gets / sets font vertical alignment.
specified by:
getverticalalignment in interface ifont

setverticalalignment

public void setverticalalignment(fontvertialalignmenttype value)
gets / sets font vertical alignment.
specified by:
setverticalalignment in interface ifont

isautocolor

public boolean isautocolor()
indicates whether color is automatically selected. read-only.
specified by:
isautocolor in interface ifont

generatenativefont

public java.awt.font generatenativefont()
generates .net font object corresponding to the current font.
specified by:
generatenativefont in interface ifont
returns:
generated .net font.

getocolor

public ocolor getocolor()
returns textarea's color object. read-only.

getdelimiter

public java.lang.string getdelimiter()
delimeter.
specified by:
getdelimiter in interface ichartdatalabels

setdelimiter

public void setdelimiter(java.lang.string value)
delimeter.
specified by:
setdelimiter in interface ichartdatalabels

hasbubblesize

public boolean hasbubblesize()
indicates whether buble size is in data labels.
specified by:
hasbubblesize in interface ichartdatalabels

hasbubblesize

public void hasbubblesize(boolean value)
indicates whether buble size is in data labels.
specified by:
hasbubblesize in interface ichartdatalabels

hascategoryname

public boolean hascategoryname()
indicates whether category name is in data labels.
specified by:
hascategoryname in interface ichartdatalabels

hascategoryname

public void hascategoryname(boolean value)
indicates whether category name is in data labels.
specified by:
hascategoryname in interface ichartdatalabels

haslegendkey

public boolean haslegendkey()
indicates whether legend key is in data labels.
specified by:
haslegendkey in interface ichartdatalabels

haslegendkey

public void haslegendkey(boolean value)
indicates whether legend key is in data labels.
specified by:
haslegendkey in interface ichartdatalabels

haspercentage

public boolean haspercentage()
indicates whether percentage is in data labels.
specified by:
haspercentage in interface ichartdatalabels

haspercentage

public void haspercentage(boolean value)
indicates whether percentage is in data labels.
specified by:
haspercentage in interface ichartdatalabels

hasseriesname

public boolean hasseriesname()
indicates whether series name is in data labels.
specified by:
hasseriesname in interface ichartdatalabels

hasseriesname

public void hasseriesname(boolean value)
indicates whether series name is in data labels.
specified by:
hasseriesname in interface ichartdatalabels

hasvalue

public boolean hasvalue()
indicates whether value is in data labels.
specified by:
hasvalue in interface ichartdatalabels

hasvalue

public void hasvalue(boolean value)
indicates whether value is in data labels.
specified by:
hasvalue in interface ichartdatalabels

getposition

public datalabelpositiontype getposition()
represents data labels position.
specified by:
getposition in interface ichartdatalabels

setposition

public void setposition(datalabelpositiontype value)
represents data labels position.
specified by:
setposition in interface ichartdatalabels

getshowleaderlines

public boolean getshowleaderlines()
indicates whether leader lines is in data labels.
specified by:
getshowleaderlines in interface ichartdatalabels

getnumberformat

public java.lang.string getnumberformat()
gets or sets number format for the text area.
specified by:
getnumberformat in interface ichartdatalabels

setnumberformat

public void setnumberformat(java.lang.string value)
gets or sets number format for the text area.
specified by:
setnumberformat in interface ichartdatalabels

hasdatalabels

public boolean hasdatalabels()
indicates whether contain datalabels .

gethorizontalaligntype

public horizontalaligntype gethorizontalaligntype()

sethorizontalaligntype

public void sethorizontalaligntype(horizontalaligntype value)

getindex

public int getindex()
returns font index. read-only.

isshowlabelpercent

public boolean isshowlabelpercent()
indicates whether to show category label and value as percentage.

isshowlabelpercent

public void isshowlabelpercent(boolean value)
indicates whether to show category label and value as percentage.

istrend

public boolean istrend()
indicates if current text assign to trend object.

istrend

public void istrend(boolean value)
indicates if current text assign to trend object.

getnumberformatindex

public int getnumberformatindex()
gets index to the number format. read-only.

getparentworkbook

public xlsworkbook getparentworkbook()
returns parent workbook object.

getx

public float getx()

setx

public void setx(float value)

gety

public float gety()

sety

public void sety(float value)

setfont

public void setfont(excelfont font)
sets internal font according to the font.
parameters:
font - font to set.

getfont

public fontwrapper getfont()
returns font impl for current font. read-only.


网站地图