Package io.keikai.model.impl
Class NamedStyleImpl
java.lang.Object
io.keikai.model.impl.NamedStyleImpl
- All Implemented Interfaces:
SCellStyle,SNamedStyle,Serializable
- Since:
- 3.7.0
- Author:
- henri
- See Also:
-
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
ConstructorsConstructorDescriptionNamedStyleImpl(String name, boolean custom, int builtinId, SBook book, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(SCellStyle src) Gets the horizontal alignmentReturns the borderintgetFill()Returns the fillGets the fill/background patterngetFont()intintgetIndex()getName()intget the degree of rotation for the text in the cellGets vertical alignmentbooleanbooleanbooleanisHidden()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)
-
Constructor Details
-
NamedStyleImpl
-
-
Method Details
-
getFillColor
- Specified by:
getFillColorin interfaceSCellStyle- Returns:
- fill foreground-color
-
getBackColor
- Specified by:
getBackColorin interfaceSCellStyle- Returns:
- fill background-color
-
getFillPattern
Description copied from interface:SCellStyleGets the fill/background pattern- Specified by:
getFillPatternin interfaceSCellStyle- Returns:
- the fill pattern
-
getAlignment
Description copied from interface:SCellStyleGets the horizontal alignment- Specified by:
getAlignmentin interfaceSCellStyle- Returns:
- the horizontal alignment
-
getVerticalAlignment
Description copied from interface:SCellStyleGets vertical alignment- Specified by:
getVerticalAlignmentin interfaceSCellStyle- Returns:
-
isWrapText
public boolean isWrapText()- Specified by:
isWrapTextin interfaceSCellStyle- Returns:
- true if wrap-text
-
getBorderLeft
- Specified by:
getBorderLeftin interfaceSCellStyle- Returns:
- left border
-
getBorderTop
- Specified by:
getBorderTopin interfaceSCellStyle- Returns:
- top border
-
getBorderRight
- Specified by:
getBorderRightin interfaceSCellStyle- Returns:
- right border
-
getBorderBottom
- Specified by:
getBorderBottomin interfaceSCellStyle- Returns:
- bottom border
-
getBorderTopColor
- Specified by:
getBorderTopColorin interfaceSCellStyle- Returns:
- top border color
-
getBorderLeftColor
- Specified by:
getBorderLeftColorin interfaceSCellStyle- Returns:
- left border color
-
getBorderBottomColor
- Specified by:
getBorderBottomColorin interfaceSCellStyle- Returns:
- bottom border color
-
getBorderRightColor
- Specified by:
getBorderRightColorin interfaceSCellStyle- Returns:
- right border color
-
getDataFormat
- Specified by:
getDataFormatin interfaceSCellStyle- Returns:
- data format
-
isDirectDataFormat
public boolean isDirectDataFormat()- Specified by:
isDirectDataFormatin 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:
isLockedin interfaceSCellStyle- Returns:
- true if locked
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceSCellStyle- Returns:
- true if hidden
-
setFillColor
- Specified by:
setFillColorin interfaceSCellStyle
-
setBackColor
- Specified by:
setBackColorin interfaceSCellStyle
-
setFillPattern
- Specified by:
setFillPatternin interfaceSCellStyle
-
setAlignment
- Specified by:
setAlignmentin interfaceSCellStyle
-
setVerticalAlignment
- Specified by:
setVerticalAlignmentin interfaceSCellStyle
-
setWrapText
public void setWrapText(boolean wrapText) - Specified by:
setWrapTextin interfaceSCellStyle
-
setBorderLeft
- Specified by:
setBorderLeftin interfaceSCellStyle
-
setBorderLeft
- Specified by:
setBorderLeftin interfaceSCellStyle
-
setBorderTop
- Specified by:
setBorderTopin interfaceSCellStyle
-
setBorderTop
- Specified by:
setBorderTopin interfaceSCellStyle
-
setBorderRight
- Specified by:
setBorderRightin interfaceSCellStyle
-
setBorderRight
- Specified by:
setBorderRightin interfaceSCellStyle
-
setBorderBottom
- Specified by:
setBorderBottomin interfaceSCellStyle
-
setBorderBottom
- Specified by:
setBorderBottomin interfaceSCellStyle
-
setBorderTopColor
- Specified by:
setBorderTopColorin interfaceSCellStyle
-
setBorderLeftColor
- Specified by:
setBorderLeftColorin interfaceSCellStyle
-
setBorderBottomColor
- Specified by:
setBorderBottomColorin interfaceSCellStyle
-
setBorderRightColor
- Specified by:
setBorderRightColorin interfaceSCellStyle
-
setDataFormat
- Specified by:
setDataFormatin interfaceSCellStyle
-
setDirectDataFormat
- Specified by:
setDirectDataFormatin interfaceSCellStyle
-
setLocked
public void setLocked(boolean locked) - Specified by:
setLockedin interfaceSCellStyle
-
setHidden
public void setHidden(boolean hidden) - Specified by:
setHiddenin interfaceSCellStyle
-
getFont
- Specified by:
getFontin interfaceSCellStyle
-
setFont
- Specified by:
setFontin interfaceSCellStyle
-
copyFrom
- Specified by:
copyFromin interfaceSCellStyle
-
getName
- Specified by:
getNamein interfaceSNamedStyle
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceSNamedStyle
-
isCustomBuiltin
public boolean isCustomBuiltin()- Specified by:
isCustomBuiltinin interfaceSNamedStyle
-
getBuiltinId
public int getBuiltinId()- Specified by:
getBuiltinIdin interfaceSNamedStyle
-
getRotation
public int getRotation()Description copied from interface:SCellStyleget the degree of rotation for the text in the cell- Specified by:
getRotationin interfaceSCellStyle- Returns:
- rotation degrees (between -90 and 90 degrees); 255 means "vertical text"
-
setRotation
public void setRotation(int rotation) - Specified by:
setRotationin interfaceSCellStyle
-
getIndention
public int getIndention()- Specified by:
getIndentionin interfaceSCellStyle
-
setIndention
public void setIndention(int indent) - Specified by:
setIndentionin interfaceSCellStyle
-
getBorderVertical
- Specified by:
getBorderVerticalin interfaceSCellStyle- Returns:
- vertical border
-
getBorderHorizontal
- Specified by:
getBorderHorizontalin interfaceSCellStyle- Returns:
- horizontal border
-
getBorderDiagonal
- Specified by:
getBorderDiagonalin interfaceSCellStyle- Returns:
- diagonal border
-
getBorderVerticalColor
- Specified by:
getBorderVerticalColorin interfaceSCellStyle- Returns:
- vertical border color
-
getBorderHorizontalColor
- Specified by:
getBorderHorizontalColorin interfaceSCellStyle- Returns:
- horizontal border color
-
getBorderDiagonalColor
- Specified by:
getBorderDiagonalColorin interfaceSCellStyle- Returns:
- diagonal border color
-
setBorderVertical
- Specified by:
setBorderVerticalin interfaceSCellStyle
-
setBorderVertical
- Specified by:
setBorderVerticalin interfaceSCellStyle
-
setBorderHorizontal
- Specified by:
setBorderHorizontalin interfaceSCellStyle
-
setBorderHorizontal
- Specified by:
setBorderHorizontalin interfaceSCellStyle
-
setBorderDiagonal
- Specified by:
setBorderDiagonalin interfaceSCellStyle
-
setBorderDiagonal
- Specified by:
setBorderDiagonalin interfaceSCellStyle
-
setBorderVerticalColor
- Specified by:
setBorderVerticalColorin interfaceSCellStyle
-
setBorderHorizontalColor
- Specified by:
setBorderHorizontalColorin interfaceSCellStyle
-
setBorderDiagonalColor
- Specified by:
setBorderDiagonalColorin interfaceSCellStyle
-
getBorder
Description copied from interface:SCellStyleReturns the border- Specified by:
getBorderin interfaceSCellStyle- Returns:
-
getFill
Description copied from interface:SCellStyleReturns the fill- Specified by:
getFillin interfaceSCellStyle- Returns:
-
isShowDiagonalUpBorder
public boolean isShowDiagonalUpBorder()- Specified by:
isShowDiagonalUpBorderin interfaceSCellStyle- Returns:
-
isShowDiagonalDownBorder
public boolean isShowDiagonalDownBorder()- Specified by:
isShowDiagonalDownBorderin interfaceSCellStyle- Returns:
-