com.hfg.xml.msofficexml.docx.drawingml.DmlStretch 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.XMLTag;
import com.hfg.xml.msofficexml.docx.Docx;
import com.hfg.xml.msofficexml.OfficeOpenXMLTag;
public class DmlStretch extends OfficeOpenXMLTag
{
private XMLTag mFillRectTag;
//---------------------------------------------------------------------------
public DmlStretch(Docx inDocx)
{
super(DmlXML.STRETCH, inDocx);
}
//---------------------------------------------------------------------------
// TODO: Add offset support to the fillRect tag
public DmlStretch fillRect()
{
if (null == mFillRectTag)
{
// Check it it has been added via addSubtag()...
mFillRectTag = getOptionalSubtagByName(DmlXML.FILL_RECT);
if (null == mFillRectTag)
{
mFillRectTag = new XMLTag(DmlXML.FILL_RECT);
addSubtag(mFillRectTag);
}
}
return this;
}
}