public class CellStyleImpl extends AbstractCellStyleAdv
SCellStyle.Alignment, SCellStyle.VerticalAlignment
Modifier and Type | Field and 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 |
static SCellStyle |
BLANK_STYLE |
FORMAT_GENERAL
Constructor and Description |
---|
CellStyleImpl(AbstractFontAdv font) |
CellStyleImpl(AbstractFontAdv font,
AbstractFillAdv fill,
AbstractBorderAdv border) |
protected AbstractFontAdv _font
protected AbstractFillAdv _fill
protected AbstractBorderAdv _border
protected SCellStyle.Alignment _alignment
protected SCellStyle.VerticalAlignment _verticalAlignment
protected boolean _wrapText
protected String _dataFormat
protected boolean _directFormat
protected boolean _locked
protected boolean _hidden
protected int _rotation
protected int _indention
public static final SCellStyle BLANK_STYLE
public CellStyleImpl(AbstractFontAdv font)
public CellStyleImpl(AbstractFontAdv font, AbstractFillAdv fill, AbstractBorderAdv border)
public SFont getFont()
public void setFont(SFont font)
public SColor getFillColor()
public void setFillColor(SColor fillColor)
public SFill.FillPattern getFillPattern()
SCellStyle
public void setFillPattern(SFill.FillPattern fillPattern)
public SCellStyle.Alignment getAlignment()
SCellStyle
public void setAlignment(SCellStyle.Alignment alignment)
public SCellStyle.VerticalAlignment getVerticalAlignment()
SCellStyle
public void setVerticalAlignment(SCellStyle.VerticalAlignment verticalAlignment)
public boolean isWrapText()
public void setWrapText(boolean wrapText)
public SBorder.BorderType getBorderLeft()
public void setBorderLeft(SBorder.BorderType borderLeft)
public SBorder.BorderType getBorderTop()
public void setBorderTop(SBorder.BorderType type)
public SBorder.BorderType getBorderRight()
public void setBorderRight(SBorder.BorderType type)
public SBorder.BorderType getBorderBottom()
public void setBorderBottom(SBorder.BorderType type)
public SColor getBorderTopColor()
public void setBorderTopColor(SColor color)
public SColor getBorderLeftColor()
public void setBorderLeftColor(SColor color)
public SColor getBorderBottomColor()
public void setBorderBottomColor(SColor color)
public SColor getBorderRightColor()
public void setBorderRightColor(SColor color)
public String getDataFormat()
public boolean isDirectDataFormat()
public void setDataFormat(String dataFormat)
public void setDirectDataFormat(String dataFormat)
public boolean isLocked()
public void setLocked(boolean locked)
public boolean isHidden()
public void setHidden(boolean hidden)
public void copyFrom(SCellStyle src)
public void setBorderLeft(SBorder.BorderType borderLeft, SColor color)
public void setBorderTop(SBorder.BorderType borderTop, SColor color)
public void setBorderRight(SBorder.BorderType borderRight, SColor color)
public void setBorderBottom(SBorder.BorderType borderBottom, SColor color)
public SColor getBackColor()
@Deprecated public void setBackgroundColor(SColor backColor)
public void setBackColor(SColor backColor)
public String getFillPatternHtml()
AbstractCellStyleAdv
getFillPatternHtml
in class AbstractCellStyleAdv
public int getRotation()
SCellStyle
public void setRotation(int rotation)
public int getIndention()
public void setIndention(int indention)
public SBorder getBorder()
SCellStyle
public SFill getFill()
SCellStyle
public void setBorderVertical(SBorder.BorderType type)
public void setBorderVertical(SBorder.BorderType type, SColor color)
public void setBorderHorizontal(SBorder.BorderType type)
public void setBorderHorizontal(SBorder.BorderType type, SColor color)
public void setBorderDiagonal(SBorder.BorderType type)
public void setBorderDiagonal(SBorder.BorderType type, SColor color)
public void setBorderVerticalColor(SColor color)
public void setBorderHorizontalColor(SColor color)
public void setBorderDiagonalColor(SColor color)
public SBorder.BorderType getBorderVertical()
public SBorder.BorderType getBorderHorizontal()
public SBorder.BorderType getBorderDiagonal()
public SColor getBorderVerticalColor()
public SColor getBorderHorizontalColor()
public SColor getBorderDiagonalColor()
protected void setBorder(SBorder border)
protected void setFill(SFill fill)
public boolean isShowDiagonalUpBorder()
public boolean isShowDiagonalDownBorder()
Copyright © 2020. All rights reserved.