Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2008, Plutext Pty Ltd.
   *   
   *  This file is part of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 
 
 package org.docx4j.dml.wordprocessingDrawing;
 
 

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"/>
       </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" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_Anchor", propOrder = {
     "simplePos",
     "positionH",
     "positionV",
     "extent",
     "effectExtent",
     "wrapNone",
     "wrapSquare",
     "wrapTight",
     "wrapThrough",
     "wrapTopAndBottom",
     "docPr",
     "cNvGraphicFramePr",
     "graphic"
 })
 public class Anchor implements Child {
 
     @XmlElement(required = true)
     protected CTPoint2D simplePos;
     @XmlElement(required = true)
     protected CTPosH positionH;
     @XmlElement(required = true)
     protected CTPosV positionV;
     @XmlElement(required = true)
     protected CTPositiveSize2D extent;
     protected CTEffectExtent effectExtent;
    protected CTWrapNone wrapNone;
    protected CTWrapSquare wrapSquare;
    protected CTWrapTight wrapTight;
    protected CTWrapThrough wrapThrough;
    @XmlElement(required = true)
    protected CTNonVisualDrawingProps docPr;
    @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
    protected Graphic graphic;
    protected Long distT;
    protected Long distB;
    protected Long distL;
    protected Long distR;
    @XmlAttribute(name = "simplePos")
    protected Boolean simplePosAttr;
    @XmlAttribute(required = true)
    @XmlSchemaType(name = "unsignedInt")
    protected long relativeHeight;
    @XmlAttribute(required = true)
    protected boolean behindDoc;
    @XmlAttribute(required = true)
    protected boolean locked;
    @XmlAttribute(required = true)
    protected boolean layoutInCell;
    protected Boolean hidden;
    @XmlAttribute(required = true)
    protected boolean allowOverlap;
    private Object parent;
    
Gets the value of the simplePos property.

Returns:
possible object is
    public CTPoint2D getSimplePos() {
        return ;
    }

    
Sets the value of the simplePos property.

Parameters:
value allowed object is
    public void setSimplePos(CTPoint2D value) {
        this. = value;
    }

    
Gets the value of the positionH property.

Returns:
possible object is
    public CTPosH getPositionH() {
        return ;
    }

    
Sets the value of the positionH property.

Parameters:
value allowed object is
    public void setPositionH(CTPosH value) {
        this. = value;
    }

    
Gets the value of the positionV property.

Returns:
possible object is
    public CTPosV getPositionV() {
        return ;
    }

    
Sets the value of the positionV property.

Parameters:
value allowed object is
    public void setPositionV(CTPosV value) {
        this. = value;
    }

    
Gets the value of the extent property.

Returns:
possible object is
    public CTPositiveSize2D getExtent() {
        return ;
    }

    
Sets the value of the extent property.

Parameters:
value allowed object is
    public void setExtent(CTPositiveSize2D value) {
        this. = value;
    }

    
Gets the value of the effectExtent property.

Returns:
possible object is
    public CTEffectExtent getEffectExtent() {
        return ;
    }

    
Sets the value of the effectExtent property.

Parameters:
value allowed object is
    public void setEffectExtent(CTEffectExtent value) {
        this. = value;
    }

    
Gets the value of the wrapNone property.

Returns:
possible object is
    public CTWrapNone getWrapNone() {
        return ;
    }

    
Sets the value of the wrapNone property.

Parameters:
value allowed object is
    public void setWrapNone(CTWrapNone value) {
        this. = value;
    }

    
Gets the value of the wrapSquare property.

Returns:
possible object is
    public CTWrapSquare getWrapSquare() {
        return ;
    }

    
Sets the value of the wrapSquare property.

Parameters:
value allowed object is
    public void setWrapSquare(CTWrapSquare value) {
        this. = value;
    }

    
Gets the value of the wrapTight property.

Returns:
possible object is
    public CTWrapTight getWrapTight() {
        return ;
    }

    
Sets the value of the wrapTight property.

Parameters:
value allowed object is
    public void setWrapTight(CTWrapTight value) {
        this. = value;
    }

    
Gets the value of the wrapThrough property.

Returns:
possible object is
    public CTWrapThrough getWrapThrough() {
        return ;
    }

    
Sets the value of the wrapThrough property.

Parameters:
value allowed object is
    public void setWrapThrough(CTWrapThrough value) {
        this. = value;
    }

    
Gets the value of the wrapTopAndBottom property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the wrapTopAndBottom property.

Parameters:
value allowed object is
    public void setWrapTopAndBottom(CTWrapTopBottom value) {
        this. = value;
    }

    
Gets the value of the docPr property.

Returns:
possible object is
    public CTNonVisualDrawingProps getDocPr() {
        return ;
    }

    
Sets the value of the docPr property.

Parameters:
value allowed object is
    public void setDocPr(CTNonVisualDrawingProps value) {
        this. = value;
    }

    
Gets the value of the cNvGraphicFramePr property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the cNvGraphicFramePr property.

Parameters:
value allowed object is
        this. = value;
    }

    
