|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.RecordBase org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.StandardRecord org.apache.poi.hssf.record.chart.LegendRecord
public final class LegendRecord
Defines a legend for a chart.
Field Summary | |
---|---|
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 Summary | |
---|---|
LegendRecord()
|
|
LegendRecord(RecordInputStream in)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
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) |
Methods inherited from class org.apache.poi.hssf.record.StandardRecord |
---|
getRecordSize, serialize |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
cloneViaReserialise, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public LegendRecord()
public LegendRecord(RecordInputStream in)
Method Detail |
---|
public java.lang.String toString()
Record
toString
in class Record
public void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
}
serialize
in class StandardRecord
protected int getDataSize()
getDataSize
in class StandardRecord
public short getSid()
Record
getSid
in class Record
public java.lang.Object clone()
clone
in class 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |