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.
|
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.
|
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)
|
void |
setXFIndex(int xfIndex)
set the actual index of the style extended format record
|
getRecordSize, serializecloneViaReserialise, serialize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildrenpublic static final short sid
public StyleRecord()
public StyleRecord(StyleRecord other)
public StyleRecord(RecordInputStream in)
public void setXFIndex(int xfIndex)
xfIndex - of the xf recordpublic int getXFIndex()
getXFIndex()public void setName(java.lang.String name)
name - of the stylepublic void setBuiltinStyle(int builtinStyleId)
builtinStyleId - style number (0-7)public void setOutlineStyleLevel(int level)
level - The outline-levelpublic boolean isBuiltin()
public java.lang.String getName()
protected int getDataSize()
getDataSize in class StandardRecordpublic 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 StandardRecordout - the output objectpublic short getSid()
Recordpublic StyleRecord copy()
copy in interface Duplicatablecopy in class StandardRecordpublic HSSFRecordTypes getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in class Recordpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.