Package io.keikai.model
Interface SCellStyle
- All Known Subinterfaces:
SConditionalStyle,SExtraStyle,SNamedStyle,STableStyleElem
- All Known Implementing Classes:
AbstractCellStyleAdv,CellStyleImpl,ConditionalStyleImpl,ImmutableCellStyleImpl,ImmutableExtraStyleImpl,NamedStyleImpl,TableStyleElemImpl
public interface SCellStyle
Represent style information e.g. alignment, border, format pattern, font, color, fill pattern, wrap text, and hidden status. It may associate with a book or cells.
- Since:
- 3.5.0
- Author:
- dennis
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe horizontal alignmentstatic enumThe vertical alignment -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(SCellStyle src) Deprecated.Gets the horizontal alignmentReturns the bordergetFill()Returns the fillGets the fill/background patterngetFont()intintget the degree of rotation for the text in the cellGets vertical alignmentbooleanbooleanisHidden()booleanisLocked()booleanbooleanbooleanvoidsetAlignment(SCellStyle.Alignment alignment) Deprecated.voidsetBackColor(SColor backColor) Deprecated.voidsetBorderBottom(SBorder.BorderType borderBottom) Deprecated.voidsetBorderBottom(SBorder.BorderType borderBottom, SColor color) Deprecated.voidsetBorderBottomColor(SColor borderBottomColor) Deprecated.voidsetBorderDiagonal(SBorder.BorderType borderDiagonal) Deprecated.voidsetBorderDiagonal(SBorder.BorderType borderDiagonal, SColor color) Deprecated.voidsetBorderDiagonalColor(SColor color) Deprecated.voidsetBorderHorizontal(SBorder.BorderType borderHorizontal) Deprecated.voidsetBorderHorizontal(SBorder.BorderType borderHorizontal, SColor color) Deprecated.voidsetBorderHorizontalColor(SColor color) Deprecated.voidsetBorderLeft(SBorder.BorderType borderLeft) Deprecated.voidsetBorderLeft(SBorder.BorderType borderLeft, SColor color) Deprecated.voidsetBorderLeftColor(SColor borderLeftColor) Deprecated.voidsetBorderRight(SBorder.BorderType borderRight) Deprecated.voidsetBorderRight(SBorder.BorderType borderRight, SColor color) Deprecated.voidsetBorderRightColor(SColor borderRightColor) Deprecated.voidsetBorderTop(SBorder.BorderType borderTop) Deprecated.voidsetBorderTop(SBorder.BorderType borderTop, SColor color) Deprecated.voidsetBorderTopColor(SColor borderTopColor) Deprecated.voidsetBorderVertical(SBorder.BorderType borderVertical) Deprecated.voidsetBorderVertical(SBorder.BorderType borderVertical, SColor color) Deprecated.voidsetBorderVerticalColor(SColor color) Deprecated.voidsetDataFormat(String dataFormat) Deprecated.voidsetDirectDataFormat(String dataFormat) Deprecated.voidsetFillColor(SColor fillColor) Deprecated.voidsetFillPattern(SFill.FillPattern fillPattern) Deprecated.voidDeprecated.voidsetHidden(boolean hidden) Deprecated.voidsetIndention(int indent) Deprecated.voidsetLocked(boolean locked) Deprecated.voidsetRotation(int rotation) Deprecated.voidsetVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment) Deprecated.voidsetWrapText(boolean wrapText) Deprecated.
-
Field Details
-
FORMAT_GENERAL
- See Also:
-
-
Method Details
-
getFillColor
SColor getFillColor()- Returns:
- fill foreground-color
-
getBackColor
SColor getBackColor()- Returns:
- fill background-color
- Since:
- 3.6.0
-
getFillPattern
SFill.FillPattern getFillPattern()Gets the fill/background pattern- Returns:
- the fill pattern
-
getAlignment
SCellStyle.Alignment getAlignment()Gets the horizontal alignment- Returns:
- the horizontal alignment
-
getVerticalAlignment
SCellStyle.VerticalAlignment getVerticalAlignment()Gets vertical alignment- Returns:
-
isWrapText
boolean isWrapText()- Returns:
- true if wrap-text
-
getBorderLeft
SBorder.BorderType getBorderLeft()- Returns:
- left border
-
getBorderTop
SBorder.BorderType getBorderTop()- Returns:
- top border
-
getBorderRight
SBorder.BorderType getBorderRight()- Returns:
- right border
-
getBorderBottom
SBorder.BorderType getBorderBottom()- Returns:
- bottom border
-
getBorderVertical
SBorder.BorderType getBorderVertical()- Returns:
- vertical border
- Since:
- 3.8.0
-
getBorderHorizontal
SBorder.BorderType getBorderHorizontal()- Returns:
- horizontal border
- Since:
- 3.8.0
-
getBorderDiagonal
SBorder.BorderType getBorderDiagonal()- Returns:
- diagonal border
- Since:
- 3.8.0
-
getBorderTopColor
SColor getBorderTopColor()- Returns:
- top border color
-
getBorderLeftColor
SColor getBorderLeftColor()- Returns:
- left border color
-
getBorderBottomColor
SColor getBorderBottomColor()- Returns:
- bottom border color
-
getBorderRightColor
SColor getBorderRightColor()- Returns:
- right border color
-
getBorderVerticalColor
SColor getBorderVerticalColor()- Returns:
- vertical border color
- Since:
- 3.8.0
-
getBorderHorizontalColor
SColor getBorderHorizontalColor()- Returns:
- horizontal border color
- Since:
- 3.8.0
-
getBorderDiagonalColor
SColor getBorderDiagonalColor()- Returns:
- diagonal border color
- Since:
- 3.8.0
-
getDataFormat
String getDataFormat()- Returns:
- data format
-
isDirectDataFormat
boolean isDirectDataFormat()- Returns:
- true if the data format is direct data format, which mean it will not care Locale when formatting
-
isLocked
boolean isLocked()- Returns:
- true if locked
-
isHidden
boolean isHidden()- Returns:
- true if hidden
-
setFillColor
Deprecated. -
setBackColor
Deprecated. -
setFillPattern
Deprecated. -
setAlignment
Deprecated. -
setVerticalAlignment
Deprecated. -
setWrapText
Deprecated. -
setBorderLeft
Deprecated. -
setBorderLeft
Deprecated. -
setBorderTop
Deprecated. -
setBorderTop
Deprecated. -
setBorderRight
Deprecated. -
setBorderRight
Deprecated. -
setBorderBottom
Deprecated. -
setBorderBottom
Deprecated. -
setBorderVertical
Deprecated. -
setBorderVertical
Deprecated. -
setBorderHorizontal
Deprecated. -
setBorderHorizontal
Deprecated. -
setBorderDiagonal
Deprecated. -
setBorderDiagonal
Deprecated. -
setBorderTopColor
Deprecated. -
setBorderLeftColor
Deprecated. -
setBorderBottomColor
Deprecated. -
setBorderRightColor
Deprecated. -
setBorderVerticalColor
Deprecated. -
setBorderHorizontalColor
Deprecated. -
setBorderDiagonalColor
Deprecated. -
setDataFormat
Deprecated. -
setDirectDataFormat
Deprecated. -
setLocked
Deprecated. -
setHidden
Deprecated. -
getFont
SFont getFont() -
setFont
Deprecated. -
copyFrom
Deprecated. -
getRotation
int getRotation()get the degree of rotation for the text in the cell- Returns:
- rotation degrees (between -90 and 90 degrees); 255 means "vertical text"
- Since:
- 3.8.0
-
setRotation
Deprecated. -
getIndention
int getIndention() -
setIndention
Deprecated. -
getBorder
SBorder getBorder()Returns the border- Returns:
- Since:
- 3.8.0
-
getFill
SFill getFill()Returns the fill- Returns:
- Since:
- 3.8.0
-
isShowDiagonalUpBorder
boolean isShowDiagonalUpBorder()- Returns:
- Since:
- 3.8.2
-
isShowDiagonalDownBorder
boolean isShowDiagonalDownBorder()- Returns:
- Since:
- 3.8.2
-