public final class LegendRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
static byte |
SPACING_CLOSE |
static byte |
SPACING_MEDIUM |
static byte |
SPACING_OPEN |
static byte |
TYPE_BOTTOM |
static byte |
TYPE_CORNER |
static byte |
TYPE_LEFT |
static byte |
TYPE_RIGHT |
static byte |
TYPE_TOP |
static byte |
TYPE_UNDOCKED |
Constructor and Description |
---|
LegendRecord() |
LegendRecord(LegendRecord other) |
LegendRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
LegendRecord |
copy() |
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
short |
getOptions()
Get the options field for the Legend record.
|
short |
getSid()
return the non static version of the id for this record.
|
byte |
getSpacing()
Get the spacing field for the Legend record.
|
byte |
getType()
Get the type field for the Legend record.
|
int |
getXAxisUpperLeft()
Get the x axis upper left field for the Legend record.
|
int |
getXSize()
Get the x size field for the Legend record.
|
int |
getYAxisUpperLeft()
Get the y axis upper left field for the Legend record.
|
int |
getYSize()
Get the y size field for the Legend record.
|
boolean |
isAutoPosition()
automatic positioning (1=docked)
|
boolean |
isAutoSeries()
excel 5 only (true)
|
boolean |
isAutoXPositioning()
position of legend on the x axis is automatic
|
boolean |
isAutoYPositioning()
position of legend on the y axis is automatic
|
boolean |
isDataTable()
1 if chart contains data table
|
boolean |
isVertical()
vertical or horizontal legend (1 or 0 respectively).
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setAutoPosition(boolean value)
Sets the auto position field value.
|
void |
setAutoSeries(boolean value)
Sets the auto series field value.
|
void |
setAutoXPositioning(boolean value)
Sets the auto x positioning field value.
|
void |
setAutoYPositioning(boolean value)
Sets the auto y positioning field value.
|
void |
setDataTable(boolean value)
Sets the data table field value.
|
void |
setOptions(short field_7_options)
Set the options field for the Legend record.
|
void |
setSpacing(byte field_6_spacing)
Set the spacing field for the Legend record.
|
void |
setType(byte field_5_type)
Set the type field for the Legend record.
|
void |
setVertical(boolean value)
Sets the vertical field value.
|
void |
setXAxisUpperLeft(int field_1_xAxisUpperLeft)
Set the x axis upper left field for the Legend record.
|
void |
setXSize(int field_3_xSize)
Set the x size field for the Legend record.
|
void |
setYAxisUpperLeft(int field_2_yAxisUpperLeft)
Set the y axis upper left field for the Legend record.
|
void |
setYSize(int field_4_ySize)
Set the y size field for the Legend 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 byte TYPE_BOTTOM
public static final byte TYPE_CORNER
public static final byte TYPE_TOP
public static final byte TYPE_RIGHT
public static final byte TYPE_LEFT
public static final byte TYPE_UNDOCKED
public static final byte SPACING_CLOSE
public static final byte SPACING_MEDIUM
public static final byte SPACING_OPEN
public LegendRecord()
public LegendRecord(LegendRecord other)
public LegendRecord(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 LegendRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
public int getXAxisUpperLeft()
public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)
public int getYAxisUpperLeft()
public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)
public int getXSize()
public void setXSize(int field_3_xSize)
public int getYSize()
public void setYSize(int field_4_ySize)
public byte getType()
public void setType(byte field_5_type)
field_5_type
- One of
TYPE_BOTTOM
TYPE_CORNER
TYPE_TOP
TYPE_RIGHT
TYPE_LEFT
TYPE_UNDOCKEDpublic byte getSpacing()
public void setSpacing(byte field_6_spacing)
field_6_spacing
- One of
SPACING_CLOSE
SPACING_MEDIUM
SPACING_OPENpublic short getOptions()
public void setOptions(short field_7_options)
public void setAutoPosition(boolean value)
public boolean isAutoPosition()
public void setAutoSeries(boolean value)
public boolean isAutoSeries()
public void setAutoXPositioning(boolean value)
public boolean isAutoXPositioning()
public void setAutoYPositioning(boolean value)
public boolean isAutoYPositioning()
public void setVertical(boolean value)
public boolean isVertical()
public void setDataTable(boolean value)
public boolean isDataTable()
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.