com.hfg.xml.msofficexml.docx.wordprocessingml.WmlEffectExtent 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.wordprocessingml;
import com.hfg.graphics.units.GfxSize;
import com.hfg.graphics.units.GfxUnits;
import com.hfg.graphics.units.Pixels;
import com.hfg.xml.XMLTag;
import com.hfg.xml.msofficexml.docx.drawingml.DmlXML;
public class WmlEffectExtent extends XMLTag
{
//---------------------------------------------------------------------------
public WmlEffectExtent()
{
super(WmlXML.EFFECT_EXTENT);
init();
}
//---------------------------------------------------------------------------
private void init()
{
setLeft(new Pixels(0));
setRight(new Pixels(0));
setTop(new Pixels(0));
setBottom(new Pixels(0));
}
//---------------------------------------------------------------------------
/**
* Specifies the additional extent to add to the left of the drawing.
*/
public WmlEffectExtent setLeft(GfxSize inValue)
{
setAttribute(DmlXML.LEFT_ATT, inValue.toInt(GfxUnits.emus));
return this;
}
//---------------------------------------------------------------------------
/**
* Specifies the additional extent to add to the right of the drawing.
*/
public WmlEffectExtent setRight(GfxSize inValue)
{
setAttribute(DmlXML.RIGHT_ATT, inValue.toInt(GfxUnits.emus));
return this;
}
//---------------------------------------------------------------------------
/**
* Specifies the additional extent to add to the top of the drawing.
*/
public WmlEffectExtent setTop(GfxSize inValue)
{
setAttribute(DmlXML.TOP_ATT, inValue.toInt(GfxUnits.emus));
return this;
}
//---------------------------------------------------------------------------
/**
* Specifies the additional extent to add to the bottom of the drawing.
*/
public WmlEffectExtent setBottom(GfxSize inValue)
{
setAttribute(DmlXML.BOTTOM_ATT, inValue.toInt(GfxUnits.emus));
return this;
}
}