| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
clone()
Clone.
|
protected java.lang.String |
contentStyle2class(java.util.Map contentCssMap,
java.lang.Object value) |
Style |
deriveBackground(Background background)
更改预定义样式中的背景为指定的背景后返回该样式
|
Style |
deriveBorder(int border_top,
java.awt.Color border_top_color,
int border_bottom,
java.awt.Color border_bottom_color,
int border_left,
java.awt.Color border_left_color,
int border_right,
java.awt.Color border_right_color)
更改预定义样式中的边框后返回该样式
|
Style |
deriveBorderBackgroundNone()
取消预定义样式中的背景并返回该样式
|
Style |
deriveBorderBottom(int border_bottom,
java.awt.Color border_bottom_color)
更改预定义样式中的下边框后返回该样式
|
Style |
deriveBorderLeft(int border_left,
java.awt.Color border_left_color)
更改预定义样式中的左边框后返回该样式
|
Style |
deriveBorderRight(int border_right,
java.awt.Color border_right_color)
更改预定义样式中的右边框后返回该样式
|
Style |
deriveBorderTop(int border_top,
java.awt.Color border_top_color)
更改预定义样式中的上边框后返回该样式
|
Style |
deriveFormat(java.text.Format format)
更改预定义样式中的格式后返回该样式
|
Style |
deriveFRFont(FRFont frFont)
更改预定义样式中的字体后返回该样式
|
Style |
deriveHorizontalAlignment(int horizontal_alignment)
更改预定义样式中的水平对其方式后返回该样式
|
Style |
deriveImageLayout(int imageLayout)
更改预定义样式中的格图片布局方式后返回该样式
|
Style |
deriveLineSpacing(int lineSpacing)
更改预定义样式中的文本控制方式后返回该样式
|
Style |
derivePadding(int paddingLeft,
int paddingRight)
更改预定义样式中的文本缩进后返回该样式
|
Style |
derivePaddingLeft(int paddingLeft)
更改预定义样式中的左缩进格式后返回该样式
|
Style |
derivePaddingRight(int paddingRight)
更改预定义样式中的右缩进格式后返回该样式
|
Style |
deriveRotation(int rotation)
更改预定义样式中的文本旋转角度后返回该样式
|
Style |
deriveSpacingAfter(int spacingAfter)
设置段后间距
|
Style |
deriveSpacingBefore(int spacingBefore)
设置段前间距
|
Style |
deriveTextDirection(int textDirection)
更改预定义样式中的文本方向后返回该样式
|
Style |
deriveTextStyle(int textStyle)
设置单元格展示样式(自动换行, 单行显示, 多行显示等)
|
Style |
deriveVerticalAlignment(int vertical_alignment)
设置垂直方向
|
Style |
deriveVerticalText(int verticalText)
设置单元格垂直方向
|
boolean |
equals(java.lang.Object object)
Equals.
|
Background |
getBackground()
得到背景色
|
int |
getBorderBottom()
得到底部边框高度
|
java.awt.Color |
getBorderBottomColor()
得到底部边框颜色
|
java.lang.String |
getBorderClsCss()
getBorderClsCss
|
int |
getBorderLeft()
得到左边框宽度
|
java.awt.Color |
getBorderLeftColor()
得到左边框颜色
|
int |
getBorderRight()
得到右边框宽度
|
java.awt.Color |
getBorderRightColor()
得到右边框颜色
|
java.util.Map |
getBorderStyleCssMap()
getBorderStyleCssMap
|
int |
getBorderTop()
得到顶边框高度
|
java.awt.Color |
getBorderTopColor()
得到顶边框颜色
|
java.lang.String |
getContentClsCss()
如果单元格内容不为数字或者字符串的时候使用的静态数据
|
java.util.Map |
getContentStyleCssMap()
得到ContentStyleCssMap
|
java.text.Format |
getFormat()
得到文字格式
|
FRFont |
getFRFont()
得到字体
|
int |
getHorizontalAlignment()
得到水平对齐方式
|
int |
getImageLayout()
得到图片展示方式
|
static NameStyle |
getInstance(java.lang.String name)
根据名字从全局配置中获取预定义的样式
|
byte |
getLineSpacing() |
java.lang.String |
getName()
获取预定义样式的名字
|
int |
getPaddingLeft()
get indentation value
|
int |
getPaddingRight()
get indentation value
|
Style |
getRealStyle()
获取该预定义样式,这个方法会每次都从全局配置中读取最新的预定义样式
|
int |
getRotation()
Gets the degree of rotation for the text in the cell
(between -90 and 90 degrees).
|
byte |
getSpacingAfter() |
byte |
getSpacingBefore() |
int |
getTextDirection()
Gets the value of textDirection
|
int |
getTextStyle()
Gets the text style.
|
int |
getVerticalAlignment()
Gets the type of vertical alignment for the cell
|
int |
getVerticalText()
Gets the value of verticalText
|
int |
hashCode()
hashcode值
|
protected java.lang.Object |
readResolve() |
void |
refreshStyle()
刷新预定义样式,重新从全局配置中寻找当前名字对应的样式
|
JSONObject |
toJSONObject(Repository repo,
java.awt.Dimension size)
转成JSON对象
|
border2JSONObject, getBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getContentClsCss, getInstance, getInstance, getInstance, getInstance, modCellStyleString, paintBackground, paintBackground, paintBorder, paintBorder, paintCellStyleString, paintContent, paintContent, paintImageContent, valueInNumberFormat, valueToTextpublic static NameStyle getInstance(java.lang.String name)
name - 预定义样式的名字public java.lang.String getName()
public void refreshStyle()
public Style getRealStyle()
public Style deriveBackground(Background background)
deriveBackground 在类中 Stylebackground - 需要更改成的背景public Style deriveBorder(int border_top, java.awt.Color border_top_color, int border_bottom, java.awt.Color border_bottom_color, int border_left, java.awt.Color border_left_color, int border_right, java.awt.Color border_right_color)
deriveBorder 在类中 Styleborder_top - 顶部边框高度border_top_color - 顶部边框颜色border_bottom - 底部边框高度border_bottom_color - 底部边框颜色border_left - 左部边框高度border_left_color - 左部边框颜色border_right - 右部边框高度border_right_color - 右部边框颜色public Style deriveBorderBackgroundNone()
deriveBorderBackgroundNone 在类中 Stylepublic Style deriveBorderBottom(int border_bottom, java.awt.Color border_bottom_color)
deriveBorderBottom 在类中 Styleborder_bottom - 底部边框高度border_bottom_color - 底部边框颜色public Style deriveBorderLeft(int border_left, java.awt.Color border_left_color)
deriveBorderLeft 在类中 Styleborder_left - 左边边框宽度border_left_color - 左边边框颜色public Style deriveBorderRight(int border_right, java.awt.Color border_right_color)
deriveBorderRight 在类中 Styleborder_right - 右边边框宽度border_right_color - 右边边框颜色public Style deriveBorderTop(int border_top, java.awt.Color border_top_color)
deriveBorderTop 在类中 Styleborder_top - 顶部边框高度border_top_color - 顶部边框颜色public Style deriveFormat(java.text.Format format)
deriveFormat 在类中 Styleformat - 文字格式public Style deriveFRFont(FRFont frFont)
deriveFRFont 在类中 StylefrFont - 字体public Style deriveHorizontalAlignment(int horizontal_alignment)
deriveHorizontalAlignment 在类中 Stylehorizontal_alignment - 水平方向位置public Style deriveImageLayout(int imageLayout)
deriveImageLayout 在类中 StyleimageLayout - 图片展示方式Constants.IMAGE_TILED,
Constants.IMAGE_CENTER,
Constants.IMAGE_EXTENDpublic Style deriveLineSpacing(int lineSpacing)
deriveLineSpacing 在类中 StylelineSpacing - 行间距public Style derivePadding(int paddingLeft, int paddingRight)
derivePadding 在类中 StylepaddingLeft - 左缩进paddingRight - 右缩进public Style derivePaddingLeft(int paddingLeft)
derivePaddingLeft 在类中 StylepaddingLeft - 左缩进public Style derivePaddingRight(int paddingRight)
derivePaddingRight 在类中 StylepaddingRight - 右缩进public Style deriveRotation(int rotation)
deriveRotation 在类中 Stylerotation - 旋转方向 the new rotation of cell (between -90 and 90 degrees).public Style deriveSpacingAfter(int spacingAfter)
deriveSpacingAfter 在类中 StylespacingAfter - 段后间距dpublic Style deriveSpacingBefore(int spacingBefore)
deriveSpacingBefore 在类中 StylespacingBefore - 段前间距dpublic Style deriveTextDirection(int textDirection)
deriveTextDirection 在类中 StyletextDirection - 文本方向wpublic Style deriveTextStyle(int textStyle)
deriveTextStyle 在类中 StyletextStyle - 文字样式Style.TEXTSTYLE_WRAPTEXT,
Style.TEXTSTYLE_SINGLELINE,
Style.TEXTSTYLE_SINGLELINEADJUSTFONT,
Style.TEXTSTYLE_MULTILINEADJUSTFONTpublic Style deriveVerticalAlignment(int vertical_alignment)
deriveVerticalAlignment 在类中 Stylevertical_alignment - 垂直方向cConstants.TOP,
Constants.CENTER,
Constants.BOTTOMpublic Style deriveVerticalText(int verticalText)
deriveVerticalText 在类中 StyleverticalText - 垂直方向cpublic Background getBackground()
getBackground 在类中 Stylepublic int getBorderBottom()
getBorderBottom 在类中 StyleConstants.LINE_NONE,
Constants.LINE_THIN,
Constants.LINE_MEDIUM,
Constants.LINE_DASH,
Constants.LINE_HAIR,
Constants.LINE_HAIR2,
Constants.LINE_THICK,
Constants.LINE_DOUBLE,
Constants.LINE_DOT,
Constants.LINE_MEDIUM_DASH,
Constants.LINE_DASH_DOT,
Constants.LINE_MEDIUM_DASH_DOT,
Constants.LINE_DASH_DOT_DOT,
Constants.LINE_MEDIUM_DASH_DOT_DOT,
Constants.LINE_SLANTED_DASH_DOTpublic java.awt.Color getBorderBottomColor()
getBorderBottomColor 在类中 Stylepublic int getBorderLeft()
getBorderLeft 在类中 StyleConstants.LINE_NONE,
Constants.LINE_THIN,
Constants.LINE_MEDIUM,
Constants.LINE_DASH,
Constants.LINE_HAIR,
Constants.LINE_HAIR2,
Constants.LINE_THICK,
Constants.LINE_DOUBLE,
Constants.LINE_DOT,
Constants.LINE_MEDIUM_DASH,
Constants.LINE_DASH_DOT,
Constants.LINE_MEDIUM_DASH_DOT,
Constants.LINE_DASH_DOT_DOT,
Constants.LINE_MEDIUM_DASH_DOT_DOT,
Constants.LINE_SLANTED_DASH_DOTpublic java.awt.Color getBorderLeftColor()
getBorderLeftColor 在类中 Stylepublic int getBorderRight()
getBorderRight 在类中 StyleConstants.LINE_NONE,
Constants.LINE_THIN,
Constants.LINE_MEDIUM,
Constants.LINE_DASH,
Constants.LINE_HAIR,
Constants.LINE_HAIR2,
Constants.LINE_THICK,
Constants.LINE_DOUBLE,
Constants.LINE_DOT,
Constants.LINE_MEDIUM_DASH,
Constants.LINE_DASH_DOT,
Constants.LINE_MEDIUM_DASH_DOT,
Constants.LINE_DASH_DOT_DOT,
Constants.LINE_MEDIUM_DASH_DOT_DOT,
Constants.LINE_SLANTED_DASH_DOTpublic java.awt.Color getBorderRightColor()
getBorderRightColor 在类中 Stylepublic int getBorderTop()
getBorderTop 在类中 StyleConstants.LINE_NONE,
Constants.LINE_THIN,
Constants.LINE_MEDIUM,
Constants.LINE_DASH,
Constants.LINE_HAIR,
Constants.LINE_HAIR2,
Constants.LINE_THICK,
Constants.LINE_DOUBLE,
Constants.LINE_DOT,
Constants.LINE_MEDIUM_DASH,
Constants.LINE_DASH_DOT,
Constants.LINE_MEDIUM_DASH_DOT,
Constants.LINE_DASH_DOT_DOT,
Constants.LINE_MEDIUM_DASH_DOT_DOT,
Constants.LINE_SLANTED_DASH_DOTpublic java.awt.Color getBorderTopColor()
getBorderTopColor 在类中 Stylepublic int getHorizontalAlignment()
public int getImageLayout()
getImageLayout 在类中 StyleConstants.IMAGE_TILED,
Constants.IMAGE_CENTER,
Constants.IMAGE_EXTENDpublic java.lang.String getContentClsCss()
getContentClsCss 在类中 Stylepublic java.util.Map getContentStyleCssMap()
getContentStyleCssMap 在类中 Stylepublic java.lang.String getBorderClsCss()
StylegetBorderClsCss 在类中 Stylepublic java.util.Map getBorderStyleCssMap()
StylegetBorderStyleCssMap 在类中 Stylepublic int getPaddingLeft()
StylegetPaddingLeft 在类中 Stylepublic int getPaddingRight()
StylegetPaddingRight 在类中 Stylepublic byte getSpacingAfter()
getSpacingAfter 在类中 Stylepublic byte getSpacingBefore()
getSpacingBefore 在类中 Stylepublic byte getLineSpacing()
getLineSpacing 在类中 Stylepublic int getRotation()
StylegetRotation 在类中 Stylepublic int getTextDirection()
StylegetTextDirection 在类中 Stylepublic int getTextStyle()
Stylepublic int getVerticalAlignment()
StylegetVerticalAlignment 在类中 StyleConstants.TOP,
Constants.CENTER,
Constants.BOTTOMpublic int getVerticalText()
StylegetVerticalText 在类中 Stylepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
protected java.lang.Object readResolve()
throws java.io.InvalidObjectException
readResolve 在类中 Stylejava.io.InvalidObjectExceptionpublic JSONObject toJSONObject(Repository repo, java.awt.Dimension size) throws JSONException
toJSONObject 在类中 Stylerepo - 保存上下文环境的对象size - cell大小JSONException - json异常protected java.lang.String contentStyle2class(java.util.Map contentCssMap,
java.lang.Object value)
contentStyle2class 在类中 Style