|
||||||||||
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.TextRecord
public final class TextRecord
The text record is used to define text stored on a chart.
Constructor Summary | |
---|---|
TextRecord()
|
|
TextRecord(RecordInputStream in)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
short |
getDataLabelPlacement()
|
protected int |
getDataSize()
|
short |
getDisplayMode()
Get the display mode field for the Text record. |
int |
getHeight()
Get the height field for the Text record. |
byte |
getHorizontalAlignment()
Get the horizontal alignment field for the Text record. |
short |
getIndexOfColorValue()
Get the index of color value field for the Text record. |
short |
getOptions1()
Get the options1 field for the Text record. |
short |
getOptions2()
Get the options2 field for the Text record. |
int |
getRgbColor()
Get the rgbColor field for the Text record. |
short |
getRotation()
|
short |
getSid()
return the non static version of the id for this record. |
short |
getTextRotation()
Get the text rotation field for the Text record. |
byte |
getVerticalAlignment()
Get the vertical alignment field for the Text record. |
int |
getWidth()
Get the width field for the Text record. |
int |
getX()
Get the x field for the Text record. |
int |
getY()
Get the y field for the Text record. |
boolean |
isAutoBackground()
|
boolean |
isAutoColor()
true = automaticly selected colour, false = user-selected |
boolean |
isAutoGeneratedText()
|
boolean |
isAutoLabelDeleted()
|
boolean |
isGenerated()
|
boolean |
isShowBubbleSizes()
|
boolean |
isShowCategoryLabelAsPercentage()
|
boolean |
isShowKey()
true = draw legend |
boolean |
isShowLabel()
|
boolean |
isShowValue()
false = text is category label |
boolean |
isShowValueAsPercentage()
|
boolean |
isVertical()
true = text is vertical |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record. |
void |
setAutoBackground(boolean value)
Sets the auto background field value. |
void |
setAutoColor(boolean value)
Sets the auto color field value. |
void |
setAutoGeneratedText(boolean value)
Sets the auto generated text field value. |
void |
setAutoLabelDeleted(boolean value)
Sets the auto label deleted field value. |
void |
setDataLabelPlacement(short value)
Sets the data label placement field value. |
void |
setDisplayMode(short field_3_displayMode)
Set the display mode field for the Text record. |
void |
setGenerated(boolean value)
Sets the generated field value. |
void |
setHeight(int field_8_height)
Set the height field for the Text record. |
void |
setHorizontalAlignment(byte field_1_horizontalAlignment)
Set the horizontal alignment field for the Text record. |
void |
setIndexOfColorValue(short field_10_indexOfColorValue)
Set the index of color value field for the Text record. |
void |
setOptions1(short field_9_options1)
Set the options1 field for the Text record. |
void |
setOptions2(short field_11_options2)
Set the options2 field for the Text record. |
void |
setRgbColor(int field_4_rgbColor)
Set the rgbColor field for the Text record. |
void |
setRotation(short value)
Sets the rotation field value. |
void |
setShowBubbleSizes(boolean value)
Sets the show bubble sizes field value. |
void |
setShowCategoryLabelAsPercentage(boolean value)
Sets the show category label as percentage field value. |
void |
setShowKey(boolean value)
Sets the show key field value. |
void |
setShowLabel(boolean value)
Sets the show label field value. |
void |
setShowValue(boolean value)
Sets the show value field value. |
void |
setShowValueAsPercentage(boolean value)
Sets the show value as percentage field value. |
void |
setTextRotation(short field_12_textRotation)
Set the text rotation field for the Text record. |
void |
setVertical(boolean value)
Sets the vertical field value. |
void |
setVerticalAlignment(byte field_2_verticalAlignment)
Set the vertical alignment field for the Text record. |
void |
setWidth(int field_7_width)
Set the width field for the Text record. |
void |
setX(int field_5_x)
Set the x field for the Text record. |
void |
setY(int field_6_y)
Set the y field for the Text 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 HORIZONTAL_ALIGNMENT_LEFT
public static final byte HORIZONTAL_ALIGNMENT_CENTER
public static final byte HORIZONTAL_ALIGNMENT_BOTTOM
public static final byte HORIZONTAL_ALIGNMENT_JUSTIFY
public static final byte VERTICAL_ALIGNMENT_TOP
public static final byte VERTICAL_ALIGNMENT_CENTER
public static final byte VERTICAL_ALIGNMENT_BOTTOM
public static final byte VERTICAL_ALIGNMENT_JUSTIFY
public static final short DISPLAY_MODE_TRANSPARENT
public static final short DISPLAY_MODE_OPAQUE
public static final short ROTATION_NONE
public static final short ROTATION_TOP_TO_BOTTOM
public static final short ROTATION_ROTATED_90_DEGREES
public static final short ROTATION_ROTATED_90_DEGREES_CLOCKWISE
public static final short DATA_LABEL_PLACEMENT_CHART_DEPENDENT
public static final short DATA_LABEL_PLACEMENT_OUTSIDE
public static final short DATA_LABEL_PLACEMENT_INSIDE
public static final short DATA_LABEL_PLACEMENT_CENTER
public static final short DATA_LABEL_PLACEMENT_AXIS
public static final short DATA_LABEL_PLACEMENT_ABOVE
public static final short DATA_LABEL_PLACEMENT_BELOW
public static final short DATA_LABEL_PLACEMENT_LEFT
public static final short DATA_LABEL_PLACEMENT_RIGHT
public static final short DATA_LABEL_PLACEMENT_AUTO
public static final short DATA_LABEL_PLACEMENT_USER_MOVED
Constructor Detail |
---|
public TextRecord()
public TextRecord(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 byte getHorizontalAlignment()
public void setHorizontalAlignment(byte field_1_horizontalAlignment)
field_1_horizontalAlignment
- One of
HORIZONTAL_ALIGNMENT_LEFT
HORIZONTAL_ALIGNMENT_CENTER
HORIZONTAL_ALIGNMENT_BOTTOM
HORIZONTAL_ALIGNMENT_JUSTIFYpublic byte getVerticalAlignment()
public void setVerticalAlignment(byte field_2_verticalAlignment)
field_2_verticalAlignment
- One of
VERTICAL_ALIGNMENT_TOP
VERTICAL_ALIGNMENT_CENTER
VERTICAL_ALIGNMENT_BOTTOM
VERTICAL_ALIGNMENT_JUSTIFYpublic short getDisplayMode()
public void setDisplayMode(short field_3_displayMode)
field_3_displayMode
- One of
DISPLAY_MODE_TRANSPARENT
DISPLAY_MODE_OPAQUEpublic int getRgbColor()
public void setRgbColor(int field_4_rgbColor)
public int getX()
public void setX(int field_5_x)
public int getY()
public void setY(int field_6_y)
public int getWidth()
public void setWidth(int field_7_width)
public int getHeight()
public void setHeight(int field_8_height)
public short getOptions1()
public void setOptions1(short field_9_options1)
public short getIndexOfColorValue()
public void setIndexOfColorValue(short field_10_indexOfColorValue)
public short getOptions2()
public void setOptions2(short field_11_options2)
public short getTextRotation()
public void setTextRotation(short field_12_textRotation)
public void setAutoColor(boolean value)
public boolean isAutoColor()
public void setShowKey(boolean value)
public boolean isShowKey()
public void setShowValue(boolean value)
public boolean isShowValue()
public void setVertical(boolean value)
public boolean isVertical()
public void setAutoGeneratedText(boolean value)
public boolean isAutoGeneratedText()
public void setGenerated(boolean value)
public boolean isGenerated()
public void setAutoLabelDeleted(boolean value)
public boolean isAutoLabelDeleted()
public void setAutoBackground(boolean value)
public boolean isAutoBackground()
public void setRotation(short value)
public short getRotation()
public void setShowCategoryLabelAsPercentage(boolean value)
public boolean isShowCategoryLabelAsPercentage()
public void setShowValueAsPercentage(boolean value)
public boolean isShowValueAsPercentage()
public void setShowBubbleSizes(boolean value)
public boolean isShowBubbleSizes()
public void setShowLabel(boolean value)
public boolean isShowLabel()
public void setDataLabelPlacement(short value)
public short getDataLabelPlacement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |