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
public class ImmutableCellStyleImpl extends AbstractCellStyleAdv
- Since:
- 5.3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.model.SCellStyle
SCellStyle.Alignment, SCellStyle.VerticalAlignment
-
-
Field Summary
Fields Modifier and Type Field Description protected SCellStyle.Alignment
alignment
protected AbstractBorderAdv
border
protected String
dataFormat
protected boolean
directFormat
protected AbstractFillAdv
fill
protected AbstractFontAdv
font
protected boolean
hidden
protected int
indention
protected boolean
locked
protected int
rotation
protected SCellStyle.VerticalAlignment
verticalAlignment
protected boolean
wrapText
-
Fields inherited from interface io.keikai.model.SCellStyle
FORMAT_GENERAL
-
-
Constructor Summary
Constructors Constructor Description ImmutableCellStyleImpl(AbstractFontAdv font, AbstractFillAdv fill, AbstractBorderAdv border)
-
Method Summary
-
-
-
Field Detail
-
font
protected AbstractFontAdv font
-
fill
protected AbstractFillAdv fill
-
border
protected AbstractBorderAdv border
-
alignment
protected SCellStyle.Alignment alignment
-
verticalAlignment
protected SCellStyle.VerticalAlignment verticalAlignment
-
wrapText
protected boolean wrapText
-
dataFormat
protected String dataFormat
-
directFormat
protected boolean directFormat
-
locked
protected boolean locked
-
hidden
protected boolean hidden
-
rotation
protected int rotation
-
indention
protected int indention
-
-
Constructor Detail
-
ImmutableCellStyleImpl
public ImmutableCellStyleImpl(AbstractFontAdv font, AbstractFillAdv fill, AbstractBorderAdv border)
-
-
Method Detail
-
getFont
public SFont getFont()
-
setFont
public void setFont(SFont font)
-
copyFrom
public void copyFrom(SCellStyle src)
-
getFillColor
public SColor getFillColor()
- Returns:
- fill foreground-color
-
setFillColor
public void setFillColor(SColor fillColor)
-
getFillPattern
public SFill.FillPattern getFillPattern()
Description copied from interface:SCellStyle
Gets the fill/background pattern- Returns:
- the fill pattern
-
setFillPattern
public void setFillPattern(SFill.FillPattern fillPattern)
-
getAlignment
public SCellStyle.Alignment getAlignment()
Description copied from interface:SCellStyle
Gets the horizontal alignment- Returns:
- the horizontal alignment
-
setAlignment
public void setAlignment(SCellStyle.Alignment alignment)
-
getVerticalAlignment
public SCellStyle.VerticalAlignment getVerticalAlignment()
Description copied from interface:SCellStyle
Gets vertical alignment- Returns:
-
setVerticalAlignment
public void setVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment)
-
isWrapText
public boolean isWrapText()
- Returns:
- true if wrap-text
-
setWrapText
public void setWrapText(boolean wrapText)
-
getBorderLeft
public SBorder.BorderType getBorderLeft()
- Returns:
- left border
-
setBorderLeft
public void setBorderLeft(SBorder.BorderType borderLeft)
-
getBorderTop
public SBorder.BorderType getBorderTop()
- Returns:
- top border
-
setBorderTop
public void setBorderTop(SBorder.BorderType borderTop)
-
getBorderRight
public SBorder.BorderType getBorderRight()
- Returns:
- right border
-
setBorderRight
public void setBorderRight(SBorder.BorderType borderRight)
-
getBorderBottom
public SBorder.BorderType getBorderBottom()
- Returns:
- bottom border
-
setBorderBottom
public void setBorderBottom(SBorder.BorderType borderBottom)
-
getBorderTopColor
public SColor getBorderTopColor()
- Returns:
- top border color
-
setBorderTopColor
public void setBorderTopColor(SColor borderTopColor)
-
getBorderLeftColor
public SColor getBorderLeftColor()
- Returns:
- left border color
-
setBorderLeftColor
public void setBorderLeftColor(SColor borderLeftColor)
-
getBorderBottomColor
public SColor getBorderBottomColor()
- Returns:
- bottom border color
-
setBorderBottomColor
public void setBorderBottomColor(SColor borderBottomColor)
-
getBorderRightColor
public SColor getBorderRightColor()
- Returns:
- right border color
-
setBorderRightColor
public void setBorderRightColor(SColor borderRightColor)
-
getDataFormat
public String getDataFormat()
- Returns:
- data format
-
setDataFormat
public void setDataFormat(String dataFormat)
-
isDirectDataFormat
public boolean isDirectDataFormat()
- Returns:
- true if the data format is direct data format, which mean it will not care Locale when formatting
-
setDirectDataFormat
public void setDirectDataFormat(String dataFormat)
-
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
public void setBorderLeft(SBorder.BorderType borderLeft, SColor color)
-
setBorderTop
public void setBorderTop(SBorder.BorderType borderTop, SColor color)
-
setBorderRight
public void setBorderRight(SBorder.BorderType borderRight, SColor color)
-
setBorderBottom
public void setBorderBottom(SBorder.BorderType borderBottom, SColor color)
-
setBorderVertical
public void setBorderVertical(SBorder.BorderType borderVertical, SColor color)
-
setBorderHorizontal
public void setBorderHorizontal(SBorder.BorderType borderHorizontal, SColor color)
-
setBorderDiagonal
public void setBorderDiagonal(SBorder.BorderType borderDiagonal, SColor color)
-
getBackColor
public SColor getBackColor()
- Returns:
- fill background-color
-
setBackColor
public void setBackColor(SColor backColor)
-
getFillPatternHtml
public String getFillPatternHtml()
Description copied from class:AbstractCellStyleAdv
gets the fillpattern background-image style for this style.- Specified by:
getFillPatternHtml
in classAbstractCellStyleAdv
-
getRotation
public int getRotation()
Description copied from interface:SCellStyle
get 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
public SBorder getBorder()
Description copied from interface:SCellStyle
Returns the border- Returns:
-
getFill
public SFill getFill()
Description copied from interface:SCellStyle
Returns the fill- Returns:
-
getBorderVertical
public SBorder.BorderType getBorderVertical()
- Returns:
- vertical border
-
setBorderVertical
public void setBorderVertical(SBorder.BorderType borderVertical)
-
getBorderHorizontal
public SBorder.BorderType getBorderHorizontal()
- Returns:
- horizontal border
-
setBorderHorizontal
public void setBorderHorizontal(SBorder.BorderType borderHorizontal)
-
getBorderDiagonal
public SBorder.BorderType getBorderDiagonal()
- Returns:
- diagonal border
-
setBorderDiagonal
public void setBorderDiagonal(SBorder.BorderType borderDiagonal)
-
getBorderVerticalColor
public SColor getBorderVerticalColor()
- Returns:
- vertical border color
-
setBorderVerticalColor
public void setBorderVerticalColor(SColor color)
-
getBorderHorizontalColor
public SColor getBorderHorizontalColor()
- Returns:
- horizontal border color
-
setBorderHorizontalColor
public void setBorderHorizontalColor(SColor color)
-
getBorderDiagonalColor
public SColor getBorderDiagonalColor()
- Returns:
- diagonal border color
-
setBorderDiagonalColor
public void setBorderDiagonalColor(SColor color)
-
isShowDiagonalUpBorder
public boolean isShowDiagonalUpBorder()
- Returns:
-
isShowDiagonalDownBorder
public boolean isShowDiagonalDownBorder()
- Returns:
-
-