Package org.apache.poi.hssf.model
Class DrawingManager2
- java.lang.Object
-
- org.apache.poi.hssf.model.DrawingManager2
-
public class DrawingManager2 extends Object
Provides utilities to manage drawing groups.
-
-
Constructor Summary
Constructors Constructor Description DrawingManager2(EscherDggRecord dgg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
allocateShapeId(EscherDgRecord dg)
Allocates new shape id for the drawing groupvoid
clearDrawingGroups()
Clears the cached list of drawing groupsEscherDgRecord
createDgRecord()
Creates a new drawing groupshort
findNewDrawingGroupId()
Finds the next available (1 based) drawing group idEscherDggRecord
getDgg()
Returns the drawing group container recordvoid
incrementDrawingsSaved()
Increment the drawing counter
-
-
-
Constructor Detail
-
DrawingManager2
public DrawingManager2(EscherDggRecord dgg)
-
-
Method Detail
-
clearDrawingGroups
public void clearDrawingGroups()
Clears the cached list of drawing groups
-
createDgRecord
public EscherDgRecord createDgRecord()
Creates a new drawing group- Returns:
- a new drawing group
-
allocateShapeId
public int allocateShapeId(EscherDgRecord dg)
Allocates new shape id for the drawing group- Parameters:
dg
- the EscherDgRecord which receives the new shape- Returns:
- a new shape id.
-
findNewDrawingGroupId
public short findNewDrawingGroupId()
Finds the next available (1 based) drawing group id- Returns:
- the next available drawing group id
-
getDgg
public EscherDggRecord getDgg()
Returns the drawing group container record- Returns:
- the drawing group container record
-
incrementDrawingsSaved
public void incrementDrawingsSaved()
Increment the drawing counter
-
-