|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.cell.CellStyle
public class CellStyle
CellStyle provides a cell style object.
| Nested Class Summary | |
|---|---|
static class |
CellStyle.Border
The Border. |
static class |
CellStyle.Comment
The comment |
static class |
CellStyle.Hyperlink
The hyperlink. |
static class |
CellStyle.UnderlineStyle
The underline style. |
| Field Summary | |
|---|---|
static int |
ALIGN_BOTTOM
Identified the bottom value of vertical alignment. |
static int |
ALIGN_CENTER
Identified the center value of vertical alignment. |
static int |
ALIGN_JUSTIFIED
Identified the justified value of vertical alignment. |
static int |
ALIGN_TOP
Identified the top value of vertical alignment. |
static Object |
BOTTOM_BORDER
Identifies the bottom border. |
static Object |
COMMENT
Identifies the comment. |
static Object |
DOWN_BORDER
Identifies the right border. |
static Object |
FORMAT
Identifies the format. |
static Object |
FORMAT_PATTERN
Identifies the format pattern. |
static Object |
FORMAT_STYLE
Identifies the format style. |
static Object |
HYPERLINK
Identifies the hyperlink. |
static Object |
LEFT_BORDER
Identifies the left border. |
static Object |
RIGHT_BORDER
Identifies the right border. |
static Object |
TEXT_ROTATE
Identifies the text rotate angle. |
static Object |
TOP_BORDER
Identifies the top border. |
static Object |
UNDERLINE_STYLE
Identifies the underline style. |
static Object |
UP_BORDER
Identifies the right border. |
static Object |
VALUE_LIST
Identifies the value list. |
static Object |
VERTICAL_ALIGNMENT
The vertical alignment cell style. |
| Method Summary | |
|---|---|
static CellStyle.Border |
getBottomBorder(AttributeSet a)
Returns the bottom border. |
static CellStyle.Comment |
getComment(AttributeSet a)
Returns the comment. |
static CellStyle.Border |
getDownBorder(AttributeSet a)
Returns the down border. |
static Format |
getFormat(AttributeSet a)
Returns the format. |
static FormatStyle |
getFormatStyle(AttributeSet a)
Returns format style.. |
static CellStyle.Hyperlink |
getHyperlink(AttributeSet a)
Returns the hyperlink. |
static CellStyle.Border |
getLeftBorder(AttributeSet a)
Returns the left border. |
static CellStyle.Border |
getRightBorder(AttributeSet a)
Returns the right border. |
static int |
getTextRotate(AttributeSet a)
Returns the text rotate angle in degree. |
static CellStyle.Border |
getTopBorder(AttributeSet a)
Returns the top border. |
static CellStyle.UnderlineStyle |
getUnderlineStyle(AttributeSet a)
Returns the underlineStyle. |
static CellStyle.Border |
getUpBorder(AttributeSet a)
Returns the up border. |
static List |
getValueList(AttributeSet a)
Returns format style.. |
static int |
getVerticalAlignment(AttributeSet a)
Returns the vertical alignment, the default value is CellStyle.ALIGN_CENTER. |
static void |
setBottomBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the bottom border. |
static void |
setComment(MutableAttributeSet a,
CellStyle.Comment comment)
Sets the comment. |
static void |
setDownBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the down border. |
static void |
setFormat(MutableAttributeSet a,
Format format)
Sets the format. |
static void |
setFormatStyle(MutableAttributeSet a,
FormatStyle formatStyle)
Sets the format style. |
static void |
setHyperlink(MutableAttributeSet a,
CellStyle.Hyperlink link)
Sets the hyperlink. |
static void |
setLeftBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the left border. |
static void |
setRightBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the right border. |
static void |
setTextRotate(MutableAttributeSet a,
int angle)
Sets the text rotate angle in degree. |
static void |
setTopBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the top border. |
static void |
setUnderlineStyle(MutableAttributeSet a,
CellStyle.UnderlineStyle underlineStyle)
Sets the underlineStyle. |
static void |
setUpBorder(MutableAttributeSet a,
CellStyle.Border border)
Sets the up border. |
static void |
setValueList(MutableAttributeSet a,
List valueList)
Sets the value list. |
static void |
setVerticalAlignment(MutableAttributeSet a,
int alignment)
Sets the vertical alignment. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALIGN_TOP
public static final int ALIGN_CENTER
public static final int ALIGN_BOTTOM
public static final int ALIGN_JUSTIFIED
public static final Object TOP_BORDER
public static final Object LEFT_BORDER
public static final Object BOTTOM_BORDER
public static final Object RIGHT_BORDER
public static final Object UP_BORDER
public static final Object DOWN_BORDER
public static final Object VERTICAL_ALIGNMENT
public static final Object HYPERLINK
public static final Object COMMENT
public static final Object FORMAT
public static final Object UNDERLINE_STYLE
public static final Object TEXT_ROTATE
public static final Object FORMAT_STYLE
public static final Object VALUE_LIST
public static final Object FORMAT_PATTERN
| Method Detail |
|---|
public static void setVerticalAlignment(MutableAttributeSet a,
int alignment)
alignment - the vertical alignmentgetVerticalAlignment(javax.swing.text.AttributeSet)public static int getVerticalAlignment(AttributeSet a)
setVerticalAlignment(javax.swing.text.MutableAttributeSet, int)
public static void setTopBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetTopBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getTopBorder(AttributeSet a)
a - the attribute set
setTopBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setLeftBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetLeftBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getLeftBorder(AttributeSet a)
a - the attribute set
setLeftBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setBottomBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetBottomBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getBottomBorder(AttributeSet a)
a - the attribute set
setBottomBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setRightBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetRightBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getRightBorder(AttributeSet a)
a - the attribute set
setRightBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setUpBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetUpBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getUpBorder(AttributeSet a)
a - the attribute set
setUpBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setDownBorder(MutableAttributeSet a,
CellStyle.Border border)
a - the attribute setborder - the bordergetDownBorder(javax.swing.text.AttributeSet)public static CellStyle.Border getDownBorder(AttributeSet a)
a - the attribute set
setDownBorder(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Border)
public static void setHyperlink(MutableAttributeSet a,
CellStyle.Hyperlink link)
a - the attribute setlink - the hyperlinkgetHyperlink(javax.swing.text.AttributeSet)public static CellStyle.Hyperlink getHyperlink(AttributeSet a)
a - the attribute set
setHyperlink(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Hyperlink)
public static void setComment(MutableAttributeSet a,
CellStyle.Comment comment)
a - the attribute setcomment - the commentgetComment(javax.swing.text.AttributeSet)public static CellStyle.Comment getComment(AttributeSet a)
a - the attribute set
setComment(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.Comment)
public static void setFormat(MutableAttributeSet a,
Format format)
a - the attribute setformat - the formatgetFormat(javax.swing.text.AttributeSet)public static Format getFormat(AttributeSet a)
a - the attribute set
setFormat(javax.swing.text.MutableAttributeSet, java.text.Format)
public static void setUnderlineStyle(MutableAttributeSet a,
CellStyle.UnderlineStyle underlineStyle)
a - the attribute setunderlineStyle - the underlineStylegetUnderlineStyle(javax.swing.text.AttributeSet)public static CellStyle.UnderlineStyle getUnderlineStyle(AttributeSet a)
a - the attribute set
setUnderlineStyle(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.CellStyle.UnderlineStyle)
public static void setTextRotate(MutableAttributeSet a,
int angle)
a - the attribute setangle - the text rotate anglegetTextRotate(javax.swing.text.AttributeSet)public static int getTextRotate(AttributeSet a)
a - the attribute set
setTextRotate(javax.swing.text.MutableAttributeSet, int)
public static void setFormatStyle(MutableAttributeSet a,
FormatStyle formatStyle)
a - the attribute setformatStyle - the format stylegetFormatStyle(javax.swing.text.AttributeSet)public static FormatStyle getFormatStyle(AttributeSet a)
a - the attribute set
setFormatStyle(javax.swing.text.MutableAttributeSet, com.zfqjava.swing.cell.FormatStyle)
public static void setValueList(MutableAttributeSet a,
List valueList)
a - the attribute setvalueList - the value listgetValueList(javax.swing.text.AttributeSet)public static List getValueList(AttributeSet a)
a - the attribute set
setValueList(javax.swing.text.MutableAttributeSet, java.util.List)public String toString()
toString in class Object
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||