|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.table.CellBorders
public final class CellBorders
Borders of a cell. Allows to set different styles for different sides of a cell.
Type of border elements: left, right, top, bottom, diagonal up (/),
diagonal down (\) and diagonal cross (X).
DiagonalBorderType
,
BorderStyle
,
Cell
Field Summary | |
---|---|
static CellBorders |
DEFAULT
|
Method Summary | |
---|---|
void |
clear()
Clear all borders and make them invisible. |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this map for equality. |
BorderStyleId |
getBottomBorder()
Return id of the bottom border style. |
BorderStyleId |
getDiagonalBorder()
Return id of the diagonal border style. |
DiagonalBorderType |
getDiagonalBorderType()
Return type of the diagonal border. |
BorderStyleId |
getLeftBorder()
Return id of the left border style. |
BorderStyleId |
getRightBorder()
Return id of the right border style. |
BorderStyleId |
getTopBorder()
Return id of the top border style. |
int |
hashCode()
Returns the hash code value for this collection. |
boolean |
isEmpty()
Returns true if all borders don't have any style assigned. |
void |
setBottomBorder(BorderStyle bottom)
Set bottom border style. |
void |
setBottomBorder(BorderStyleId bottom)
Set id of the bottom border style. |
void |
setDiagonalBorder(DiagonalBorderType diagonalType,
BorderStyle diagonal)
Set style and type of the diagonal border. |
void |
setDiagonalBorder(DiagonalBorderType diagonalType,
BorderStyleId diagonal)
Set id and type of the diagonal border style. |
void |
setDiagonalBorderType(DiagonalBorderType diagonalType)
Set type of the diagonal border. |
void |
setLeftBorder(BorderStyle left)
Set left border style. |
void |
setLeftBorder(BorderStyleId left)
Set id of the left border style. |
void |
setRightBorder(BorderStyle right)
Set right border style. |
void |
setRightBorder(BorderStyleId right)
Set id of the right border style. |
void |
setTopBorder(BorderStyle top)
Set top border style. |
void |
setTopBorder(BorderStyleId top)
Set id of the top border style. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CellBorders DEFAULT
Method Detail |
---|
public final BorderStyleId getLeftBorder()
public final void setLeftBorder(BorderStyleId left)
left
- style's id to set.public final void setLeftBorder(BorderStyle left)
left
- style to set.public final BorderStyleId getRightBorder()
public final void setRightBorder(BorderStyleId right)
right
- style's id to set.public final void setRightBorder(BorderStyle right)
right
- style to set.public final BorderStyleId getTopBorder()
public final void setTopBorder(BorderStyleId top)
top
- style's id to set.public final void setTopBorder(BorderStyle top)
top
- style to set.public final BorderStyleId getBottomBorder()
public final void setBottomBorder(BorderStyleId bottom)
bottom
- style's id to set.public final void setBottomBorder(BorderStyle bottom)
bottom
- style to set.public final BorderStyleId getDiagonalBorder()
public final void setDiagonalBorder(DiagonalBorderType diagonalType, BorderStyleId diagonal)
diagonalType
- diagonal border type.diagonal
- style's id to set.public final void setDiagonalBorder(DiagonalBorderType diagonalType, BorderStyle diagonal)
diagonalType
- diagonal border type.diagonal
- style to set.public final DiagonalBorderType getDiagonalBorderType()
public final void setDiagonalBorderType(DiagonalBorderType diagonalType)
diagonalType
- diagonal border type.public void clear()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |