Class Anchor
java.lang.Object
org.docx4j.dml.wordprocessingDrawing.Anchor
- All Implemented Interfaces:
Child
Java class for CT_Anchor complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Anchor">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="simplePos" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Point2D"/>
<element name="positionH" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}CT_PosH"/>
<element name="positionV" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}CT_PosV"/>
<element name="extent" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D"/>
<element name="effectExtent" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}CT_EffectExtent" minOccurs="0"/>
<group ref="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}EG_WrapType"/>
<element name="docPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_NonVisualDrawingProps"/>
<element name="cNvGraphicFramePr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_NonVisualGraphicFrameProperties" minOccurs="0"/>
<element ref="{http://schemas.openxmlformats.org/drawingml/2006/main}graphic"/>
<element ref="{http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing}sizeRelH" minOccurs="0"/>
<element ref="{http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing}sizeRelV" minOccurs="0"/>
</sequence>
<attribute name="distT" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}ST_WrapDistance" />
<attribute name="distB" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}ST_WrapDistance" />
<attribute name="distL" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}ST_WrapDistance" />
<attribute name="distR" type="{http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing}ST_WrapDistance" />
<attribute name="simplePos" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="relativeHeight" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
<attribute name="behindDoc" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="locked" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="layoutInCell" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="allowOverlap" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute ref="{http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing}anchorId"/>
<attribute ref="{http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing}editId"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected byte[]protected booleanprotected CTNonVisualGraphicFramePropertiesprotected Longprotected Longprotected Longprotected Longprotected CTNonVisualDrawingPropsprotected byte[]protected CTEffectExtentprotected CTPositiveSize2Dprotected Graphicprotected Booleanprotected booleanprotected booleanprotected CTPosHprotected CTPosVprotected longprotected CTPoint2Dprotected Booleanprotected CTSizeRelHprotected CTSizeRelVprotected CTWrapNoneprotected CTWrapSquareprotected CTWrapThroughprotected CTWrapTightprotected CTWrapTopBottom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.byte[]Gets the value of the anchorId property.Gets the value of the cNvGraphicFramePr property.getDistB()Gets the value of the distB property.getDistL()Gets the value of the distL property.getDistR()Gets the value of the distR property.getDistT()Gets the value of the distT property.getDocPr()Gets the value of the docPr property.byte[]Gets the value of the editId property.Gets the value of the effectExtent property.Gets the value of the extent property.Gets the value of the graphic property.Gets the parent object in the object tree representing the unmarshalled xml document.Gets the value of the positionH property.Gets the value of the positionV property.longGets the value of the relativeHeight property.Gets the value of the simplePos property.Gets the value of the sizeRelH property.Gets the value of the sizeRelV property.Gets the value of the wrapNone property.Gets the value of the wrapSquare property.Gets the value of the wrapThrough property.Gets the value of the wrapTight property.Gets the value of the wrapTopAndBottom property.booleanGets the value of the allowOverlap property.booleanGets the value of the behindDoc property.isHidden()Gets the value of the hidden property.booleanGets the value of the layoutInCell property.booleanisLocked()Gets the value of the locked property.Gets the value of the simplePosAttr property.voidsetAllowOverlap(boolean value) Sets the value of the allowOverlap property.voidsetAnchorId(byte[] value) Sets the value of the anchorId property.voidsetBehindDoc(boolean value) Sets the value of the behindDoc property.voidSets the value of the cNvGraphicFramePr property.voidSets the value of the distB property.voidSets the value of the distL property.voidSets the value of the distR property.voidSets the value of the distT property.voidsetDocPr(CTNonVisualDrawingProps value) Sets the value of the docPr property.voidsetEditId(byte[] value) Sets the value of the editId property.voidsetEffectExtent(CTEffectExtent value) Sets the value of the effectExtent property.voidsetExtent(CTPositiveSize2D value) Sets the value of the extent property.voidsetGraphic(Graphic value) Sets the value of the graphic property.voidSets the value of the hidden property.voidsetLayoutInCell(boolean value) Sets the value of the layoutInCell property.voidsetLocked(boolean value) Sets the value of the locked property.voidvoidsetPositionH(CTPosH value) Sets the value of the positionH property.voidsetPositionV(CTPosV value) Sets the value of the positionV property.voidsetRelativeHeight(long value) Sets the value of the relativeHeight property.voidsetSimplePos(CTPoint2D value) Sets the value of the simplePos property.voidsetSimplePosAttr(Boolean value) Sets the value of the simplePosAttr property.voidsetSizeRelH(CTSizeRelH value) Sets the value of the sizeRelH property.voidsetSizeRelV(CTSizeRelV value) Sets the value of the sizeRelV property.voidsetWrapNone(CTWrapNone value) Sets the value of the wrapNone property.voidsetWrapSquare(CTWrapSquare value) Sets the value of the wrapSquare property.voidsetWrapThrough(CTWrapThrough value) Sets the value of the wrapThrough property.voidsetWrapTight(CTWrapTight value) Sets the value of the wrapTight property.voidSets the value of the wrapTopAndBottom property.
-
Field Details
-
simplePos
-
positionH
-
positionV
-
extent
-
effectExtent
-
wrapNone
-
wrapSquare
-
wrapTight
-
wrapThrough
-
wrapTopAndBottom
-
docPr
-
cNvGraphicFramePr
-
graphic
-
sizeRelH
-
sizeRelV
-
distT
-
distB
-
distL
-
distR
-
simplePosAttr
-
relativeHeight
protected long relativeHeight -
behindDoc
protected boolean behindDoc -
locked
protected boolean locked -
layoutInCell
protected boolean layoutInCell -
allowOverlap
protected boolean allowOverlap -
anchorId
protected byte[] anchorId -
editId
protected byte[] editId
-
-
Constructor Details
-
Anchor
public Anchor()
-
-
Method Details
-
getSimplePos
Gets the value of the simplePos property.- Returns:
- possible object is
CTPoint2D
-
setSimplePos
Sets the value of the simplePos property.- Parameters:
value- allowed object isCTPoint2D
-
getPositionH
Gets the value of the positionH property.- Returns:
- possible object is
CTPosH
-
setPositionH
Sets the value of the positionH property.- Parameters:
value- allowed object isCTPosH
-
getPositionV
Gets the value of the positionV property.- Returns:
- possible object is
CTPosV
-
setPositionV
Sets the value of the positionV property.- Parameters:
value- allowed object isCTPosV
-
getExtent
Gets the value of the extent property.- Returns:
- possible object is
CTPositiveSize2D
-
setExtent
Sets the value of the extent property.- Parameters:
value- allowed object isCTPositiveSize2D
-
getEffectExtent
Gets the value of the effectExtent property.- Returns:
- possible object is
CTEffectExtent
-
setEffectExtent
Sets the value of the effectExtent property.- Parameters:
value- allowed object isCTEffectExtent
-
getWrapNone
Gets the value of the wrapNone property.- Returns:
- possible object is
CTWrapNone
-
setWrapNone
Sets the value of the wrapNone property.- Parameters:
value- allowed object isCTWrapNone
-
getWrapSquare
Gets the value of the wrapSquare property.- Returns:
- possible object is
CTWrapSquare
-
setWrapSquare
Sets the value of the wrapSquare property.- Parameters:
value- allowed object isCTWrapSquare
-
getWrapTight
Gets the value of the wrapTight property.- Returns:
- possible object is
CTWrapTight
-
setWrapTight
Sets the value of the wrapTight property.- Parameters:
value- allowed object isCTWrapTight
-
getWrapThrough
Gets the value of the wrapThrough property.- Returns:
- possible object is
CTWrapThrough
-
setWrapThrough
Sets the value of the wrapThrough property.- Parameters:
value- allowed object isCTWrapThrough
-
getWrapTopAndBottom
Gets the value of the wrapTopAndBottom property.- Returns:
- possible object is
CTWrapTopBottom
-
setWrapTopAndBottom
Sets the value of the wrapTopAndBottom property.- Parameters:
value- allowed object isCTWrapTopBottom
-
getDocPr
Gets the value of the docPr property.- Returns:
- possible object is
CTNonVisualDrawingProps
-
setDocPr
Sets the value of the docPr property.- Parameters:
value- allowed object isCTNonVisualDrawingProps
-
getCNvGraphicFramePr
Gets the value of the cNvGraphicFramePr property.- Returns:
- possible object is
CTNonVisualGraphicFrameProperties
-
setCNvGraphicFramePr
Sets the value of the cNvGraphicFramePr property.- Parameters:
value- allowed object isCTNonVisualGraphicFrameProperties
-
getGraphic
Gets the value of the graphic property.- Returns:
- possible object is
Graphic
-
setGraphic
Sets the value of the graphic property.- Parameters:
value- allowed object isGraphic
-
getSizeRelH
Gets the value of the sizeRelH property.- Returns:
- possible object is
CTSizeRelH
-
setSizeRelH
Sets the value of the sizeRelH property.- Parameters:
value- allowed object isCTSizeRelH
-
getSizeRelV
Gets the value of the sizeRelV property.- Returns:
- possible object is
CTSizeRelV
-
setSizeRelV
Sets the value of the sizeRelV property.- Parameters:
value- allowed object isCTSizeRelV
-
getDistT
Gets the value of the distT property.- Returns:
- possible object is
Long
-
setDistT
Sets the value of the distT property.- Parameters:
value- allowed object isLong
-
getDistB
Gets the value of the distB property.- Returns:
- possible object is
Long
-
setDistB
Sets the value of the distB property.- Parameters:
value- allowed object isLong
-
getDistL
Gets the value of the distL property.- Returns:
- possible object is
Long
-
setDistL
Sets the value of the distL property.- Parameters:
value- allowed object isLong
-
getDistR
Gets the value of the distR property.- Returns:
- possible object is
Long
-
setDistR
Sets the value of the distR property.- Parameters:
value- allowed object isLong
-
isSimplePosAttr
Gets the value of the simplePosAttr property.- Returns:
- possible object is
Boolean
-
setSimplePosAttr
Sets the value of the simplePosAttr property.- Parameters:
value- allowed object isBoolean
-
getRelativeHeight
public long getRelativeHeight()Gets the value of the relativeHeight property. -
setRelativeHeight
public void setRelativeHeight(long value) Sets the value of the relativeHeight property. -
isBehindDoc
public boolean isBehindDoc()Gets the value of the behindDoc property. -
setBehindDoc
public void setBehindDoc(boolean value) Sets the value of the behindDoc property. -
isLocked
public boolean isLocked()Gets the value of the locked property. -
setLocked
public void setLocked(boolean value) Sets the value of the locked property. -
isLayoutInCell
public boolean isLayoutInCell()Gets the value of the layoutInCell property. -
setLayoutInCell
public void setLayoutInCell(boolean value) Sets the value of the layoutInCell property. -
isHidden
Gets the value of the hidden property.- Returns:
- possible object is
Boolean
-
setHidden
Sets the value of the hidden property.- Parameters:
value- allowed object isBoolean
-
isAllowOverlap
public boolean isAllowOverlap()Gets the value of the allowOverlap property. -
setAllowOverlap
public void setAllowOverlap(boolean value) Sets the value of the allowOverlap property. -
getAnchorId
public byte[] getAnchorId()Gets the value of the anchorId property.- Returns:
- possible object is
String
-
setAnchorId
public void setAnchorId(byte[] value) Sets the value of the anchorId property.- Parameters:
value- allowed object isString
-
getEditId
public byte[] getEditId()Gets the value of the editId property.- Returns:
- possible object is
String
-
setEditId
public void setEditId(byte[] value) Sets the value of the editId property.- Parameters:
value- allowed object isString
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-