001package com.hfg.xml.msofficexml.docx.drawingml.line.dash; 002 003 004//------------------------------------------------------------------------------ 005 006import com.hfg.xml.XMLName; 007import com.hfg.xml.msofficexml.OfficeOpenXmlDocument; 008import com.hfg.xml.msofficexml.docx.drawingml.DmlXML; 009 010/** 011 Preset line dash in drawing markup language (DML) from Office Open XML. 012 <div> 013 @author J. Alex Taylor, hairyfatguy.com 014 </div> 015 */ 016//------------------------------------------------------------------------------ 017// com.hfg XML/HTML Coding Library 018// 019// This library is free software; you can redistribute it and/or 020// modify it under the terms of the GNU Lesser General Public 021// License as published by the Free Software Foundation; either 022// version 2.1 of the License, or (at your option) any later version. 023// 024// This library is distributed in the hope that it will be useful, 025// but WITHOUT ANY WARRANTY; without even the implied warranty of 026// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 027// Lesser General Public License for more details. 028// 029// You should have received a copy of the GNU Lesser General Public 030// License along with this library; if not, write to the Free Software 031// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 032// 033// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 034// jataylor@hairyfatguy.com 035//------------------------------------------------------------------------------ 036 037public class DmlPresetLineDash extends DmlLineDash 038{ 039 //########################################################################### 040 // CONSTRUCTORS 041 //########################################################################### 042 043 //--------------------------------------------------------------------------- 044 public DmlPresetLineDash(OfficeOpenXmlDocument inParentDoc) 045 { 046 super(DmlXML.PRESET_DASH, inParentDoc); 047 } 048 049 //--------------------------------------------------------------------------- 050 public DmlPresetLineDash(OfficeOpenXmlDocument inParentDoc, DmlPresetLineDashType inLineDashType) 051 { 052 this(inParentDoc); 053 setLineDashType(inLineDashType); 054 } 055 056 //########################################################################### 057 // PUBLIC METHODS 058 //########################################################################### 059 060 //--------------------------------------------------------------------------- 061 public DmlPresetLineDash setLineDashType(DmlPresetLineDashType inValue) 062 { 063 setAttribute(DmlXML.VALUE_ATT, inValue); 064 return this; 065 } 066}