Package io.keikai.model.impl
Class NamedStyleImpl
- java.lang.Object
-
- io.keikai.model.impl.NamedStyleImpl
-
- All Implemented Interfaces:
SCellStyle
,SNamedStyle
,Serializable
public class NamedStyleImpl extends Object implements SNamedStyle, Serializable
- Since:
- 3.7.0
- Author:
- henri
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.model.SCellStyle
SCellStyle.Alignment, SCellStyle.VerticalAlignment
-
-
Field Summary
-
Fields inherited from interface io.keikai.model.SCellStyle
FORMAT_GENERAL
-
-
Constructor Summary
Constructors Constructor Description NamedStyleImpl(String name, boolean custom, int builtinId, SBook book, int index)
-
Method Summary
-
-
-
Method Detail
-
getFillColor
public SColor getFillColor()
- Specified by:
getFillColor
in interfaceSCellStyle
- Returns:
- fill foreground-color
-
getBackColor
public SColor getBackColor()
- Specified by:
getBackColor
in interfaceSCellStyle
- Returns:
- fill background-color
-
getFillPattern
public SFill.FillPattern getFillPattern()
Description copied from interface:SCellStyle
Gets the fill/background pattern- Specified by:
getFillPattern
in interfaceSCellStyle
- Returns:
- the fill pattern
-
getAlignment
public SCellStyle.Alignment getAlignment()
Description copied from interface:SCellStyle
Gets the horizontal alignment- Specified by:
getAlignment
in interfaceSCellStyle
- Returns:
- the horizontal alignment
-
getVerticalAlignment
public SCellStyle.VerticalAlignment getVerticalAlignment()
Description copied from interface:SCellStyle
Gets vertical alignment- Specified by:
getVerticalAlignment
in interfaceSCellStyle
- Returns:
-
isWrapText
public boolean isWrapText()
- Specified by:
isWrapText
in interfaceSCellStyle
- Returns:
- true if wrap-text
-
getBorderLeft
public SBorder.BorderType getBorderLeft()
- Specified by:
getBorderLeft
in interfaceSCellStyle
- Returns:
- left border
-
getBorderTop
public SBorder.BorderType getBorderTop()
- Specified by:
getBorderTop
in interfaceSCellStyle
- Returns:
- top border
-
getBorderRight
public SBorder.BorderType getBorderRight()
- Specified by:
getBorderRight
in interfaceSCellStyle
- Returns:
- right border
-
getBorderBottom
public SBorder.BorderType getBorderBottom()
- Specified by:
getBorderBottom
in interfaceSCellStyle
- Returns:
- bottom border
-
getBorderTopColor
public SColor getBorderTopColor()
- Specified by:
getBorderTopColor
in interfaceSCellStyle
- Returns:
- top border color
-
getBorderLeftColor
public SColor getBorderLeftColor()
- Specified by:
getBorderLeftColor
in interfaceSCellStyle
- Returns:
- left border color
-
getBorderBottomColor
public SColor getBorderBottomColor()
- Specified by:
getBorderBottomColor
in interfaceSCellStyle
- Returns:
- bottom border color
-
getBorderRightColor
public SColor getBorderRightColor()
- Specified by:
getBorderRightColor
in interfaceSCellStyle
- Returns:
- right border color
-
getDataFormat
public String getDataFormat()
- Specified by:
getDataFormat
in interfaceSCellStyle
- Returns:
- data format
-
isDirectDataFormat
public boolean isDirectDataFormat()
- Specified by:
isDirectDataFormat
in interfaceSCellStyle
- Returns:
- true if the data format is direct data format, which mean it will not care Locale when formatting
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceSCellStyle
- Returns:
- true if locked
-
isHidden
public boolean isHidden()
- Specified by:
isHidden
in interfaceSCellStyle
- Returns:
- true if hidden
-
setFillColor
public void setFillColor(SColor fillColor)
- Specified by:
setFillColor
in interfaceSCellStyle
-
setBackColor
public void setBackColor(SColor backColor)
- Specified by:
setBackColor
in interfaceSCellStyle
-
setFillPattern
public void setFillPattern(SFill.FillPattern fillPattern)
- Specified by:
setFillPattern
in interfaceSCellStyle
-
setAlignment
public void setAlignment(SCellStyle.Alignment alignment)
- Specified by:
setAlignment
in interfaceSCellStyle
-
setVerticalAlignment
public void setVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment)
- Specified by:
setVerticalAlignment
in interfaceSCellStyle
-
setWrapText
public void setWrapText(boolean wrapText)
- Specified by:
setWrapText
in interfaceSCellStyle
-
setBorderLeft
public void setBorderLeft(SBorder.BorderType borderLeft)
- Specified by:
setBorderLeft
in interfaceSCellStyle
-
setBorderLeft
public void setBorderLeft(SBorder.BorderType borderLeft, SColor color)
- Specified by:
setBorderLeft
in interfaceSCellStyle
-
setBorderTop
public void setBorderTop(SBorder.BorderType borderTop)
- Specified by:
setBorderTop
in interfaceSCellStyle
-
setBorderTop
public void setBorderTop(SBorder.BorderType borderTop, SColor color)
- Specified by:
setBorderTop
in interfaceSCellStyle
-
setBorderRight
public void setBorderRight(SBorder.BorderType borderRight)
- Specified by:
setBorderRight
in interfaceSCellStyle
-
setBorderRight
public void setBorderRight(SBorder.BorderType borderRight, SColor color)
- Specified by:
setBorderRight
in interfaceSCellStyle
-
setBorderBottom
public void setBorderBottom(SBorder.BorderType borderBottom)
- Specified by:
setBorderBottom
in interfaceSCellStyle
-
setBorderBottom
public void setBorderBottom(SBorder.BorderType borderBottom, SColor color)
- Specified by:
setBorderBottom
in interfaceSCellStyle
-
setBorderTopColor
public void setBorderTopColor(SColor borderTopColor)
- Specified by:
setBorderTopColor
in interfaceSCellStyle
-
setBorderLeftColor
public void setBorderLeftColor(SColor borderLeftColor)
- Specified by:
setBorderLeftColor
in interfaceSCellStyle
-
setBorderBottomColor
public void setBorderBottomColor(SColor borderBottomColor)
- Specified by:
setBorderBottomColor
in interfaceSCellStyle
-
setBorderRightColor
public void setBorderRightColor(SColor borderRightColor)
- Specified by:
setBorderRightColor
in interfaceSCellStyle
-
setDataFormat
public void setDataFormat(String dataFormat)
- Specified by:
setDataFormat
in interfaceSCellStyle
-
setDirectDataFormat
public void setDirectDataFormat(String dataFormat)
- Specified by:
setDirectDataFormat
in interfaceSCellStyle
-
setLocked
public void setLocked(boolean locked)
- Specified by:
setLocked
in interfaceSCellStyle
-
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHidden
in interfaceSCellStyle
-
getFont
public SFont getFont()
- Specified by:
getFont
in interfaceSCellStyle
-
setFont
public void setFont(SFont font)
- Specified by:
setFont
in interfaceSCellStyle
-
copyFrom
public void copyFrom(SCellStyle src)
- Specified by:
copyFrom
in interfaceSCellStyle
-
getName
public String getName()
- Specified by:
getName
in interfaceSNamedStyle
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceSNamedStyle
-
isCustomBuiltin
public boolean isCustomBuiltin()
- Specified by:
isCustomBuiltin
in interfaceSNamedStyle
-
getBuiltinId
public int getBuiltinId()
- Specified by:
getBuiltinId
in interfaceSNamedStyle
-
getRotation
public int getRotation()
Description copied from interface:SCellStyle
get the degree of rotation for the text in the cell- Specified by:
getRotation
in interfaceSCellStyle
- Returns:
- rotation degrees (between -90 and 90 degrees); 255 means "vertical text"
-
setRotation
public void setRotation(int rotation)
- Specified by:
setRotation
in interfaceSCellStyle
-
getIndention
public int getIndention()
- Specified by:
getIndention
in interfaceSCellStyle
-
setIndention
public void setIndention(int indent)
- Specified by:
setIndention
in interfaceSCellStyle
-
getBorderVertical
public SBorder.BorderType getBorderVertical()
- Specified by:
getBorderVertical
in interfaceSCellStyle
- Returns:
- vertical border
-
getBorderHorizontal
public SBorder.BorderType getBorderHorizontal()
- Specified by:
getBorderHorizontal
in interfaceSCellStyle
- Returns:
- horizontal border
-
getBorderDiagonal
public SBorder.BorderType getBorderDiagonal()
- Specified by:
getBorderDiagonal
in interfaceSCellStyle
- Returns:
- diagonal border
-
getBorderVerticalColor
public SColor getBorderVerticalColor()
- Specified by:
getBorderVerticalColor
in interfaceSCellStyle
- Returns:
- vertical border color
-
getBorderHorizontalColor
public SColor getBorderHorizontalColor()
- Specified by:
getBorderHorizontalColor
in interfaceSCellStyle
- Returns:
- horizontal border color
-
getBorderDiagonalColor
public SColor getBorderDiagonalColor()
- Specified by:
getBorderDiagonalColor
in interfaceSCellStyle
- Returns:
- diagonal border color
-
setBorderVertical
public void setBorderVertical(SBorder.BorderType borderVertical)
- Specified by:
setBorderVertical
in interfaceSCellStyle
-
setBorderVertical
public void setBorderVertical(SBorder.BorderType borderVertical, SColor color)
- Specified by:
setBorderVertical
in interfaceSCellStyle
-
setBorderHorizontal
public void setBorderHorizontal(SBorder.BorderType borderHorizontal)
- Specified by:
setBorderHorizontal
in interfaceSCellStyle
-
setBorderHorizontal
public void setBorderHorizontal(SBorder.BorderType borderHorizontal, SColor color)
- Specified by:
setBorderHorizontal
in interfaceSCellStyle
-
setBorderDiagonal
public void setBorderDiagonal(SBorder.BorderType borderDiagonal)
- Specified by:
setBorderDiagonal
in interfaceSCellStyle
-
setBorderDiagonal
public void setBorderDiagonal(SBorder.BorderType borderDiagonal, SColor color)
- Specified by:
setBorderDiagonal
in interfaceSCellStyle
-
setBorderVerticalColor
public void setBorderVerticalColor(SColor color)
- Specified by:
setBorderVerticalColor
in interfaceSCellStyle
-
setBorderHorizontalColor
public void setBorderHorizontalColor(SColor color)
- Specified by:
setBorderHorizontalColor
in interfaceSCellStyle
-
setBorderDiagonalColor
public void setBorderDiagonalColor(SColor color)
- Specified by:
setBorderDiagonalColor
in interfaceSCellStyle
-
getBorder
public SBorder getBorder()
Description copied from interface:SCellStyle
Returns the border- Specified by:
getBorder
in interfaceSCellStyle
- Returns:
-
getFill
public SFill getFill()
Description copied from interface:SCellStyle
Returns the fill- Specified by:
getFill
in interfaceSCellStyle
- Returns:
-
isShowDiagonalUpBorder
public boolean isShowDiagonalUpBorder()
- Specified by:
isShowDiagonalUpBorder
in interfaceSCellStyle
- Returns:
-
isShowDiagonalDownBorder
public boolean isShowDiagonalDownBorder()
- Specified by:
isShowDiagonalDownBorder
in interfaceSCellStyle
- Returns:
-
-