Package io.keikai.model.impl
Class ImmutableCellStyleImpl
java.lang.Object
io.keikai.model.impl.AbstractCellStyleAdv
io.keikai.model.impl.ImmutableCellStyleImpl
- All Implemented Interfaces:
SCellStyle,Serializable
- Direct Known Subclasses:
ImmutableExtraStyleImpl
- Since:
- 5.3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SCellStyle
SCellStyle.Alignment, SCellStyle.VerticalAlignment -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SCellStyle.Alignmentprotected AbstractBorderAdvprotected Stringprotected booleanprotected AbstractFillAdvprotected AbstractFontAdvprotected booleanprotected intprotected booleanprotected intprotected SCellStyle.VerticalAlignmentprotected booleanFields inherited from interface io.keikai.model.SCellStyle
FORMAT_GENERAL -
Constructor Summary
ConstructorsConstructorDescriptionImmutableCellStyleImpl(AbstractFontAdv font, AbstractFillAdv fill, AbstractBorderAdv border) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(SCellStyle src) booleanGets the horizontal alignmentReturns the bordergetFill()Returns the fillGets the fill/background patterngets the fillpattern background-image style for this style.getFont()intintget the degree of rotation for the text in the cellGets vertical alignmentinthashCode()booleanbooleanisHidden()booleanisLocked()booleanbooleanbooleanvoidsetAlignment(SCellStyle.Alignment alignment) voidsetBackColor(SColor backColor) voidsetBorderBottom(SBorder.BorderType borderBottom) voidsetBorderBottom(SBorder.BorderType borderBottom, SColor color) voidsetBorderBottomColor(SColor borderBottomColor) voidsetBorderDiagonal(SBorder.BorderType borderDiagonal) voidsetBorderDiagonal(SBorder.BorderType borderDiagonal, SColor color) voidsetBorderDiagonalColor(SColor color) voidsetBorderHorizontal(SBorder.BorderType borderHorizontal) voidsetBorderHorizontal(SBorder.BorderType borderHorizontal, SColor color) voidsetBorderHorizontalColor(SColor color) voidsetBorderLeft(SBorder.BorderType borderLeft) voidsetBorderLeft(SBorder.BorderType borderLeft, SColor color) voidsetBorderLeftColor(SColor borderLeftColor) voidsetBorderRight(SBorder.BorderType borderRight) voidsetBorderRight(SBorder.BorderType borderRight, SColor color) voidsetBorderRightColor(SColor borderRightColor) voidsetBorderTop(SBorder.BorderType borderTop) voidsetBorderTop(SBorder.BorderType borderTop, SColor color) voidsetBorderTopColor(SColor borderTopColor) voidsetBorderVertical(SBorder.BorderType borderVertical) voidsetBorderVertical(SBorder.BorderType borderVertical, SColor color) voidsetBorderVerticalColor(SColor color) voidsetDataFormat(String dataFormat) voidsetDirectDataFormat(String dataFormat) voidsetFillColor(SColor fillColor) voidsetFillPattern(SFill.FillPattern fillPattern) voidvoidsetHidden(boolean hidden) voidsetIndention(int indent) voidsetLocked(boolean locked) voidsetRotation(int rotation) voidsetVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment) voidsetWrapText(boolean wrapText)
-
Field Details
-
font
-
fill
-
border
-
alignment
-
verticalAlignment
-
wrapText
protected boolean wrapText -
dataFormat
-
directFormat
protected boolean directFormat -
locked
protected boolean locked -
rotation
protected int rotation -
indention
protected int indention
-
-
Constructor Details
-
ImmutableCellStyleImpl
-
-
Method Details
-
getFont
-
setFont
-
copyFrom
-
getFillColor
- Returns:
- fill foreground-color
-
setFillColor
-
getFillPattern
Description copied from interface:SCellStyleGets the fill/background pattern- Returns:
- the fill pattern
-
setFillPattern
-
getAlignment
Description copied from interface:SCellStyleGets the horizontal alignment- Returns:
- the horizontal alignment
-
setAlignment
-
getVerticalAlignment
Description copied from interface:SCellStyleGets vertical alignment- Returns:
-
setVerticalAlignment
-
isWrapText
public boolean isWrapText()- Returns:
- true if wrap-text
-
setWrapText
public void setWrapText(boolean wrapText) -
getBorderLeft
- Returns:
- left border
-
setBorderLeft
-
getBorderTop
- Returns:
- top border
-
setBorderTop
-
getBorderRight
- Returns:
- right border
-
setBorderRight
-
getBorderBottom
- Returns:
- bottom border
-
setBorderBottom
-
getBorderTopColor
- Returns:
- top border color
-
setBorderTopColor
-
getBorderLeftColor
- Returns:
- left border color
-
setBorderLeftColor
-
getBorderBottomColor
- Returns:
- bottom border color
-
setBorderBottomColor
-
getBorderRightColor
- Returns:
- right border color
-
setBorderRightColor
-
getDataFormat
- Returns:
- data format
-
setDataFormat
-
isDirectDataFormat
public boolean isDirectDataFormat()- Returns:
- true if the data format is direct data format, which mean it will not care Locale when formatting
-
setDirectDataFormat
-
isLocked
public boolean isLocked()- Returns:
- true if locked
-
setLocked
public void setLocked(boolean locked) -
isHidden
public boolean isHidden()- Returns:
- true if hidden
-
setHidden
public void setHidden(boolean hidden) -
setBorderLeft
-
setBorderTop
-
setBorderRight
-
setBorderBottom
-
setBorderVertical
-
setBorderHorizontal
-
setBorderDiagonal
-
getBackColor
- Returns:
- fill background-color
-
setBackColor
-
getFillPatternHtml
Description copied from class:AbstractCellStyleAdvgets the fillpattern background-image style for this style.- Specified by:
getFillPatternHtmlin classAbstractCellStyleAdv
-
equals
-
hashCode
public int hashCode() -
getRotation
public int getRotation()Description copied from interface:SCellStyleget the degree of rotation for the text in the cell- Returns:
- rotation degrees (between -90 and 90 degrees); 255 means "vertical text"
-
setRotation
public void setRotation(int rotation) -
getIndention
public int getIndention() -
setIndention
public void setIndention(int indent) -
getBorder
Description copied from interface:SCellStyleReturns the border- Returns:
-
getFill
Description copied from interface:SCellStyleReturns the fill- Returns:
-
getBorderVertical
- Returns:
- vertical border
-
setBorderVertical
-
getBorderHorizontal
- Returns:
- horizontal border
-
setBorderHorizontal
-
getBorderDiagonal
- Returns:
- diagonal border
-
setBorderDiagonal
-
getBorderVerticalColor
- Returns:
- vertical border color
-
setBorderVerticalColor
-
getBorderHorizontalColor
- Returns:
- horizontal border color
-
setBorderHorizontalColor
-
getBorderDiagonalColor
- Returns:
- diagonal border color
-
setBorderDiagonalColor
-
isShowDiagonalUpBorder
public boolean isShowDiagonalUpBorder()- Returns:
-
isShowDiagonalDownBorder
public boolean isShowDiagonalDownBorder()- Returns:
-