org.apache.poi.hslf.usermodel
Class HSLFFreeformShape
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFShape
org.apache.poi.hslf.usermodel.HSLFSimpleShape
org.apache.poi.hslf.usermodel.HSLFTextShape
org.apache.poi.hslf.usermodel.HSLFAutoShape
org.apache.poi.hslf.usermodel.HSLFFreeformShape
- All Implemented Interfaces:
- java.lang.Iterable<HSLFTextParagraph>, IAdjustableShape, AutoShape<HSLFShape,HSLFTextParagraph>, FreeformShape<HSLFShape,HSLFTextParagraph>, PlaceableShape<HSLFShape,HSLFTextParagraph>, Shape<HSLFShape,HSLFTextParagraph>, SimpleShape<HSLFShape,HSLFTextParagraph>, TextShape<HSLFShape,HSLFTextParagraph>
public final class HSLFFreeformShape
- extends HSLFAutoShape
- implements FreeformShape<HSLFShape,HSLFTextParagraph>
A "Freeform" shape.
Shapes drawn with the "Freeform" tool have cubic bezier curve segments in the smooth sections
and straight-line segments in the straight sections. This object closely corresponds to java.awt.geom.GeneralPath.
|
Method Summary |
java.awt.geom.GeneralPath |
getPath()
|
int |
setPath(java.awt.geom.GeneralPath path)
|
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFTextShape |
afterInsert, appendText, getBottomInset, getEscherTextboxWrapper, getHyperlinks, getInsets, getLeftInset, getPlaceholderAtom, getRawText, getRightInset, getRunType, getText, getTextDirection, getTextHeight, getTextId, getTextParagraphs, getTopInset, getVerticalAlignment, getWordWrap, getWordWrapEx, isAlignToBaseline, isHorizontalCentered, isPlaceholder, iterator, resizeToFitText, setAlignToBaseline, setBottomInset, setHorizontalCentered, setHyperlink, setLeftInset, setRightInset, setRunType, setSheet, setText, setTextId, setTopInset, setVerticalAlignment, setWordWrap, storeText |
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFSimpleShape |
createSpContainer, getAdjustValue, getClientDataRecord, getClientRecords, getFillColor, getGeometry, getLineColor, getLineCompound, getLineDashing, getLineDecoration, getLineWidth, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, setFillColor, setHyperlink, setLineColor, setLineCompound, setLineDashing, setLineWidth, updateClientData |
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
draw, getAnchor, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getHyperlink, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Iterable |
iterator |
SEGMENTINFO_MOVETO
public static final byte[] SEGMENTINFO_MOVETO
SEGMENTINFO_LINETO
public static final byte[] SEGMENTINFO_LINETO
SEGMENTINFO_ESCAPE
public static final byte[] SEGMENTINFO_ESCAPE
SEGMENTINFO_ESCAPE2
public static final byte[] SEGMENTINFO_ESCAPE2
SEGMENTINFO_CUBICTO
public static final byte[] SEGMENTINFO_CUBICTO
SEGMENTINFO_CUBICTO2
public static final byte[] SEGMENTINFO_CUBICTO2
SEGMENTINFO_CLOSE
public static final byte[] SEGMENTINFO_CLOSE
SEGMENTINFO_END
public static final byte[] SEGMENTINFO_END
HSLFFreeformShape
protected HSLFFreeformShape(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
- Create a Freeform object and initialize it from the supplied Record container.
- Parameters:
escherRecord - EscherSpContainer container which holds information about this shapeparent - the parent of the shape
HSLFFreeformShape
public HSLFFreeformShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
- Create a new Freeform. This constructor is used when a new shape is created.
- Parameters:
parent - the parent of this Shape. For example, if this text box is a cell
in a table then the parent is Table.
HSLFFreeformShape
public HSLFFreeformShape()
- Create a new Freeform. This constructor is used when a new shape is created.
setPath
public int setPath(java.awt.geom.GeneralPath path)
- Specified by:
setPath in interface FreeformShape<HSLFShape,HSLFTextParagraph>
getPath
public java.awt.geom.GeneralPath getPath()
- Specified by:
getPath in interface FreeformShape<HSLFShape,HSLFTextParagraph>