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 SCellStyleRepresent 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 Classes Modifier and Type Interface Description static classSCellStyle.AlignmentThe horizontal alignmentstatic classSCellStyle.VerticalAlignmentThe vertical alignment
-
Field Summary
Fields Modifier and Type Field Description static StringFORMAT_GENERAL
-
Method Summary
-
-
-
Field Detail
-
FORMAT_GENERAL
static final String FORMAT_GENERAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 void setFillColor(SColor fillColor)
Deprecated.
-
setBackColor
@Deprecated void setBackColor(SColor backColor)
Deprecated.
-
setFillPattern
@Deprecated void setFillPattern(SFill.FillPattern fillPattern)
Deprecated.
-
setAlignment
@Deprecated void setAlignment(SCellStyle.Alignment alignment)
Deprecated.
-
setVerticalAlignment
@Deprecated void setVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment)
Deprecated.
-
setWrapText
@Deprecated void setWrapText(boolean wrapText)
Deprecated.
-
setBorderLeft
@Deprecated void setBorderLeft(SBorder.BorderType borderLeft)
Deprecated.
-
setBorderLeft
@Deprecated void setBorderLeft(SBorder.BorderType borderLeft, SColor color)
Deprecated.
-
setBorderTop
@Deprecated void setBorderTop(SBorder.BorderType borderTop)
Deprecated.
-
setBorderTop
@Deprecated void setBorderTop(SBorder.BorderType borderTop, SColor color)
Deprecated.
-
setBorderRight
@Deprecated void setBorderRight(SBorder.BorderType borderRight)
Deprecated.
-
setBorderRight
@Deprecated void setBorderRight(SBorder.BorderType borderRight, SColor color)
Deprecated.
-
setBorderBottom
@Deprecated void setBorderBottom(SBorder.BorderType borderBottom)
Deprecated.
-
setBorderBottom
@Deprecated void setBorderBottom(SBorder.BorderType borderBottom, SColor color)
Deprecated.
-
setBorderVertical
@Deprecated void setBorderVertical(SBorder.BorderType borderVertical)
Deprecated.
-
setBorderVertical
@Deprecated void setBorderVertical(SBorder.BorderType borderVertical, SColor color)
Deprecated.
-
setBorderHorizontal
@Deprecated void setBorderHorizontal(SBorder.BorderType borderHorizontal)
Deprecated.
-
setBorderHorizontal
@Deprecated void setBorderHorizontal(SBorder.BorderType borderHorizontal, SColor color)
Deprecated.
-
setBorderDiagonal
@Deprecated void setBorderDiagonal(SBorder.BorderType borderDiagonal)
Deprecated.
-
setBorderDiagonal
@Deprecated void setBorderDiagonal(SBorder.BorderType borderDiagonal, SColor color)
Deprecated.
-
setBorderTopColor
@Deprecated void setBorderTopColor(SColor borderTopColor)
Deprecated.
-
setBorderLeftColor
@Deprecated void setBorderLeftColor(SColor borderLeftColor)
Deprecated.
-
setBorderBottomColor
@Deprecated void setBorderBottomColor(SColor borderBottomColor)
Deprecated.
-
setBorderRightColor
@Deprecated void setBorderRightColor(SColor borderRightColor)
Deprecated.
-
setBorderVerticalColor
@Deprecated void setBorderVerticalColor(SColor color)
Deprecated.
-
setBorderHorizontalColor
@Deprecated void setBorderHorizontalColor(SColor color)
Deprecated.
-
setBorderDiagonalColor
@Deprecated void setBorderDiagonalColor(SColor color)
Deprecated.
-
setDataFormat
@Deprecated void setDataFormat(String dataFormat)
Deprecated.
-
setDirectDataFormat
@Deprecated void setDirectDataFormat(String dataFormat)
Deprecated.
-
setLocked
@Deprecated void setLocked(boolean locked)
Deprecated.
-
setHidden
@Deprecated void setHidden(boolean hidden)
Deprecated.
-
getFont
SFont getFont()
-
setFont
@Deprecated void setFont(SFont font)
Deprecated.
-
copyFrom
@Deprecated void copyFrom(SCellStyle src)
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 void setRotation(int rotation)
Deprecated.
-
getIndention
int getIndention()
-
setIndention
@Deprecated void setIndention(int indent)
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
-
-