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

com.hfg.xml.msofficexml.docx.wordprocessingml.WmlEffectExtent Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
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;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy