public final class StyleRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
StyleRecord()
creates a new style record, initially set to 'built-in'
|
StyleRecord(RecordInputStream in) |
StyleRecord(StyleRecord other) |
Modifier and Type | Method and Description |
---|---|
StyleRecord |
copy() |
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
java.lang.String |
getName()
get the style's name
(获取样式的名称)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
int |
getXFIndex()
get the actual index of the style extended format record
(获取样式扩展格式记录的实际索引)
|
boolean |
isBuiltin() |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setBuiltinStyle(int builtinStyleId)
if this is a builtin style set the number of the built in style
(如果这是内置样式,则设置内置样式的编号)
|
void |
setName(java.lang.String name)
set the style's name
(设置样式的名称)
|
void |
setOutlineStyleLevel(int level)
set the row or column level of the style (if builtin 1||2)
(设置样式的行或列级别(如果内置 1||2))
|
void |
setXFIndex(int xfIndex)
set the actual index of the style extended format record
(设置样式扩展格式记录的实际索引)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public StyleRecord()
public StyleRecord(StyleRecord other)
public StyleRecord(RecordInputStream in)
public void setXFIndex(int xfIndex)
xfIndex
- of the xf record
(xfIndex - xf 记录的)
public int getXFIndex()
getXFIndex()
public void setName(java.lang.String name)
name
- of the style
(名称 - 样式)
public void setBuiltinStyle(int builtinStyleId)
builtinStyleId
- style number (0-7)
(builtinStyleId - 样式编号 (0-7))
public void setOutlineStyleLevel(int level)
level
- The outline-level
(level - 大纲级别)
public boolean isBuiltin()
public java.lang.String getName()
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by RecordBase.getRecordSize()
} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).
serialize
in class
StandardRecord
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
public short getSid()
Record
public StyleRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.