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 |
clone()
Deprecated.
|
LegendRecord |
copy() |
protected int |
getDataSize() |
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.
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
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 java.lang.String toString()
Record
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
@Deprecated @Removal(version="5.0.0") public LegendRecord clone()
clone
in class java.lang.Object
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()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.