public final class BorderFormatting extends java.lang.Object implements Duplicatable, GenericRecord
| Modifier and Type | Field and Description |
|---|---|
static short |
BORDER_DASH_DOT
dash-dot border
|
static short |
BORDER_DASH_DOT_DOT
dash-dot-dot border
|
static short |
BORDER_DASHED
dash border
|
static short |
BORDER_DOTTED
hair-line border
|
static short |
BORDER_DOUBLE
double-line border
|
static short |
BORDER_HAIR
dot border
|
static short |
BORDER_MEDIUM
Medium border
|
static short |
BORDER_MEDIUM_DASH_DOT
medium dash-dot border
|
static short |
BORDER_MEDIUM_DASH_DOT_DOT
medium dash-dot-dot border
|
static short |
BORDER_MEDIUM_DASHED
Medium dashed border
|
static short |
BORDER_NONE
No border
|
static short |
BORDER_SLANTED_DASH_DOT
slanted dash-dot border
|
static short |
BORDER_THICK
Thick border
|
static short |
BORDER_THIN
Thin border
|
| Constructor and Description |
|---|
BorderFormatting() |
BorderFormatting(BorderFormatting other) |
BorderFormatting(LittleEndianInput in)
Creates new FontFormatting
|
| Modifier and Type | Method and Description |
|---|---|
BorderFormatting |
copy() |
int |
getBorderBottom()
get the type of border to use for the bottom border of the cell
|
int |
getBorderDiagonal()
get the type of border to use for the diagonal border of the cell
|
int |
getBorderLeft()
get the type of border to use for the left border of the cell
|
int |
getBorderRight()
get the type of border to use for the right border of the cell
|
int |
getBorderTop()
get the type of border to use for the top border of the cell
|
int |
getBottomBorderColor()
get the color to use for the bottom border
|
int |
getDataLength() |
int |
getDiagonalBorderColor()
get the color to use for the diagonal border
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getLeftBorderColor()
get the color to use for the left border
|
int |
getRightBorderColor()
get the color to use for the right border
|
int |
getTopBorderColor()
get the color to use for the top border
|
boolean |
isBackwardDiagonalOn() |
boolean |
isForwardDiagonalOn() |
int |
serialize(int offset,
byte[] data) |
void |
serialize(LittleEndianOutput out) |
void |
setBackwardDiagonalOn(boolean on)
Of/off top left to bottom right line
|
void |
setBorderBottom(int border)
set the type of border to use for the bottom border of the cell
|
void |
setBorderDiagonal(int border)
set the type of border to use for the diagonal border of the cell
|
void |
setBorderLeft(int border)
set the type of border to use for the left border of the cell
|
void |
setBorderRight(int border)
set the type of border to use for the right border of the cell
|
void |
setBorderTop(int border)
set the type of border to use for the top border of the cell
|
void |
setBottomBorderColor(int color)
set the color to use for the bottom border
|
void |
setDiagonalBorderColor(int color)
set the color to use for the diagonal borders
|
void |
setForwardDiagonalOn(boolean on)
Of/off bottom left to top right line
|
void |
setLeftBorderColor(int color)
set the color to use for the left border
|
void |
setRightBorderColor(int color)
set the color to use for the right border
|
void |
setTopBorderColor(int color)
set the color to use for the top border
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildren, getGenericRecordTypepublic static final short BORDER_NONE
public static final short BORDER_THIN
public static final short BORDER_MEDIUM
public static final short BORDER_DASHED
public static final short BORDER_HAIR
public static final short BORDER_THICK
public static final short BORDER_DOUBLE
public static final short BORDER_DOTTED
public static final short BORDER_MEDIUM_DASHED
public static final short BORDER_DASH_DOT
public static final short BORDER_MEDIUM_DASH_DOT
public static final short BORDER_DASH_DOT_DOT
public static final short BORDER_MEDIUM_DASH_DOT_DOT
public static final short BORDER_SLANTED_DASH_DOT
public BorderFormatting()
public BorderFormatting(BorderFormatting other)
public BorderFormatting(LittleEndianInput in)
public int getDataLength()
public void setBorderLeft(int border)
border - typeBORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic int getBorderLeft()
BORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic void setBorderRight(int border)
border - typeBORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic int getBorderRight()
BORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic void setBorderTop(int border)
border - typeBORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic int getBorderTop()
BORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic void setBorderBottom(int border)
border - typeBORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic int getBorderBottom()
BORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic void setBorderDiagonal(int border)
border - typeBORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic int getBorderDiagonal()
BORDER_NONE,
BORDER_THIN,
BORDER_MEDIUM,
BORDER_DASHED,
BORDER_DOTTED,
BORDER_THICK,
BORDER_DOUBLE,
BORDER_HAIR,
BORDER_MEDIUM_DASHED,
BORDER_DASH_DOT,
BORDER_MEDIUM_DASH_DOT,
BORDER_DASH_DOT_DOT,
BORDER_MEDIUM_DASH_DOT_DOT,
BORDER_SLANTED_DASH_DOTpublic void setLeftBorderColor(int color)
color - The index of the color definitionpublic int getLeftBorderColor()
HSSFPalette.getColor(short)public void setRightBorderColor(int color)
color - The index of the color definitionpublic int getRightBorderColor()
HSSFPalette.getColor(short)public void setTopBorderColor(int color)
color - The index of the color definitionpublic int getTopBorderColor()
HSSFPalette.getColor(short)public void setBottomBorderColor(int color)
color - The index of the color definitionpublic int getBottomBorderColor()
HSSFPalette.getColor(short)public void setDiagonalBorderColor(int color)
color - The index of the color definitionpublic int getDiagonalBorderColor()
HSSFPalette.getColor(short)public void setForwardDiagonalOn(boolean on)
on - - if true - on, otherwise offpublic void setBackwardDiagonalOn(boolean on)
on - - if true - on, otherwise offpublic boolean isForwardDiagonalOn()
true if forward diagonal is onpublic boolean isBackwardDiagonalOn()
true if backward diagonal is onpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic java.lang.String toString()
toString in class java.lang.Objectpublic BorderFormatting copy()
copy in interface Duplicatablepublic int serialize(int offset,
byte[] data)
public void serialize(LittleEndianOutput out)
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.