All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.xml.msofficexml.docx.drawingml.DmlGraphic Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
package com.hfg.xml.msofficexml.docx.drawingml;


import com.hfg.xml.msofficexml.docx.Docx;
import com.hfg.xml.msofficexml.docx.wordprocessingml.WmlXMLTag;

public class DmlGraphic extends WmlXMLTag
{
   private DmlGraphicData   mGraphicData;

   //---------------------------------------------------------------------------
   public DmlGraphic(Docx inDocx)
   {
      super(DmlXML.GRAPHIC, inDocx);
   }


   //---------------------------------------------------------------------------
   /**
    * Returns the graphicData tag if one exists or else instantiates a new one.
    * @return the graphicData tag for this graphic tag
    */
   public DmlGraphicData getGraphicData()
   {
      if (null == mGraphicData)
      {
         // Check if it has been added via addSubtag()...
         mGraphicData = getOptionalSubtagByName(DmlXML.GRAPHIC_DATA);
         if (null == mGraphicData)
         {
            mGraphicData = new DmlGraphicData(getParentDoc());
            addSubtag(mGraphicData);
         }
      }

      return mGraphicData;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy