Top Description Fields Constructors Methods
org.apache.poi.hssf.record.chart

public final Class AreaFormatRecord

extends StandardRecord
Class Inheritance
Imports
java.util.Collections, .LinkedHashMap, .Map, java.util.function.Supplier, org.apache.poi.hssf.record.HSSFRecordTypes, .RecordInputStream, .StandardRecord, org.apache.poi.util.BitField, .BitFieldFactory, .LittleEndianOutput

The area format record is used to define the colours and patterns for an area.

Field Summary

Modifier and TypeField and Description
private static final BitField
private int
private int
private short
private short
private short
private short
private static final BitField
public static final short

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public AreaFormatRecord
public short
getBackcolorIndex()

Get the backcolor index field for the AreaFormat record.

public int
getBackgroundColor()

Get the background color field for the AreaFormat record.

protected int
public short
getForecolorIndex()

Get the forecolor index field for the AreaFormat record.

public int
getForegroundColor()

Get the foreground color field for the AreaFormat record.

public short
getFormatFlags()

Get the format flags field for the AreaFormat record.

public Map<String, Supplier<?>>
public HSSFRecordTypes
public short
getPattern()

Get the pattern field for the AreaFormat record.

public short
getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

public boolean

Returns:

the automatic field value.
isAutomatic
()

automatic formatting

public boolean

Returns:

the invert field value.
isInvert
()

swap foreground and background colours when data is negative

public void
serialize(LittleEndianOutput
the output object
out
)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record.

public void
setAutomatic(boolean value)

Sets the automatic field value.

public void
setBackcolorIndex(short field_6_backcolorIndex)

Set the backcolor index field for the AreaFormat record.

public void
setBackgroundColor(int field_2_backgroundColor)

Set the background color field for the AreaFormat record.

public void
setForecolorIndex(short field_5_forecolorIndex)

Set the forecolor index field for the AreaFormat record.

public void
setForegroundColor(int field_1_foregroundColor)

Set the foreground color field for the AreaFormat record.

public void
setFormatFlags(short field_4_formatFlags)

Set the format flags field for the AreaFormat record.

public void
setInvert(boolean value)

Sets the invert field value.

public void
setPattern(short field_3_pattern)

Set the pattern field for the AreaFormat record.

Inherited from org.apache.poi.hssf.record.StandardRecord:
getRecordSizeserialize

Field Detail

automaticback to summary
private static final BitField automatic
field_1_foregroundColorback to summary
private int field_1_foregroundColor
field_2_backgroundColorback to summary
private int field_2_backgroundColor
field_3_patternback to summary
private short field_3_pattern
field_4_formatFlagsback to summary
private short field_4_formatFlags
field_5_forecolorIndexback to summary
private short field_5_forecolorIndex
field_6_backcolorIndexback to summary
private short field_6_backcolorIndex
invertback to summary
private static final BitField invert
sidback to summary
public static final short sid

Constructor Detail

AreaFormatRecordback to summary
public AreaFormatRecord()
AreaFormatRecordback to summary
public AreaFormatRecord(RecordInputStream in)
AreaFormatRecordback to summary
public AreaFormatRecord(AreaFormatRecord other)

Method Detail

copyback to summary
public AreaFormatRecord copy()

Implements abstract org.apache.poi.hssf.record.StandardRecord.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:AreaFormatRecord

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getBackcolorIndexback to summary
public short getBackcolorIndex()

Get the backcolor index field for the AreaFormat record.

getBackgroundColorback to summary
public int getBackgroundColor()

Get the background color field for the AreaFormat record.

getDataSizeback to summary
protected int getDataSize()

Implements abstract org.apache.poi.hssf.record.StandardRecord.getDataSize.

getForecolorIndexback to summary
public short getForecolorIndex()

Get the forecolor index field for the AreaFormat record.

getForegroundColorback to summary
public int getForegroundColor()

Get the foreground color field for the AreaFormat record.

getFormatFlagsback to summary
public short getFormatFlags()

Get the format flags field for the AreaFormat record.

getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public HSSFRecordTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Implements abstract org.apache.poi.hssf.record.Record.getGenericRecordType.

Annotations
@Override
getPatternback to summary
public short getPattern()

Get the pattern field for the AreaFormat record.

getSidback to summary
public short getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

Doc from org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

Returns:short

he id for this record

isAutomaticback to summary
public boolean isAutomatic()

automatic formatting

Returns:boolean

the automatic field value.

isInvertback to summary
public boolean isInvert()

swap foreground and background colours when data is negative

Returns:boolean

the invert field value.

serializeback to summary
public void serialize(LittleEndianOutput out)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Doc from org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.

The number of bytes written must equal the record size reported by org.apache.poi.hssf.record.Record#getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).

Parameters
out:LittleEndianOutput

the output object

setAutomaticback to summary
public void setAutomatic(boolean value)

Sets the automatic field value. automatic formatting

setBackcolorIndexback to summary
public void setBackcolorIndex(short field_6_backcolorIndex)

Set the backcolor index field for the AreaFormat record.

setBackgroundColorback to summary
public void setBackgroundColor(int field_2_backgroundColor)

Set the background color field for the AreaFormat record.

setForecolorIndexback to summary
public void setForecolorIndex(short field_5_forecolorIndex)

Set the forecolor index field for the AreaFormat record.

setForegroundColorback to summary
public void setForegroundColor(int field_1_foregroundColor)

Set the foreground color field for the AreaFormat record.

setFormatFlagsback to summary
public void setFormatFlags(short field_4_formatFlags)

Set the format flags field for the AreaFormat record.

setInvertback to summary
public void setInvert(boolean value)

Sets the invert field value. swap foreground and background colours when data is negative

setPatternback to summary
public void setPattern(short field_3_pattern)

Set the pattern field for the AreaFormat record.