com.hfg.xml.msofficexml.docx.drawingml.DmlGraphic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
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;
}
}