public class GroupShape extends ShapeBase
To learn more, visit the How to Add Group Shape into a Word Document documentation article.
A GroupShape is a composite node and can have Shape and GroupShape nodes as children.
Each GroupShape defines a new coordinate system for its child shapes. The coordinate system is defined using the ShapeBase.getCoordSize() / ShapeBase.setCoordSize(java.awt.Dimension) and ShapeBase.getCoordOrigin() / ShapeBase.setCoordOrigin(java.awt.Point) properties.
| Constructor and Description |
|---|
GroupShape(DocumentBase doc)
Creates a new group shape.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
int |
getNodeType()
Returns
NodeType.GROUP_SHAPE. |
adjustWithEffects, canHaveImage, clearRunAttrs, fetchInheritedRunAttr, fetchInheritedShapeAttr, fetchShapeAttr, getAllowOverlap, getAlternativeText, getAnchorLocked, getAspectRatioLocked, getBehindText, getBottom, getBounds, getBoundsInPoints, getBoundsWithEffects, getCoordOrigin, getCoordSize, getDirectRunAttr, getDirectShapeAttr, getDistanceBottom, getDistanceLeft, getDistanceRight, getDistanceTop, getDocument_IInline, getFill, getFillableBackColor, getFillableForeColor, getFillableImageBytes, getFillableTransparency, getFillableVisible, getFilledColor, getFillType, getFlipOrientation, getFont, getGradientAngle, getGradientStops, getGradientStyle, getGradientVariant, getHeight, getHorizontalAlignment, getHRef, getLeft, getMarkupLanguage, getName, getOn, getOpacity, getParentParagraph_IInline, getParentParagraph, getPatternType, getPresetTexture, getRelativeHorizontalPosition, getRelativeVerticalPosition, getRight, getRotateWithObject, getRotation, getScreenTip, getShadowFormat, getShapeRenderer, getShapeType, getSizeInPoints, getTarget, getTextureAlignment, getTitle, getTop, getVerticalAlignment, getWidth, getWrapSide, getWrapType, getZOrder_IShape, getZOrder, isDecorative, isDecorative, isDeleteRevision, isGroup, isHorizontalRule, isImage, isInline, isInsertRevision, isLayoutInCell, isLayoutInCell, isMoveFromRevision, isMoveToRevision, isSignatureLine, isTopLevel, isWordArt, localToParent, oneColorGradient, patterned, presetTextured, removeMoveRevisions, removeRunAttr, removeShapeAttr, setAllowOverlap, setAlternativeText, setAnchorLocked, setAspectRatioLocked, setBehindText, setBounds, setCoordOrigin, setCoordSize, setDistanceBottom, setDistanceLeft, setDistanceRight, setDistanceTop, setFillableBackColor, setFillableForeColor, setFillableTransparency, setFillableVisible, setFilledColor, setFlipOrientation, setGradientAngle, setHeight, setHorizontalAlignment, setHRef, setImage, setLeft, setName, setOn, setOpacity, setRelativeHorizontalPosition, setRelativeVerticalPosition, setRotateWithObject, setRotation, setRunAttr, setScreenTip, setShapeAttr, setTarget, setTextureAlignment, setTitle, setTop, setVerticalAlignment, setWidth, setWrapSide, setWrapType, setZOrder_IShape, setZOrder, solid, twoColorGradientacceptChildren, acceptCore, appendChild, coreRemoveSelfOnly, getChild, getChildNodes, getChildNodes, getContainer, getCount, getCurrentNode, getFirstChild, getLastChild, getNextMatchingNode, getText, hasChildNodes, indexOf, insertAfter, insertBefore, isComposite, iterator, prependChild, removeAllChildren, removeChild, removeSmartTags, selectNodes, selectSingleNodedd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic GroupShape(DocumentBase doc)
doc - The owner document.public boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
public int getNodeType()
NodeType.GROUP_SHAPE.getNodeType in class NodeNodeType.GROUP_SHAPE. The returned value is one of NodeType constants.