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:
org.apache.poi.common.Duplicatable
,GenericRecord
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
short
Returns the instance part of the option record.short
Automatically recalculate the correct optionSubclasses should return the short name for this escher record.short
Returns the version part of the option record.void
setVersion
(short value) Sets the version part of recordMethods 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, getChild, getChildRecords, getGenericChildren, getRecordId, isContainerRecord, serialize, serialize, setChildRecords, setInstance, setOptions, setRecordId, toString, toXml, toXml
-
Field Details
-
RECORD_ID
public static final short RECORD_ID -
RECORD_DESCRIPTION
-
-
Constructor Details
-
EscherOptRecord
public EscherOptRecord() -
EscherOptRecord
-
-
Method Details
-
getInstance
public short getInstance()Description copied from class:EscherRecord
Returns the instance part of the option record.- Overrides:
getInstance
in classEscherRecord
- Returns:
- The instance part of the record
-
getOptions
Automatically recalculate the correct option- Overrides:
getOptions
in classEscherRecord
- Returns:
- The options field for this record. All records have one.
-
getRecordName
Description copied from class:EscherRecord
Subclasses should return the short name for this escher record.- Specified by:
getRecordName
in classEscherRecord
- Returns:
- the short name for this escher record
-
getVersion
public short getVersion()Description copied from class:EscherRecord
Returns the version part of the option record.- Overrides:
getVersion
in classEscherRecord
- Returns:
- The version part of the option record
-
setVersion
public void setVersion(short value) Description copied from class:EscherRecord
Sets the version part of record- Overrides:
setVersion
in classEscherRecord
- Parameters:
value
- version part value
-
getGenericRecordType
-
copy
- Specified by:
copy
in interfaceorg.apache.poi.common.Duplicatable
- Specified by:
copy
in classEscherRecord
-