Package org.apache.poi.hssf.record
Class FtCfSubRecord
java.lang.Object
org.apache.poi.hssf.record.SubRecord
org.apache.poi.hssf.record.FtCfSubRecord
- All Implemented Interfaces:
Cloneable
The FtCf structure specifies the clipboard format of the picture-type Obj record containing this FtCf.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final short
Specifies the format of the picture is a bitmap.static final short
static final short
Specifies the format of the picture is an enhanced metafile.static final short
static final short
Specifies the picture is in an unspecified format that is neither and enhanced metafile nor a bitmap. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newFtPioGrbitSubRecord
and fill its data with the default valuesFtCfSubRecord
(LittleEndianInput in, int size) -
Method Summary
Methods inherited from class org.apache.poi.hssf.record.SubRecord
createSubRecord, isTerminating, serialize
-
Field Details
-
sid
public static final short sid- See Also:
-
length
public static final short length- See Also:
-
METAFILE_BIT
public static final short METAFILE_BITSpecifies the format of the picture is an enhanced metafile.- See Also:
-
BITMAP_BIT
public static final short BITMAP_BITSpecifies the format of the picture is a bitmap.- See Also:
-
UNSPECIFIED_BIT
public static final short UNSPECIFIED_BITSpecifies the picture is in an unspecified format that is neither and enhanced metafile nor a bitmap.- See Also:
-
-
Constructor Details
-
FtCfSubRecord
public FtCfSubRecord()Construct a newFtPioGrbitSubRecord
and fill its data with the default values -
FtCfSubRecord
-
-
Method Details
-
toString
Convert this record to string. Used by BiffViewer and other utilities. -
serialize
Serialize the record data into the supplied array of bytes -
getDataSize
protected int getDataSize()- Specified by:
getDataSize
in classSubRecord
- Returns:
- the size of the data for this record (which is always 4 bytes less than the total record size). Note however, that ushort encoded after the record sid is usually but not always the data size.
-
getSid
public short getSid()- Returns:
- id of this record.
-
clone
-
getFlags
public short getFlags() -
setFlags
public void setFlags(short flags)
-