001package com.hfg.xml.msofficexml.docx.drawingml.line.join;
002
003
004import com.hfg.graphics.units.GfxSize;
005import com.hfg.graphics.units.GfxUnits;
006import com.hfg.xml.msofficexml.docx.drawingml.DmlXML;
007
008//------------------------------------------------------------------------------
009/**
010 Represents a miter line join (<a:miter>) tag in drawing markup language (DML) from Office Open XML.
011
012 @author J. Alex Taylor, hairyfatguy.com
013 */
014//------------------------------------------------------------------------------
015// com.hfg XML/HTML Coding Library
016//
017// This library is free software; you can redistribute it and/or
018// modify it under the terms of the GNU Lesser General Public
019// License as published by the Free Software Foundation; either
020// version 2.1 of the License, or (at your option) any later version.
021//
022// This library is distributed in the hope that it will be useful,
023// but WITHOUT ANY WARRANTY; without even the implied warranty of
024// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
025// Lesser General Public License for more details.
026//
027// You should have received a copy of the GNU Lesser General Public
028// License along with this library; if not, write to the Free Software
029// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
030//
031// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
032// jataylor@hairyfatguy.com
033//------------------------------------------------------------------------------
034
035public class DmlMiterLineJoin extends DmlLineJoin
036{
037   //---------------------------------------------------------------------------
038   public DmlMiterLineJoin()
039   {
040      super(DmlXML.MITER);
041   }
042
043   //---------------------------------------------------------------------------
044   public DmlMiterLineJoin setLimit(GfxSize inValue)
045   {
046      setAttribute(DmlXML.LIMIT_ATT, inValue.toInt(GfxUnits.emus));
047      return this;
048   }
049}