public class LegendRecord extends Record
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(RecordInputStream in)
Constructs a Legend record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
short |
getOptions()
Get the options field for the Legend record.
|
int |
getRecordSize()
Size of record (exluding 4 byte header)
|
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).
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
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.
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
Checks the sid matches the expected side for this record
|
isInValueSection, isValue, 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(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
validateSid
in class Record
id
- the expected sid.protected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
getRecordSize
in class Record
public short getSid()
Record
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 © 2014 Open Microscopy Environment