Gets the value of the graphic property.

Returns:
possible object is
    public Graphic getGraphic() {
        return ;
    }

    
Sets the value of the graphic property.

Parameters:
value allowed object is
    public void setGraphic(Graphic value) {
        this. = value;
    }

    
Gets the value of the distT property.

Returns:
possible object is
    public Long getDistT() {
        return ;
    }

    
Sets the value of the distT property.

Parameters:
value allowed object is
    public void setDistT(Long value) {
        this. = value;
    }

    
Gets the value of the distB property.

Returns:
possible object is
    public Long getDistB() {
        return ;
    }

    
Sets the value of the distB property.

Parameters:
value allowed object is
    public void setDistB(Long value) {
        this. = value;
    }

    
Gets the value of the distL property.

Returns:
possible object is
    public Long getDistL() {
        return ;
    }

    
Sets the value of the distL property.

Parameters:
value allowed object is
    public void setDistL(Long value) {
        this. = value;
    }

    
Gets the value of the distR property.

Returns:
possible object is
    public Long getDistR() {
        return ;
    }

    
Sets the value of the distR property.

Parameters:
value allowed object is
    public void setDistR(Long value) {
        this. = value;
    }

    
Gets the value of the simplePosAttr property.

Returns:
possible object is
    public Boolean isSimplePosAttr() {
        return ;
    }

    
Sets the value of the simplePosAttr property.

Parameters:
value allowed object is
    public void setSimplePosAttr(Boolean value) {
        this. = value;
    }

    
Gets the value of the relativeHeight property.
    public long getRelativeHeight() {
        return ;
    }

    
Sets the value of the relativeHeight property.
    public void setRelativeHeight(long value) {
        this. = value;
    }

    
Gets the value of the behindDoc property.
    public boolean isBehindDoc() {
        return ;
    }

    
Sets the value of the behindDoc property.
    public void setBehindDoc(boolean value) {
        this. = value;
    }

    
Gets the value of the locked property.
    public boolean isLocked() {
        return ;
    }

    
Sets the value of the locked property.
    public void setLocked(boolean value) {
        this. = value;
    }

    
Gets the value of the layoutInCell property.
    public boolean isLayoutInCell() {
        return ;
    }

    
Sets the value of the layoutInCell property.
    public void setLayoutInCell(boolean value) {
        this. = value;
    }

    
Gets the value of the hidden property.

Returns:
possible object is
    public Boolean isHidden() {
        return ;
    }

    
Sets the value of the hidden property.

Parameters:
value allowed object is
    public void setHidden(Boolean value) {
        this. = value;
    }

    
Gets the value of the allowOverlap property.
    public boolean isAllowOverlap() {
        return ;
    }

    
Sets the value of the allowOverlap property.
    public void setAllowOverlap(boolean value) {
        this. = value;
    }

   
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = 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.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X