public final class EscherAggregate extends AbstractEscherHolderRecord
It gets even worse when you start looking at TXO records.
So what we do with this class is aggregate lazily. That is we don't aggregate the MSODRAWING -> OBJ records unless we need to modify them.
At first document contains 4 types of records which belong to drawing layer. There are can be such sequence of record:
DrawingRecord ContinueRecord ... ContinueRecord ObjRecord | TextObjectRecord ..... ContinueRecord ... ContinueRecord ObjRecord | TextObjectRecord NoteRecord ... NoteRecord
To work with shapes we have to read data from Drawing and Continue records into single array of bytes and build escher(office art) records tree from this array. Each shape in drawing layer matches corresponding ObjRecord Each textbox matches corresponding TextObjectRecord
ObjRecord contains information about shape. Thus each ObjRecord corresponds EscherContainerRecord(SPGR)
EscherAggrefate contains also NoteRecords NoteRecords must be serial
Modifier and Type | Field and Description |
---|---|
static short |
sid |
static short |
ST_ACCENTBORDERCALLOUT1
Deprecated.
|
static short |
ST_ACCENTBORDERCALLOUT2
Deprecated.
|
static short |
ST_ACCENTBORDERCALLOUT3
Deprecated.
|
static short |
ST_ACCENTBORDERCALLOUT90
Deprecated.
|
static short |
ST_ACCENTCALLOUT1
Deprecated.
|
static short |
ST_ACCENTCALLOUT2
Deprecated.
|
static short |
ST_ACCENTCALLOUT3
Deprecated.
|
static short |
ST_ACCENTCALLOUT90
Deprecated.
|
static short |
ST_ACTIONBUTTONBACKPREVIOUS
Deprecated.
|
static short |
ST_ACTIONBUTTONBEGINNING
Deprecated.
|
static short |
ST_ACTIONBUTTONBLANK
Deprecated.
|
static short |
ST_ACTIONBUTTONDOCUMENT
Deprecated.
|
static short |
ST_ACTIONBUTTONEND
Deprecated.
|
static short |
ST_ACTIONBUTTONFORWARDNEXT
Deprecated.
|
static short |
ST_ACTIONBUTTONHELP
Deprecated.
|
static short |
ST_ACTIONBUTTONHOME
Deprecated.
|
static short |
ST_ACTIONBUTTONINFORMATION
Deprecated.
|
static short |
ST_ACTIONBUTTONMOVIE
Deprecated.
|
static short |
ST_ACTIONBUTTONRETURN
Deprecated.
|
static short |
ST_ACTIONBUTTONSOUND
Deprecated.
|
static short |
ST_ARC
Deprecated.
use
ShapeType.ARC |
static short |
ST_ARROW
Deprecated.
|
static short |
ST_BALLOON
Deprecated.
|
static short |
ST_BENTARROW
Deprecated.
|
static short |
ST_BENTCONNECTOR2
Deprecated.
|
static short |
ST_BENTCONNECTOR3
Deprecated.
|
static short |
ST_BENTCONNECTOR4
Deprecated.
|
static short |
ST_BENTCONNECTOR5
Deprecated.
|
static short |
ST_BENTUPARROW
Deprecated.
|
static short |
ST_BEVEL
Deprecated.
use
ShapeType.BEVEL |
static short |
ST_BLOCKARC
Deprecated.
|
static short |
ST_BORDERCALLOUT1
Deprecated.
|
static short |
ST_BORDERCALLOUT2
Deprecated.
|
static short |
ST_BORDERCALLOUT3
Deprecated.
|
static short |
ST_BORDERCALLOUT90
Deprecated.
|
static short |
ST_BRACEPAIR
Deprecated.
|
static short |
ST_BRACKETPAIR
Deprecated.
|
static short |
ST_CALLOUT1
Deprecated.
|
static short |
ST_CALLOUT2
Deprecated.
|
static short |
ST_CALLOUT3
Deprecated.
|
static short |
ST_CALLOUT90
Deprecated.
|
static short |
ST_CAN
Deprecated.
use
ShapeType.CAN |
static short |
ST_CHEVRON
Deprecated.
|
static short |
ST_CIRCULARARROW
Deprecated.
|
static short |
ST_CLOUDCALLOUT
Deprecated.
|
static short |
ST_CUBE
Deprecated.
use
ShapeType.CUBE |
static short |
ST_CURVEDCONNECTOR2
Deprecated.
|
static short |
ST_CURVEDCONNECTOR3
Deprecated.
|
static short |
ST_CURVEDCONNECTOR4
Deprecated.
|
static short |
ST_CURVEDCONNECTOR5
Deprecated.
|
static short |
ST_CURVEDDOWNARROW
Deprecated.
|
static short |
ST_CURVEDLEFTARROW
Deprecated.
|
static short |
ST_CURVEDRIGHTARROW
Deprecated.
|
static short |
ST_CURVEDUPARROW
Deprecated.
|
static short |
ST_DIAMOND
Deprecated.
|
static short |
ST_DONUT
Deprecated.
use
ShapeType.DONUT |
static short |
ST_DOUBLEWAVE
Deprecated.
|
static short |
ST_DOWNARROW
Deprecated.
|
static short |
ST_DOWNARROWCALLOUT
Deprecated.
|
static short |
ST_ELLIPSE
Deprecated.
|
static short |
ST_ELLIPSERIBBON
Deprecated.
|
static short |
ST_ELLIPSERIBBON2
Deprecated.
|
static short |
ST_FLOWCHARTALTERNATEPROCESS
Deprecated.
|
static short |
ST_FLOWCHARTCOLLATE
Deprecated.
|
static short |
ST_FLOWCHARTCONNECTOR
Deprecated.
|
static short |
ST_FLOWCHARTDECISION
Deprecated.
|
static short |
ST_FLOWCHARTDELAY
Deprecated.
|
static short |
ST_FLOWCHARTDISPLAY
Deprecated.
|
static short |
ST_FLOWCHARTDOCUMENT
Deprecated.
|
static short |
ST_FLOWCHARTEXTRACT
Deprecated.
|
static short |
ST_FLOWCHARTINPUTOUTPUT
Deprecated.
|
static short |
ST_FLOWCHARTINTERNALSTORAGE
Deprecated.
|
static short |
ST_FLOWCHARTMAGNETICDISK
Deprecated.
|
static short |
ST_FLOWCHARTMAGNETICDRUM
Deprecated.
|
static short |
ST_FLOWCHARTMAGNETICTAPE
Deprecated.
|
static short |
ST_FLOWCHARTMANUALINPUT
Deprecated.
|
static short |
ST_FLOWCHARTMANUALOPERATION
Deprecated.
|
static short |
ST_FLOWCHARTMERGE
Deprecated.
|
static short |
ST_FLOWCHARTMULTIDOCUMENT
Deprecated.
|
static short |
ST_FLOWCHARTOFFLINESTORAGE
Deprecated.
|
static short |
ST_FLOWCHARTOFFPAGECONNECTOR
Deprecated.
|
static short |
ST_FLOWCHARTONLINESTORAGE
Deprecated.
|
static short |
ST_FLOWCHARTOR
Deprecated.
|
static short |
ST_FLOWCHARTPREDEFINEDPROCESS
Deprecated.
|
static short |
ST_FLOWCHARTPREPARATION
Deprecated.
|
static short |
ST_FLOWCHARTPROCESS
Deprecated.
|
static short |
ST_FLOWCHARTPUNCHEDCARD
Deprecated.
|
static short |
ST_FLOWCHARTPUNCHEDTAPE
Deprecated.
|
static short |
ST_FLOWCHARTSORT
Deprecated.
|
static short |
ST_FLOWCHARTSUMMINGJUNCTION
Deprecated.
|
static short |
ST_FLOWCHARTTERMINATOR
Deprecated.
|
static short |
ST_FOLDEDCORNER
Deprecated.
|
static short |
ST_HEART
Deprecated.
use
ShapeType.HEART |
static short |
ST_HEXAGON
Deprecated.
|
static short |
ST_HOMEPLATE
Deprecated.
|
static short |
ST_HORIZONTALSCROLL
Deprecated.
|
static short |
ST_HOSTCONTROL
Deprecated.
|
static short |
ST_IRREGULARSEAL1
Deprecated.
|
static short |
ST_IRREGULARSEAL2
Deprecated.
|
static short |
ST_ISOCELESTRIANGLE
Deprecated.
|
static short |
ST_LEFTARROW
Deprecated.
|
static short |
ST_LEFTARROWCALLOUT
Deprecated.
|
static short |
ST_LEFTBRACE
Deprecated.
|
static short |
ST_LEFTBRACKET
Deprecated.
|
static short |
ST_LEFTRIGHTARROW
Deprecated.
|
static short |
ST_LEFTRIGHTARROWCALLOUT
Deprecated.
|
static short |
ST_LEFTRIGHTUPARROW
Deprecated.
|
static short |
ST_LEFTUPARROW
Deprecated.
|
static short |
ST_LIGHTNINGBOLT
Deprecated.
|
static short |
ST_LINE
Deprecated.
use
ShapeType.LINE |
static short |
ST_MIN
Deprecated.
not used
|
static short |
ST_MOON
Deprecated.
use
ShapeType.MOON |
static short |
ST_NIL
Deprecated.
not used
|
static short |
ST_NOSMOKING
Deprecated.
|
static short |
ST_NOT_PRIMATIVE
Deprecated.
|
static short |
ST_NOTCHEDCIRCULARARROW
Deprecated.
|
static short |
ST_NOTCHEDRIGHTARROW
Deprecated.
|
static short |
ST_OCTAGON
Deprecated.
|
static short |
ST_PARALLELOGRAM
Deprecated.
|
static short |
ST_PENTAGON
Deprecated.
|
static short |
ST_PICTUREFRAME
Deprecated.
use
ShapeType.FRAME |
static short |
ST_PLAQUE
Deprecated.
use
ShapeType.PLAQUE |
static short |
ST_PLUS
Deprecated.
use
ShapeType.PLUS |
static short |
ST_QUADARROW
Deprecated.
|
static short |
ST_QUADARROWCALLOUT
Deprecated.
|
static short |
ST_RECTANGLE
Deprecated.
use
ShapeType.RECT |
static short |
ST_RIBBON
Deprecated.
use
ShapeType.RIBBON |
static short |
ST_RIBBON2
Deprecated.
|
static short |
ST_RIGHTARROWCALLOUT
Deprecated.
|
static short |
ST_RIGHTBRACE
Deprecated.
|
static short |
ST_RIGHTBRACKET
Deprecated.
|
static short |
ST_RIGHTTRIANGLE
Deprecated.
|
static short |
ST_ROUNDRECTANGLE
Deprecated.
|
static short |
ST_SEAL
Deprecated.
use
ShapeType.SEAL |
static short |
ST_SEAL16
Deprecated.
|
static short |
ST_SEAL24
Deprecated.
|
static short |
ST_SEAL32
Deprecated.
|
static short |
ST_SEAL4
Deprecated.
use
ShapeType.STAR_4 |
static short |
ST_SEAL8
Deprecated.
use
ShapeType.STAR_8 |
static short |
ST_SMILEYFACE
Deprecated.
|
static short |
ST_STAR
Deprecated.
use
ShapeType.STAR_5 |
static short |
ST_STRAIGHTCONNECTOR1
Deprecated.
|
static short |
ST_STRIPEDRIGHTARROW
Deprecated.
|
static short |
ST_SUN
Deprecated.
use
ShapeType.SUN |
static short |
ST_TEXTARCHDOWNCURVE
Deprecated.
|
static short |
ST_TEXTARCHDOWNPOUR
Deprecated.
|
static short |
ST_TEXTARCHUPCURVE
Deprecated.
|
static short |
ST_TEXTARCHUPPOUR
Deprecated.
|
static short |
ST_TEXTBOX
Deprecated.
|
static short |
ST_TEXTBUTTONCURVE
Deprecated.
|
static short |
ST_TEXTBUTTONPOUR
Deprecated.
|
static short |
ST_TEXTCANDOWN
Deprecated.
|
static short |
ST_TEXTCANUP
Deprecated.
|
static short |
ST_TEXTCASCADEDOWN
Deprecated.
|
static short |
ST_TEXTCASCADEUP
Deprecated.
|
static short |
ST_TEXTCHEVRON
Deprecated.
|
static short |
ST_TEXTCHEVRONINVERTED
Deprecated.
|
static short |
ST_TEXTCIRCLECURVE
Deprecated.
|
static short |
ST_TEXTCIRCLEPOUR
Deprecated.
|
static short |
ST_TEXTCURVE
Deprecated.
|
static short |
ST_TEXTCURVEDOWN
Deprecated.
|
static short |
ST_TEXTCURVEUP
Deprecated.
|
static short |
ST_TEXTDEFLATE
Deprecated.
|
static short |
ST_TEXTDEFLATEBOTTOM
Deprecated.
|
static short |
ST_TEXTDEFLATEINFLATE
Deprecated.
|
static short |
ST_TEXTDEFLATEINFLATEDEFLATE
Deprecated.
|
static short |
ST_TEXTDEFLATETOP
Deprecated.
|
static short |
ST_TEXTFADEDOWN
Deprecated.
|
static short |
ST_TEXTFADELEFT
Deprecated.
|
static short |
ST_TEXTFADERIGHT
Deprecated.
|
static short |
ST_TEXTFADEUP
Deprecated.
|
static short |
ST_TEXTHEXAGON
Deprecated.
|
static short |
ST_TEXTINFLATE
Deprecated.
|
static short |
ST_TEXTINFLATEBOTTOM
Deprecated.
|
static short |
ST_TEXTINFLATETOP
Deprecated.
|
static short |
ST_TEXTOCTAGON
Deprecated.
|
static short |
ST_TEXTONCURVE
Deprecated.
|
static short |
ST_TEXTONRING
Deprecated.
|
static short |
ST_TEXTPLAINTEXT
Deprecated.
|
static short |
ST_TEXTRING
Deprecated.
|
static short |
ST_TEXTRINGINSIDE
Deprecated.
|
static short |
ST_TEXTRINGOUTSIDE
Deprecated.
|
static short |
ST_TEXTSIMPLE
Deprecated.
|
static short |
ST_TEXTSLANTDOWN
Deprecated.
|
static short |
ST_TEXTSLANTUP
Deprecated.
|
static short |
ST_TEXTSTOP
Deprecated.
|
static short |
ST_TEXTTRIANGLE
Deprecated.
|
static short |
ST_TEXTTRIANGLEINVERTED
Deprecated.
|
static short |
ST_TEXTWAVE
Deprecated.
|
static short |
ST_TEXTWAVE1
Deprecated.
|
static short |
ST_TEXTWAVE2
Deprecated.
|
static short |
ST_TEXTWAVE3
Deprecated.
|
static short |
ST_TEXTWAVE4
Deprecated.
|
static short |
ST_THICKARROW
Deprecated.
|
static short |
ST_TRAPEZOID
Deprecated.
|
static short |
ST_UPARROW
Deprecated.
|
static short |
ST_UPARROWCALLOUT
Deprecated.
|
static short |
ST_UPDOWNARROW
Deprecated.
|
static short |
ST_UPDOWNARROWCALLOUT
Deprecated.
|
static short |
ST_UTURNARROW
Deprecated.
|
static short |
ST_VERTICALSCROLL
Deprecated.
|
static short |
ST_WAVE
Deprecated.
use
ShapeType.WAVE |
static short |
ST_WEDGEELLIPSECALLOUT
Deprecated.
|
static short |
ST_WEDGERECTCALLOUT
Deprecated.
|
static short |
ST_WEDGERRECTCALLOUT
Deprecated.
|
Constructor and Description |
---|
EscherAggregate(boolean createDefaultTree)
create new EscherAggregate
|
EscherAggregate(EscherAggregate other) |
Modifier and Type | Method and Description |
---|---|
void |
addTailRecord(NoteRecord note)
Add tail record to existing map
|
void |
associateShapeToObjRecord(EscherRecord r,
Record objRecord)
Associates an escher record to an OBJ record or a TXO record.
|
EscherAggregate |
copy() |
static EscherAggregate |
createAggregate(java.util.List<RecordBase> records,
int locFirstDrawingRecord)
Collapses the drawing records into an aggregate.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
static int |
getMaxRecordLength() |
NoteRecord |
getNoteRecordByObj(ObjRecord obj) |
protected java.lang.String |
getRecordName() |
int |
getRecordSize()
gives the current serialized size of the record.
|
java.util.Map<EscherRecord,Record> |
getShapeToObjMapping() |
short |
getSid()
return the non static version of the id for this record.
|
java.util.Map<java.lang.Integer,NoteRecord> |
getTailRecords() |
void |
removeShapeToObjRecord(EscherRecord rec)
Remove echerRecord and associated to it Obj or TextObj record
|
void |
removeTailRecord(NoteRecord note)
Remove tail record from the existing map
|
int |
serialize(int offset,
byte[] data)
Serializes this aggregate to a byte array.
|
void |
setDgId(short dgId)
EscherDgContainer
-EscherSpgrContainer
-EscherDgRecord - set id for this record
set id for DgRecord of DgContainer
|
void |
setMainSpRecordId(int shapeId)
EscherDgContainer
-EscherSpgrContainer
--EscherSpContainer
---EscherSpRecord -set id for this record
---***
--***
-EscherDgRecord
set id for the sp record of the first spContainer in main spgrConatiner
|
static void |
setMaxRecordLength(int length) |
java.lang.String |
toXml(java.lang.String tab)
Calculates the xml representation of this record.
|
addEscherRecord, addEscherRecord, clearEscherRecords, convertRawBytesToEscherRecords, decode, findFirstWithId, getEscherContainer, getEscherRecord, getEscherRecords, getGenericChildren, getRawData, join, processContinueRecord, setRawData
cloneViaReserialise, serialize, toString
public static final short sid
@Deprecated @Removal(version="5.3") public static final short ST_MIN
@Deprecated @Removal(version="5.3") public static final short ST_NOT_PRIMATIVE
ShapeType.NOT_PRIMITIVE
@Deprecated @Removal(version="5.3") public static final short ST_RECTANGLE
ShapeType.RECT
@Deprecated @Removal(version="5.3") public static final short ST_ROUNDRECTANGLE
ShapeType.ROUND_RECT
@Deprecated @Removal(version="5.3") public static final short ST_ELLIPSE
ShapeType.ELLIPSE
@Deprecated @Removal(version="5.3") public static final short ST_DIAMOND
ShapeType.DIAMOND
@Deprecated @Removal(version="5.3") public static final short ST_ISOCELESTRIANGLE
ShapeType.TRIANGLE
@Deprecated @Removal(version="5.3") public static final short ST_RIGHTTRIANGLE
ShapeType.RT_TRIANGLE
@Deprecated @Removal(version="5.3") public static final short ST_PARALLELOGRAM
ShapeType.PARALLELOGRAM
@Deprecated @Removal(version="5.3") public static final short ST_TRAPEZOID
ShapeType.TRAPEZOID
@Deprecated @Removal(version="5.3") public static final short ST_HEXAGON
ShapeType.HEXAGON
@Deprecated @Removal(version="5.3") public static final short ST_OCTAGON
ShapeType.OCTAGON
@Deprecated @Removal(version="5.3") public static final short ST_PLUS
ShapeType.PLUS
@Deprecated @Removal(version="5.3") public static final short ST_STAR
ShapeType.STAR_5
@Deprecated @Removal(version="5.3") public static final short ST_ARROW
ShapeType.RIGHT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_THICKARROW
ShapeType.THICK_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_HOMEPLATE
ShapeType.HOME_PLATE
@Deprecated @Removal(version="5.3") public static final short ST_CUBE
ShapeType.CUBE
@Deprecated @Removal(version="5.3") public static final short ST_BALLOON
ShapeType.BALLOON
@Deprecated @Removal(version="5.3") public static final short ST_SEAL
ShapeType.SEAL
@Deprecated @Removal(version="5.3") public static final short ST_ARC
ShapeType.ARC
@Deprecated @Removal(version="5.3") public static final short ST_LINE
ShapeType.LINE
@Deprecated @Removal(version="5.3") public static final short ST_PLAQUE
ShapeType.PLAQUE
@Deprecated @Removal(version="5.3") public static final short ST_CAN
ShapeType.CAN
@Deprecated @Removal(version="5.3") public static final short ST_DONUT
ShapeType.DONUT
@Deprecated @Removal(version="5.3") public static final short ST_TEXTSIMPLE
ShapeType.TEXT_SIMPLE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTOCTAGON
ShapeType.TEXT_OCTAGON
@Deprecated @Removal(version="5.3") public static final short ST_TEXTHEXAGON
ShapeType.TEXT_HEXAGON
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCURVE
ShapeType.TEXT_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTWAVE
ShapeType.TEXT_WAVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTRING
ShapeType.TEXT_RING
@Deprecated @Removal(version="5.3") public static final short ST_TEXTONCURVE
ShapeType.TEXT_ON_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTONRING
ShapeType.TEXT_ON_RING
@Deprecated @Removal(version="5.3") public static final short ST_STRAIGHTCONNECTOR1
ShapeType.STRAIGHT_CONNECTOR_1
@Deprecated @Removal(version="5.3") public static final short ST_BENTCONNECTOR2
ShapeType.BENT_CONNECTOR_2
@Deprecated @Removal(version="5.3") public static final short ST_BENTCONNECTOR3
ShapeType.BENT_CONNECTOR_3
@Deprecated @Removal(version="5.3") public static final short ST_BENTCONNECTOR4
ShapeType.BENT_CONNECTOR_4
@Deprecated @Removal(version="5.3") public static final short ST_BENTCONNECTOR5
ShapeType.BENT_CONNECTOR_5
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDCONNECTOR2
ShapeType.CURVED_CONNECTOR_2
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDCONNECTOR3
ShapeType.CURVED_CONNECTOR_3
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDCONNECTOR4
ShapeType.CURVED_CONNECTOR_3
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDCONNECTOR5
ShapeType.CURVED_CONNECTOR_5
@Deprecated @Removal(version="5.3") public static final short ST_CALLOUT1
ShapeType.CALLOUT_1
@Deprecated @Removal(version="5.3") public static final short ST_CALLOUT2
ShapeType.CALLOUT_2
@Deprecated @Removal(version="5.3") public static final short ST_CALLOUT3
ShapeType.CALLOUT_3
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTCALLOUT1
ShapeType.ACCENT_CALLOUT_1
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTCALLOUT2
ShapeType.ACCENT_CALLOUT_2
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTCALLOUT3
ShapeType.ACCENT_CALLOUT_3
@Deprecated @Removal(version="5.3") public static final short ST_BORDERCALLOUT1
ShapeType.BORDER_CALLOUT_1
@Deprecated @Removal(version="5.3") public static final short ST_BORDERCALLOUT2
ShapeType.BORDER_CALLOUT_2
@Deprecated @Removal(version="5.3") public static final short ST_BORDERCALLOUT3
ShapeType.BORDER_CALLOUT_3
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTBORDERCALLOUT1
ShapeType.ACCENT_BORDER_CALLOUT_1
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTBORDERCALLOUT2
ShapeType.ACCENT_BORDER_CALLOUT_2
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTBORDERCALLOUT3
ShapeType.ACCENT_BORDER_CALLOUT_3
@Deprecated @Removal(version="5.3") public static final short ST_RIBBON
ShapeType.RIBBON
@Deprecated @Removal(version="5.3") public static final short ST_RIBBON2
ShapeType.RIBBON_2
@Deprecated @Removal(version="5.3") public static final short ST_CHEVRON
ShapeType.CHEVRON
@Deprecated @Removal(version="5.3") public static final short ST_PENTAGON
ShapeType.PENTAGON
@Deprecated @Removal(version="5.3") public static final short ST_NOSMOKING
ShapeType.NO_SMOKING
@Deprecated @Removal(version="5.3") public static final short ST_SEAL8
ShapeType.STAR_8
@Deprecated @Removal(version="5.3") public static final short ST_SEAL16
ShapeType.STAR_16
@Deprecated @Removal(version="5.3") public static final short ST_SEAL32
ShapeType.STAR_32
@Deprecated @Removal(version="5.3") public static final short ST_WEDGERECTCALLOUT
ShapeType.WEDGE_RECT_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_WEDGERRECTCALLOUT
ShapeType.WEDGE_ROUND_RECT_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_WEDGEELLIPSECALLOUT
ShapeType.WEDGE_ELLIPSE_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_WAVE
ShapeType.WAVE
@Deprecated @Removal(version="5.3") public static final short ST_FOLDEDCORNER
ShapeType.FOLDED_CORNER
@Deprecated @Removal(version="5.3") public static final short ST_LEFTARROW
ShapeType.LEFT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_DOWNARROW
ShapeType.DOWN_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_UPARROW
ShapeType.UP_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_LEFTRIGHTARROW
ShapeType.LEFT_RIGHT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_UPDOWNARROW
ShapeType.UP_DOWN_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_IRREGULARSEAL1
ShapeType.IRREGULAR_SEAL_1
@Deprecated @Removal(version="5.3") public static final short ST_IRREGULARSEAL2
ShapeType.IRREGULAR_SEAL_2
@Deprecated @Removal(version="5.3") public static final short ST_LIGHTNINGBOLT
ShapeType.LIGHTNING_BOLT
@Deprecated @Removal(version="5.3") public static final short ST_HEART
ShapeType.HEART
@Deprecated @Removal(version="5.3") public static final short ST_PICTUREFRAME
ShapeType.FRAME
@Deprecated @Removal(version="5.3") public static final short ST_QUADARROW
ShapeType.QUAD_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_LEFTARROWCALLOUT
ShapeType.LEFT_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_RIGHTARROWCALLOUT
ShapeType.RIGHT_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_UPARROWCALLOUT
ShapeType.UP_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_DOWNARROWCALLOUT
ShapeType.DOWN_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_LEFTRIGHTARROWCALLOUT
ShapeType.LEFT_RIGHT_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_UPDOWNARROWCALLOUT
ShapeType.UP_DOWN_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_QUADARROWCALLOUT
ShapeType.QUAD_ARROW_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_BEVEL
ShapeType.BEVEL
@Deprecated @Removal(version="5.3") public static final short ST_LEFTBRACKET
ShapeType.LEFT_BRACKET
@Deprecated @Removal(version="5.3") public static final short ST_RIGHTBRACKET
ShapeType.RIGHT_BRACKET
@Deprecated @Removal(version="5.3") public static final short ST_LEFTBRACE
ShapeType.LEFT_BRACE
@Deprecated @Removal(version="5.3") public static final short ST_RIGHTBRACE
ShapeType.RIGHT_BRACE
@Deprecated @Removal(version="5.3") public static final short ST_LEFTUPARROW
ShapeType.LEFT_UP_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_BENTUPARROW
ShapeType.BENT_UP_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_BENTARROW
ShapeType.BENT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_SEAL24
ShapeType.STAR_24
@Deprecated @Removal(version="5.3") public static final short ST_STRIPEDRIGHTARROW
ShapeType.STRIPED_RIGHT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_NOTCHEDRIGHTARROW
ShapeType.NOTCHED_RIGHT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_BLOCKARC
ShapeType.BLOCK_ARC
@Deprecated @Removal(version="5.3") public static final short ST_SMILEYFACE
ShapeType.SMILEY_FACE
@Deprecated @Removal(version="5.3") public static final short ST_VERTICALSCROLL
ShapeType.VERTICAL_SCROLL
@Deprecated @Removal(version="5.3") public static final short ST_HORIZONTALSCROLL
ShapeType.HORIZONTAL_SCROLL
@Deprecated @Removal(version="5.3") public static final short ST_CIRCULARARROW
ShapeType.CIRCULAR_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_NOTCHEDCIRCULARARROW
ShapeType.NOTCHED_CIRCULAR_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_UTURNARROW
ShapeType.UTURN_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDRIGHTARROW
ShapeType.CURVED_RIGHT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDLEFTARROW
ShapeType.CURVED_LEFT_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDUPARROW
ShapeType.CURVED_UP_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_CURVEDDOWNARROW
ShapeType.CURVED_DOWN_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_CLOUDCALLOUT
ShapeType.CLOUD_CALLOUT
@Deprecated @Removal(version="5.3") public static final short ST_ELLIPSERIBBON
ShapeType.ELLIPSE_RIBBON
@Deprecated @Removal(version="5.3") public static final short ST_ELLIPSERIBBON2
ShapeType.ELLIPSE_RIBBON_2
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTPROCESS
ShapeType.FLOW_CHART_PROCESS
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTDECISION
ShapeType.FLOW_CHART_DECISION
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTINPUTOUTPUT
ShapeType.FLOW_CHART_INPUT_OUTPUT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTPREDEFINEDPROCESS
ShapeType.FLOW_CHART_PREDEFINED_PROCESS
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTINTERNALSTORAGE
ShapeType.FLOW_CHART_INTERNAL_STORAGE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTDOCUMENT
ShapeType.FLOW_CHART_DOCUMENT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMULTIDOCUMENT
ShapeType.FLOW_CHART_MULTIDOCUMENT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTTERMINATOR
ShapeType.FLOW_CHART_TERMINATOR
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTPREPARATION
ShapeType.FLOW_CHART_PREPARATION
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMANUALINPUT
ShapeType.FLOW_CHART_MANUAL_INPUT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMANUALOPERATION
ShapeType.FLOW_CHART_MANUAL_OPERATION
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTCONNECTOR
ShapeType.FLOW_CHART_CONNECTOR
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTPUNCHEDCARD
ShapeType.FLOW_CHART_PUNCHED_CARD
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTPUNCHEDTAPE
ShapeType.FLOW_CHART_PUNCHED_TAPE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTSUMMINGJUNCTION
ShapeType.FLOW_CHART_SUMMING_JUNCTION
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTOR
ShapeType.FLOW_CHART_OR
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTCOLLATE
ShapeType.FLOW_CHART_COLLATE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTSORT
ShapeType.FLOW_CHART_SORT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTEXTRACT
ShapeType.FLOW_CHART_EXTRACT
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMERGE
ShapeType.FLOW_CHART_MERGE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTOFFLINESTORAGE
ShapeType.FLOW_CHART_OFFLINE_STORAGE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTONLINESTORAGE
ShapeType.FLOW_CHART_ONLINE_STORAGE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMAGNETICTAPE
ShapeType.FLOW_CHART_MAGNETIC_TAPE
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMAGNETICDISK
ShapeType.FLOW_CHART_MAGNETIC_DISK
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTMAGNETICDRUM
ShapeType.FLOW_CHART_MAGNETIC_DRUM
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTDISPLAY
ShapeType.FLOW_CHART_DISPLAY
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTDELAY
ShapeType.FLOW_CHART_DELAY
@Deprecated @Removal(version="5.3") public static final short ST_TEXTPLAINTEXT
ShapeType.TEXT_PLAIN_TEXT
@Deprecated @Removal(version="5.3") public static final short ST_TEXTSTOP
ShapeType.TEXT_STOP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTTRIANGLE
ShapeType.TEXT_TRIANGLE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTTRIANGLEINVERTED
ShapeType.TEXT_TRIANGLE_INVERTED
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCHEVRON
ShapeType.TEXT_CHEVRON
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCHEVRONINVERTED
ShapeType.TEXT_CHEVRON_INVERTED
@Deprecated @Removal(version="5.3") public static final short ST_TEXTRINGINSIDE
ShapeType.TEXT_RING_INSIDE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTRINGOUTSIDE
ShapeType.TEXT_RING_OUTSIDE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTARCHUPCURVE
ShapeType.TEXT_ARCH_UP_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTARCHDOWNCURVE
ShapeType.TEXT_ARCH_DOWN_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCIRCLECURVE
ShapeType.TEXT_CIRCLE_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTBUTTONCURVE
ShapeType.TEXT_BUTTON_CURVE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTARCHUPPOUR
ShapeType.TEXT_ARCH_UP_POUR
@Deprecated @Removal(version="5.3") public static final short ST_TEXTARCHDOWNPOUR
ShapeType.TEXT_ARCH_DOWN_POUR
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCIRCLEPOUR
ShapeType.TEXT_CIRCLE_POUR
@Deprecated @Removal(version="5.3") public static final short ST_TEXTBUTTONPOUR
ShapeType.TEXT_BUTTON_POUR
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCURVEUP
ShapeType.TEXT_CURVE_UP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCURVEDOWN
ShapeType.TEXT_CURVE_DOWN
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCASCADEUP
ShapeType.TEXT_CASCADE_UP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCASCADEDOWN
ShapeType.TEXT_CASCADE_DOWN
@Deprecated @Removal(version="5.3") public static final short ST_TEXTWAVE1
ShapeType.TEXT_WAVE_1
@Deprecated @Removal(version="5.3") public static final short ST_TEXTWAVE2
ShapeType.TEXT_WAVE_2
@Deprecated @Removal(version="5.3") public static final short ST_TEXTWAVE3
ShapeType.TEXT_WAVE_3
@Deprecated @Removal(version="5.3") public static final short ST_TEXTWAVE4
ShapeType.TEXT_WAVE_4
@Deprecated @Removal(version="5.3") public static final short ST_TEXTINFLATE
ShapeType.TEXT_INFLATE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTDEFLATE
ShapeType.TEXT_DEFLATE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTINFLATEBOTTOM
ShapeType.TEXT_INFLATE_BOTTOM
@Deprecated @Removal(version="5.3") public static final short ST_TEXTDEFLATEBOTTOM
ShapeType.TEXT_DEFLATE_BOTTOM
@Deprecated @Removal(version="5.3") public static final short ST_TEXTINFLATETOP
ShapeType.TEXT_INFLATE_TOP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTDEFLATETOP
ShapeType.TEXT_DEFLATE_TOP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTDEFLATEINFLATE
ShapeType.TEXT_DEFLATE_INFLATE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTDEFLATEINFLATEDEFLATE
ShapeType.TEXT_DEFLATE_INFLATE_DEFLATE
@Deprecated @Removal(version="5.3") public static final short ST_TEXTFADERIGHT
ShapeType.TEXT_FADE_RIGHT
@Deprecated @Removal(version="5.3") public static final short ST_TEXTFADELEFT
ShapeType.TEXT_FADE_LEFT
@Deprecated @Removal(version="5.3") public static final short ST_TEXTFADEUP
ShapeType.TEXT_FADE_UP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTFADEDOWN
ShapeType.TEXT_FADE_DOWN
@Deprecated @Removal(version="5.3") public static final short ST_TEXTSLANTUP
ShapeType.TEXT_SLANT_UP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTSLANTDOWN
ShapeType.TEXT_SLANT_DOWN
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCANUP
ShapeType.TEXT_CAN_UP
@Deprecated @Removal(version="5.3") public static final short ST_TEXTCANDOWN
ShapeType.TEXT_CAN_DOWN
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTALTERNATEPROCESS
ShapeType.FLOW_CHART_ALTERNATE_PROCESS
@Deprecated @Removal(version="5.3") public static final short ST_FLOWCHARTOFFPAGECONNECTOR
ShapeType.FLOW_CHART_OFFPAGE_CONNECTOR
@Deprecated @Removal(version="5.3") public static final short ST_CALLOUT90
ShapeType.CALLOUT_90
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTCALLOUT90
ShapeType.ACCENT_CALLOUT_90
@Deprecated @Removal(version="5.3") public static final short ST_BORDERCALLOUT90
ShapeType.BORDER_CALLOUT_90
@Deprecated @Removal(version="5.3") public static final short ST_ACCENTBORDERCALLOUT90
ShapeType.ACCENT_BORDER_CALLOUT_90
@Deprecated @Removal(version="5.3") public static final short ST_LEFTRIGHTUPARROW
ShapeType.LEFT_RIGHT_UP_ARROW
@Deprecated @Removal(version="5.3") public static final short ST_SUN
ShapeType.SUN
@Deprecated @Removal(version="5.3") public static final short ST_MOON
ShapeType.MOON
@Deprecated @Removal(version="5.3") public static final short ST_BRACKETPAIR
ShapeType.BRACKET_PAIR
@Deprecated @Removal(version="5.3") public static final short ST_BRACEPAIR
ShapeType.BRACE_PAIR
@Deprecated @Removal(version="5.3") public static final short ST_SEAL4
ShapeType.STAR_4
@Deprecated @Removal(version="5.3") public static final short ST_DOUBLEWAVE
ShapeType.DOUBLE_WAVE
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONBLANK
ShapeType.ACTION_BUTTON_BLANK
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONHOME
ShapeType.ACTION_BUTTON_HOME
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONHELP
ShapeType.ACTION_BUTTON_HELP
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONINFORMATION
ShapeType.ACTION_BUTTON_INFORMATION
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONFORWARDNEXT
ShapeType.ACTION_BUTTON_FORWARD_NEXT
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONBACKPREVIOUS
ShapeType.ACTION_BUTTON_BACK_PREVIOUS
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONEND
ShapeType.ACTION_BUTTON_END
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONBEGINNING
ShapeType.ACTION_BUTTON_BEGINNING
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONRETURN
ShapeType.ACTION_BUTTON_RETURN
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONDOCUMENT
ShapeType.ACTION_BUTTON_DOCUMENT
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONSOUND
ShapeType.ACTION_BUTTON_SOUND
@Deprecated @Removal(version="5.3") public static final short ST_ACTIONBUTTONMOVIE
ShapeType.ACTION_BUTTON_MOVIE
@Deprecated @Removal(version="5.3") public static final short ST_HOSTCONTROL
ShapeType.HOST_CONTROL
@Deprecated @Removal(version="5.3") public static final short ST_TEXTBOX
ShapeType.TEXT_BOX
@Deprecated @Removal(version="5.3") public static final short ST_NIL
public EscherAggregate(boolean createDefaultTree)
createDefaultTree
- if true creates base tree of the escher records, see EscherAggregate.buildBaseTree()
else return empty escher aggregatepublic EscherAggregate(EscherAggregate other)
public static void setMaxRecordLength(int length)
length
- the max record length allowed for EscherAggregatepublic static int getMaxRecordLength()
public short getSid()
Record
getSid
in class AbstractEscherHolderRecord
public java.lang.String toXml(java.lang.String tab)
tab
- - string which must be added before each line (used by default '\t')public static EscherAggregate createAggregate(java.util.List<RecordBase> records, int locFirstDrawingRecord)
records
- - list of all records inside sheetlocFirstDrawingRecord
- - location of the first DrawingRecord inside sheetpublic int serialize(int offset, byte[] data)
serialize
in class AbstractEscherHolderRecord
offset
- The offset into the start of the array.data
- The byte array to serialize to.public int getRecordSize()
RecordBase
getRecordSize
in class AbstractEscherHolderRecord
public void associateShapeToObjRecord(EscherRecord r, Record objRecord)
r
- - ClientData or Textbox recordobjRecord
- - Obj or TextObj recordpublic void removeShapeToObjRecord(EscherRecord rec)
rec
- - clientData or textbox record to be removedprotected java.lang.String getRecordName()
getRecordName
in class AbstractEscherHolderRecord
public void setDgId(short dgId)
dgId
- - id which must be setpublic void setMainSpRecordId(int shapeId)
shapeId
- - id which must be setpublic java.util.Map<EscherRecord,Record> getShapeToObjMapping()
EscherClientDataRecord
and EscherTextboxRecord
to their TextObjectRecord
or ObjRecord
.
We need to access it outside of EscherAggregate when building shapes
public java.util.Map<java.lang.Integer,NoteRecord> getTailRecords()
public NoteRecord getNoteRecordByObj(ObjRecord obj)
obj
- - ObjRecord with id == NoteRecord.idpublic void addTailRecord(NoteRecord note)
note
- to be addedpublic void removeTailRecord(NoteRecord note)
note
- to be removedpublic EscherAggregate copy()
copy
in interface Duplicatable
copy
in class AbstractEscherHolderRecord
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in class Record
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.