public class StyleUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
BORDER_EDGE_ALL |
static short |
BORDER_EDGE_BOTTOM |
static short |
BORDER_EDGE_LEFT |
static short |
BORDER_EDGE_RIGHT |
static short |
BORDER_EDGE_TOP |
Constructor and Description |
---|
StyleUtil() |
Modifier and Type | Method and Description |
---|---|
static SCellStyle |
cloneCellStyle(SBook book,
SCellStyle style) |
static SCellStyle |
cloneCellStyle(SCell cell) |
static SCellStyle |
getBottomStyle(SCellStyle cellStyle,
SCellStyle tbStyle) |
static SCellStyle |
getFillStyle(SCellStyle cellStyle,
SCellStyle tbStyle) |
static SFont |
getFontStyle(SBook book,
SCellStyle cellStyle,
SCellStyle tbCellStyle) |
static SCellStyle |
getLeftStyle(SCellStyle cellStyle,
SCellStyle tbStyle) |
static SCellStyle |
getRightStyle(SCellStyle cellStyle,
SCellStyle tbStyle) |
static SCellStyle |
getTopStyle(SCellStyle cellStyle,
SCellStyle tbStyle) |
static SCellStyle |
prepareStyle(SCell srcCell) |
static void |
setBackColor(SBook book,
CellStyleHolder holder,
java.lang.String htmlColor) |
static void |
setBorder(SBook book,
CellStyleHolder holder,
java.lang.String color,
SBorder.BorderType linestyle) |
static void |
setBorder(SBook book,
CellStyleHolder holder,
java.lang.String htmlColor,
SBorder.BorderType lineStyle,
short at) |
static void |
setBorderBottom(SBook book,
CellStyleHolder holder,
java.lang.String color,
SBorder.BorderType linestyle) |
static void |
setBorderLeft(SBook book,
CellStyleHolder holder,
java.lang.String color,
SBorder.BorderType linestyle) |
static void |
setBorderRight(SBook book,
CellStyleHolder holder,
java.lang.String color,
SBorder.BorderType linestyle) |
static void |
setBorderTop(SBook book,
CellStyleHolder holder,
java.lang.String color,
SBorder.BorderType linestyle) |
static void |
setDataFormat(SBook book,
CellStyleHolder holder,
java.lang.String format) |
static void |
setFillColor(SBook book,
CellStyleHolder holder,
java.lang.String htmlColor) |
static void |
setFillOptions(SBook book,
CellStyleHolder holder,
java.lang.String bgColor,
java.lang.String fillColor,
SFill.FillPattern pattern) |
static void |
setFontBoldWeight(SBook book,
CellStyleHolder holder,
SFont.Boldweight boldWeight) |
static void |
setFontColor(SBook book,
CellStyleHolder holder,
java.lang.String color) |
static void |
setFontHeightPoints(SBook book,
CellStyleHolder holder,
int fontHeightPoints) |
static void |
setFontItalic(SBook book,
CellStyleHolder holder,
boolean italic) |
static void |
setFontName(SBook book,
CellStyleHolder holder,
java.lang.String name) |
static void |
setFontStrikethrough(SBook book,
CellStyleHolder holder,
boolean strikeout) |
static void |
setFontTypeOffset(SBook book,
CellStyleHolder holder,
SFont.TypeOffset offset) |
static void |
setFontUnderline(SBook book,
CellStyleHolder holder,
SFont.Underline underline) |
static boolean |
setRichTextFontBoldweight(SBook book,
SCell cell,
SFont.Boldweight bold) |
static boolean |
setRichTextFontColor(SBook book,
SCell cell,
java.lang.String htmlColor) |
static boolean |
setRichTextFontHeightPoints(SBook book,
SCell cell,
int heightPoints) |
static boolean |
setRichTextFontItalic(SBook book,
SCell cell,
boolean italic) |
static boolean |
setRichTextFontName(SBook book,
SCell cell,
java.lang.String name) |
static boolean |
setRichTextFontStrikeout(SBook book,
SCell cell,
boolean strike) |
static boolean |
setRichTextFontTypeOffset(SBook book,
SCell cell,
SFont.TypeOffset offset) |
static boolean |
setRichTextFontUnderline(SBook book,
SCell cell,
SFont.Underline underline) |
static void |
setTextHAlign(SBook book,
CellStyleHolder holder,
SCellStyle.Alignment align) |
static void |
setTextIndention(SBook book,
CellStyleHolder holder,
int indent) |
static void |
setTextIndentionOffset(SBook book,
CellStyleHolder holder,
int offset) |
static void |
setTextRotation(SBook book,
CellStyleHolder holder,
int rotation) |
static void |
setTextVAlign(SBook book,
CellStyleHolder holder,
SCellStyle.VerticalAlignment valign) |
static void |
setTextWrap(SBook book,
CellStyleHolder holder,
boolean wrap) |
public static final short BORDER_EDGE_BOTTOM
public static final short BORDER_EDGE_RIGHT
public static final short BORDER_EDGE_TOP
public static final short BORDER_EDGE_LEFT
public static final short BORDER_EDGE_ALL
public static SCellStyle cloneCellStyle(SCell cell)
public static SCellStyle cloneCellStyle(SBook book, SCellStyle style)
public static void setFontColor(SBook book, CellStyleHolder holder, java.lang.String color)
public static void setFillColor(SBook book, CellStyleHolder holder, java.lang.String htmlColor)
public static void setBackColor(SBook book, CellStyleHolder holder, java.lang.String htmlColor)
public static void setFillOptions(SBook book, CellStyleHolder holder, java.lang.String bgColor, java.lang.String fillColor, SFill.FillPattern pattern)
public static void setTextWrap(SBook book, CellStyleHolder holder, boolean wrap)
public static void setFontHeightPoints(SBook book, CellStyleHolder holder, int fontHeightPoints)
public static void setFontStrikethrough(SBook book, CellStyleHolder holder, boolean strikeout)
public static void setFontName(SBook book, CellStyleHolder holder, java.lang.String name)
public static void setBorder(SBook book, CellStyleHolder holder, java.lang.String color, SBorder.BorderType linestyle)
public static void setBorderTop(SBook book, CellStyleHolder holder, java.lang.String color, SBorder.BorderType linestyle)
public static void setBorderLeft(SBook book, CellStyleHolder holder, java.lang.String color, SBorder.BorderType linestyle)
public static void setBorderBottom(SBook book, CellStyleHolder holder, java.lang.String color, SBorder.BorderType linestyle)
public static void setBorderRight(SBook book, CellStyleHolder holder, java.lang.String color, SBorder.BorderType linestyle)
public static void setBorder(SBook book, CellStyleHolder holder, java.lang.String htmlColor, SBorder.BorderType lineStyle, short at)
public static void setFontBoldWeight(SBook book, CellStyleHolder holder, SFont.Boldweight boldWeight)
public static void setFontItalic(SBook book, CellStyleHolder holder, boolean italic)
public static void setFontUnderline(SBook book, CellStyleHolder holder, SFont.Underline underline)
public static void setTextHAlign(SBook book, CellStyleHolder holder, SCellStyle.Alignment align)
public static void setTextVAlign(SBook book, CellStyleHolder holder, SCellStyle.VerticalAlignment valign)
public static void setDataFormat(SBook book, CellStyleHolder holder, java.lang.String format)
public static void setFontTypeOffset(SBook book, CellStyleHolder holder, SFont.TypeOffset offset)
public static boolean setRichTextFontTypeOffset(SBook book, SCell cell, SFont.TypeOffset offset)
public static boolean setRichTextFontBoldweight(SBook book, SCell cell, SFont.Boldweight bold)
public static boolean setRichTextFontItalic(SBook book, SCell cell, boolean italic)
public static boolean setRichTextFontUnderline(SBook book, SCell cell, SFont.Underline underline)
public static boolean setRichTextFontName(SBook book, SCell cell, java.lang.String name)
public static boolean setRichTextFontHeightPoints(SBook book, SCell cell, int heightPoints)
public static boolean setRichTextFontStrikeout(SBook book, SCell cell, boolean strike)
public static boolean setRichTextFontColor(SBook book, SCell cell, java.lang.String htmlColor)
public static void setTextRotation(SBook book, CellStyleHolder holder, int rotation)
public static void setTextIndentionOffset(SBook book, CellStyleHolder holder, int offset)
public static void setTextIndention(SBook book, CellStyleHolder holder, int indent)
public static SFont getFontStyle(SBook book, SCellStyle cellStyle, SCellStyle tbCellStyle)
public static SCellStyle getFillStyle(SCellStyle cellStyle, SCellStyle tbStyle)
public static SCellStyle getLeftStyle(SCellStyle cellStyle, SCellStyle tbStyle)
public static SCellStyle getTopStyle(SCellStyle cellStyle, SCellStyle tbStyle)
public static SCellStyle getRightStyle(SCellStyle cellStyle, SCellStyle tbStyle)
public static SCellStyle getBottomStyle(SCellStyle cellStyle, SCellStyle tbStyle)
public static SCellStyle prepareStyle(SCell srcCell)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.