public final class PatternFormatting extends java.lang.Object implements Duplicatable, GenericRecord
Modifier and Type | Field and Description |
---|---|
static short |
ALT_BARS
Wide dots
(宽点)
|
static short |
BIG_SPOTS
Large spots
(大斑点)
|
static short |
BRICKS
Brick-like layout
(砖式布局)
|
static short |
DIAMONDS
Diamonds
(钻石)
|
static short |
FINE_DOTS
Small fine dots
(细小的点)
|
static short |
LEAST_DOTS
Least Dots
(最少点)
|
static short |
LESS_DOTS
Less Dots
(少点)
|
static short |
NO_FILL
No background
(无背景)
|
static short |
SOLID_FOREGROUND
Solidly filled
(实心填充)
|
static short |
SPARSE_DOTS
Sparse dots
(稀疏点)
|
static short |
SQUARES
Squares
(正方形)
|
static short |
THICK_BACKWARD_DIAG
Thick backward facing diagonals
(厚的后向对角线)
|
static short |
THICK_FORWARD_DIAG
Thick forward facing diagonals
(厚的前向对角线)
|
static short |
THICK_HORZ_BANDS
Thick horizontal bands
(粗水平带)
|
static short |
THICK_VERT_BANDS
Thick vertical bands
(粗垂直带)
|
static short |
THIN_BACKWARD_DIAG
Thin backward diagonal
(细后对角线)
|
static short |
THIN_FORWARD_DIAG
Thin forward diagonal
(细前对角线)
|
static short |
THIN_HORZ_BANDS
Thin horizontal bands
(细水平带)
|
static short |
THIN_VERT_BANDS
Thin vertical bands
(细垂直带)
|
Constructor and Description |
---|
PatternFormatting() |
PatternFormatting(LittleEndianInput in) |
PatternFormatting(PatternFormatting other) |
Modifier and Type | Method and Description |
---|---|
PatternFormatting |
copy() |
int |
getDataLength() |
int |
getFillBackgroundColor() |
int |
getFillForegroundColor() |
int |
getFillPattern() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
void |
serialize(LittleEndianOutput out) |
void |
setFillBackgroundColor(int bg)
set the background fill color.
(设置背景填充颜色。)
|
void |
setFillForegroundColor(int fg)
set the foreground fill color
(设置前景填充颜色)
|
void |
setFillPattern(int fp)
setting fill pattern
(设置填充图案)
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public static final short NO_FILL
public static final short SOLID_FOREGROUND
public static final short FINE_DOTS
public static final short ALT_BARS
public static final short SPARSE_DOTS
public static final short THICK_HORZ_BANDS
public static final short THICK_VERT_BANDS
public static final short THICK_BACKWARD_DIAG
public static final short THICK_FORWARD_DIAG
public static final short BIG_SPOTS
public static final short BRICKS
public static final short THIN_HORZ_BANDS
public static final short THIN_VERT_BANDS
public static final short THIN_BACKWARD_DIAG
public static final short THIN_FORWARD_DIAG
public static final short SQUARES
public static final short DIAMONDS
public static final short LESS_DOTS
public static final short LEAST_DOTS
public PatternFormatting()
public PatternFormatting(PatternFormatting other)
public PatternFormatting(LittleEndianInput in)
public int getDataLength()
public void setFillPattern(int fp)
fp
- fill pattern
(fp - 填充图案)
NO_FILL
,
SOLID_FOREGROUND
,
FINE_DOTS
,
ALT_BARS
,
SPARSE_DOTS
,
THICK_HORZ_BANDS
,
THICK_VERT_BANDS
,
THICK_BACKWARD_DIAG
,
THICK_FORWARD_DIAG
,
BIG_SPOTS
,
BRICKS
,
THIN_HORZ_BANDS
,
THIN_VERT_BANDS
,
THIN_BACKWARD_DIAG
,
THIN_FORWARD_DIAG
,
SQUARES
,
DIAMONDS
public int getFillPattern()
public void setFillBackgroundColor(int bg)
public int getFillBackgroundColor()
HSSFPalette.getColor(short)
public void setFillForegroundColor(int fg)
public int getFillForegroundColor()
HSSFPalette.getColor(short)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public java.lang.String toString()
toString
in class
java.lang.Object
public PatternFormatting copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public void serialize(LittleEndianOutput out)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.