Class Anchor
java.lang.Object
org.docx4j.dml.wordprocessingDrawing.Anchor
- All Implemented Interfaces:
Child
public class Anchor extends java.lang.Object implements 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
Fields Modifier and Type Field Description protected booleanallowOverlapprotected byte[]anchorIdprotected booleanbehindDocprotected CTNonVisualGraphicFramePropertiescNvGraphicFramePrprotected java.lang.LongdistBprotected java.lang.LongdistLprotected java.lang.LongdistRprotected java.lang.LongdistTprotected CTNonVisualDrawingPropsdocPrprotected byte[]editIdprotected CTEffectExtenteffectExtentprotected CTPositiveSize2Dextentprotected Graphicgraphicprotected java.lang.Booleanhiddenprotected booleanlayoutInCellprotected booleanlockedprotected CTPosHpositionHprotected CTPosVpositionVprotected longrelativeHeightprotected CTPoint2DsimplePosprotected java.lang.BooleansimplePosAttrprotected CTSizeRelHsizeRelHprotected CTSizeRelVsizeRelVprotected CTWrapNonewrapNoneprotected CTWrapSquarewrapSquareprotected CTWrapThroughwrapThroughprotected CTWrapTightwrapTightprotected CTWrapTopBottomwrapTopAndBottom -
Constructor Summary
Constructors Constructor Description Anchor() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.byte[]getAnchorId()Gets the value of the anchorId property.CTNonVisualGraphicFramePropertiesgetCNvGraphicFramePr()Gets the value of the cNvGraphicFramePr property.java.lang.LonggetDistB()Gets the value of the distB property.java.lang.LonggetDistL()Gets the value of the distL property.java.lang.LonggetDistR()Gets the value of the distR property.java.lang.LonggetDistT()Gets the value of the distT property.CTNonVisualDrawingPropsgetDocPr()Gets the value of the docPr property.byte[]getEditId()Gets the value of the editId property.CTEffectExtentgetEffectExtent()Gets the value of the effectExtent property.CTPositiveSize2DgetExtent()Gets the value of the extent property.GraphicgetGraphic()Gets the value of the graphic property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.CTPosHgetPositionH()Gets the value of the positionH property.CTPosVgetPositionV()Gets the value of the positionV property.longgetRelativeHeight()Gets the value of the relativeHeight property.CTPoint2DgetSimplePos()Gets the value of the simplePos property.CTSizeRelHgetSizeRelH()Gets the value of the sizeRelH property.CTSizeRelVgetSizeRelV()Gets the value of the sizeRelV property.CTWrapNonegetWrapNone()Gets the value of the wrapNone property.CTWrapSquaregetWrapSquare()Gets the value of the wrapSquare property.CTWrapThroughgetWrapThrough()Gets the value of the wrapThrough property.CTWrapTightgetWrapTight()Gets the value of the wrapTight property.CTWrapTopBottomgetWrapTopAndBottom()Gets the value of the wrapTopAndBottom property.booleanisAllowOverlap()Gets the value of the allowOverlap property.booleanisBehindDoc()Gets the value of the behindDoc property.java.lang.BooleanisHidden()Gets the value of the hidden property.booleanisLayoutInCell()Gets the value of the layoutInCell property.booleanisLocked()Gets the value of the locked property.java.lang.BooleanisSimplePosAttr()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.voidsetCNvGraphicFramePr(CTNonVisualGraphicFrameProperties value)Sets the value of the cNvGraphicFramePr property.voidsetDistB(java.lang.Long value)Sets the value of the distB property.voidsetDistL(java.lang.Long value)Sets the value of the distL property.voidsetDistR(java.lang.Long value)Sets the value of the distR property.voidsetDistT(java.lang.Long value)Sets 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.voidsetHidden(java.lang.Boolean value)Sets 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.voidsetParent(java.lang.Object parent)voidsetPositionH(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(java.lang.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.voidsetWrapTopAndBottom(CTWrapTopBottom value)Sets the value of the wrapTopAndBottom property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
simplePos
-
positionH
-
positionV
-
extent
-
effectExtent
-
wrapNone
-
wrapSquare
-
wrapTight
-
wrapThrough
-
wrapTopAndBottom
-
docPr
-
cNvGraphicFramePr
-
graphic
-
sizeRelH
-
sizeRelV
-
distT
protected java.lang.Long distT -
distB
protected java.lang.Long distB -
distL
protected java.lang.Long distL -
distR
protected java.lang.Long distR -
simplePosAttr
protected java.lang.Boolean 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
public java.lang.Long getDistT()Gets the value of the distT property.- Returns:
- possible object is
Long
-
setDistT
public void setDistT(java.lang.Long value)Sets the value of the distT property.- Parameters:
value- allowed object isLong
-
getDistB
public java.lang.Long getDistB()Gets the value of the distB property.- Returns:
- possible object is
Long
-
setDistB
public void setDistB(java.lang.Long value)Sets the value of the distB property.- Parameters:
value- allowed object isLong
-
getDistL
public java.lang.Long getDistL()Gets the value of the distL property.- Returns:
- possible object is
Long
-
setDistL
public void setDistL(java.lang.Long value)Sets the value of the distL property.- Parameters:
value- allowed object isLong
-
getDistR
public java.lang.Long getDistR()Gets the value of the distR property.- Returns:
- possible object is
Long
-
setDistR
public void setDistR(java.lang.Long value)Sets the value of the distR property.- Parameters:
value- allowed object isLong
-
isSimplePosAttr
public java.lang.Boolean isSimplePosAttr()Gets the value of the simplePosAttr property.- Returns:
- possible object is
Boolean
-
setSimplePosAttr
public void setSimplePosAttr(java.lang.Boolean value)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
public java.lang.Boolean isHidden()Gets the value of the hidden property.- Returns:
- possible object is
Boolean
-
setHidden
public void setHidden(java.lang.Boolean value)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
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)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.
-