public final class LineFormatRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
LINE_PATTERN_DARK_GRAY_PATTERN |
static short |
LINE_PATTERN_DASH |
static short |
LINE_PATTERN_DASH_DOT |
static short |
LINE_PATTERN_DASH_DOT_DOT |
static short |
LINE_PATTERN_DOT |
static short |
LINE_PATTERN_LIGHT_GRAY_PATTERN |
static short |
LINE_PATTERN_MEDIUM_GRAY_PATTERN |
static short |
LINE_PATTERN_NONE |
static short |
LINE_PATTERN_SOLID |
static short |
sid |
static short |
WEIGHT_HAIRLINE |
static short |
WEIGHT_MEDIUM |
static short |
WEIGHT_NARROW |
static short |
WEIGHT_WIDE |
Constructor and Description |
---|
LineFormatRecord() |
LineFormatRecord(LineFormatRecord other) |
LineFormatRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
LineFormatRecord |
copy() |
short |
getColourPaletteIndex()
Get the colour palette index field for the LineFormat record.
|
protected int |
getDataSize() |
short |
getFormat()
Get the format field for the LineFormat record.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getLineColor()
Get the line color field for the LineFormat record.
|
short |
getLinePattern()
Get the line pattern field for the LineFormat record.
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getWeight()
Get the weight field for the LineFormat record.
|
boolean |
isAuto()
automatic format
|
boolean |
isDrawTicks()
draw tick marks
|
boolean |
isUnknown()
book marks this as reserved = 0 but it seems to do something
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setAuto(boolean value)
Sets the auto field value.
|
void |
setColourPaletteIndex(short field_5_colourPaletteIndex)
Set the colour palette index field for the LineFormat record.
|
void |
setDrawTicks(boolean value)
Sets the draw ticks field value.
|
void |
setFormat(short field_4_format)
Set the format field for the LineFormat record.
|
void |
setLineColor(int field_1_lineColor)
Set the line color field for the LineFormat record.
|
void |
setLinePattern(short field_2_linePattern)
Set the line pattern field for the LineFormat record.
|
void |
setUnknown(boolean value)
Sets the unknown field value.
|
void |
setWeight(short field_3_weight)
Set the weight field for the LineFormat record.
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final short LINE_PATTERN_SOLID
public static final short LINE_PATTERN_DASH
public static final short LINE_PATTERN_DOT
public static final short LINE_PATTERN_DASH_DOT
public static final short LINE_PATTERN_DASH_DOT_DOT
public static final short LINE_PATTERN_NONE
public static final short LINE_PATTERN_DARK_GRAY_PATTERN
public static final short LINE_PATTERN_MEDIUM_GRAY_PATTERN
public static final short LINE_PATTERN_LIGHT_GRAY_PATTERN
public static final short WEIGHT_HAIRLINE
public static final short WEIGHT_NARROW
public static final short WEIGHT_MEDIUM
public static final short WEIGHT_WIDE
public LineFormatRecord()
public LineFormatRecord(LineFormatRecord other)
public LineFormatRecord(RecordInputStream in)
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
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public short getSid()
Record
public LineFormatRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
public int getLineColor()
public void setLineColor(int field_1_lineColor)
public short getLinePattern()
public void setLinePattern(short field_2_linePattern)
field_2_linePattern
- One of
LINE_PATTERN_SOLID
LINE_PATTERN_DASH
LINE_PATTERN_DOT
LINE_PATTERN_DASH_DOT
LINE_PATTERN_DASH_DOT_DOT
LINE_PATTERN_NONE
LINE_PATTERN_DARK_GRAY_PATTERN
LINE_PATTERN_MEDIUM_GRAY_PATTERN
LINE_PATTERN_LIGHT_GRAY_PATTERNpublic short getWeight()
public void setWeight(short field_3_weight)
field_3_weight
- One of
WEIGHT_HAIRLINE
WEIGHT_NARROW
WEIGHT_MEDIUM
WEIGHT_WIDEpublic short getFormat()
public void setFormat(short field_4_format)
public short getColourPaletteIndex()
public void setColourPaletteIndex(short field_5_colourPaletteIndex)
public void setAuto(boolean value)
public boolean isAuto()
public void setDrawTicks(boolean value)
public boolean isDrawTicks()
public void setUnknown(boolean value)
public boolean isUnknown()
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in class Record
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.