Package org.apache.poi.ddf
Class EscherOptRecord
- java.lang.Object
-
- org.apache.poi.ddf.EscherRecord
-
- org.apache.poi.ddf.AbstractEscherOptRecord
-
- org.apache.poi.ddf.EscherOptRecord
-
- All Implemented Interfaces:
Duplicatable,GenericRecord
public class EscherOptRecord extends AbstractEscherOptRecord
The opt record is used to store property values for a shape. It is the key to determining the attributes of a shape. Properties can be of two types: simple or complex. Simple types are fixed length. Complex properties are variable length.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRECORD_DESCRIPTIONstatic shortRECORD_ID-
Fields inherited from class org.apache.poi.ddf.EscherRecord
MAX_NUMBER_OF_CHILDREN
-
-
Constructor Summary
Constructors Constructor Description EscherOptRecord()EscherOptRecord(EscherOptRecord other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EscherOptRecordcopy()java.lang.EnumgetGenericRecordType()shortgetInstance()Returns the instance part of the option record.shortgetOptions()Automatically recalculate the correct optionjava.lang.StringgetRecordName()Subclasses should return the short name for this escher record.shortgetVersion()Returns the version part of the option record.voidsetVersion(short value)Sets the version part of record-
Methods inherited from class org.apache.poi.ddf.AbstractEscherOptRecord
addEscherProperty, fillFields, getEscherProperties, getEscherProperty, getGenericProperties, getRecordSize, lookup, lookup, removeEscherProperty, serialize, setEscherProperty, sortProperties
-
Methods inherited from class org.apache.poi.ddf.EscherRecord
display, fillFields, fillFields, getChild, getChildRecords, getGenericChildren, getMaxNumberOfChildren, getRecordId, isContainerRecord, readHeader, readInstance, serialize, serialize, setChildRecords, setInstance, setMaxNumberOfChildren, setOptions, setRecordId, toString, toXml, toXml
-
-
-
-
Constructor Detail
-
EscherOptRecord
public EscherOptRecord()
-
EscherOptRecord
public EscherOptRecord(EscherOptRecord other)
-
-
Method Detail
-
getInstance
public short getInstance()
Description copied from class:EscherRecordReturns the instance part of the option record.- Overrides:
getInstancein classEscherRecord- Returns:
- The instance part of the record
-
getOptions
@Internal public short getOptions()
Automatically recalculate the correct option- Overrides:
getOptionsin classEscherRecord- Returns:
- The options field for this record. All records have one.
-
getRecordName
public java.lang.String getRecordName()
Description copied from class:EscherRecordSubclasses should return the short name for this escher record.- Specified by:
getRecordNamein classEscherRecord- Returns:
- the short name for this escher record
-
getVersion
public short getVersion()
Description copied from class:EscherRecordReturns the version part of the option record.- Overrides:
getVersionin classEscherRecord- Returns:
- The version part of the option record
-
setVersion
public void setVersion(short value)
Description copied from class:EscherRecordSets the version part of record- Overrides:
setVersionin classEscherRecord- Parameters:
value- version part value
-
getGenericRecordType
public java.lang.Enum getGenericRecordType()
-
copy
public EscherOptRecord copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classEscherRecord- Returns:
- a deep copy of the implementing class / instance
-
-