source: trunk/docx4j/src/main/java/org/docx4j/vml/CTStroke.java @ 1461

Revision 1461, 22.2 KB checked in by jharrop, 14 months ago (diff)

VML generated classes, based on ECMA 376 1ed (rather than earlier draft).
Includes @XmlType? namespace annotations from revs 940 and 1129.

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21
22package org.docx4j.vml;
23
24import java.math.BigDecimal;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlElement;
30import javax.xml.bind.annotation.XmlTransient;
31import javax.xml.bind.annotation.XmlType;
32import org.docx4j.vml.officedrawing.CTStrokeChild;
33import org.jvnet.jaxb2_commons.ppp.Child;
34
35
36/**
37 * <p>Java class for CT_Stroke complex type.
38 *
39 * <p>The following schema fragment specifies the expected content contained within this class.
40 *
41 * <pre>
42 * &lt;complexType name="CT_Stroke">
43 *   &lt;complexContent>
44 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 *       &lt;sequence>
46 *         &lt;element ref="{urn:schemas-microsoft-com:office:office}left" minOccurs="0"/>
47 *         &lt;element ref="{urn:schemas-microsoft-com:office:office}top" minOccurs="0"/>
48 *         &lt;element ref="{urn:schemas-microsoft-com:office:office}right" minOccurs="0"/>
49 *         &lt;element ref="{urn:schemas-microsoft-com:office:office}bottom" minOccurs="0"/>
50 *         &lt;element ref="{urn:schemas-microsoft-com:office:office}column" minOccurs="0"/>
51 *       &lt;/sequence>
52 *       &lt;attGroup ref="{urn:schemas-microsoft-com:vml}AG_Id"/>
53 *       &lt;attGroup ref="{urn:schemas-microsoft-com:vml}AG_StrokeAttributes"/>
54 *     &lt;/restriction>
55 *   &lt;/complexContent>
56 * &lt;/complexType>
57 * </pre>
58 *
59 *
60 */
61@XmlAccessorType(XmlAccessType.FIELD)
62@XmlType(name = "CT_Stroke", propOrder = {
63    "left",
64    "top",
65    "right",
66    "bottom",
67    "column"
68})
69public class CTStroke implements Child
70{
71
72    @XmlElement(namespace = "urn:schemas-microsoft-com:office:office")
73    protected CTStrokeChild left;
74    @XmlElement(namespace = "urn:schemas-microsoft-com:office:office")
75    protected CTStrokeChild top;
76    @XmlElement(namespace = "urn:schemas-microsoft-com:office:office")
77    protected CTStrokeChild right;
78    @XmlElement(namespace = "urn:schemas-microsoft-com:office:office")
79    protected CTStrokeChild bottom;
80    @XmlElement(namespace = "urn:schemas-microsoft-com:office:office")
81    protected CTStrokeChild column;
82    @XmlAttribute(name = "id")
83    protected String vmlId;
84    @XmlAttribute(name = "on")
85    protected org.docx4j.vml.STTrueFalse on;
86    @XmlAttribute(name = "weight")
87    protected String weight;
88    @XmlAttribute(name = "color")
89    protected String color;
90    @XmlAttribute(name = "opacity")
91    protected String opacity;
92    @XmlAttribute(name = "linestyle")
93    protected STStrokeLineStyle linestyle;
94    @XmlAttribute(name = "miterlimit")
95    protected BigDecimal miterlimit;
96    @XmlAttribute(name = "joinstyle")
97    protected STStrokeJoinStyle joinstyle;
98    @XmlAttribute(name = "endcap")
99    protected STStrokeEndCap endcap;
100    @XmlAttribute(name = "dashstyle")
101    protected String dashstyle;
102    @XmlAttribute(name = "filltype")
103    protected STFillType filltype;
104    @XmlAttribute(name = "src")
105    protected String src;
106    @XmlAttribute(name = "imageaspect")
107    protected STImageAspect imageaspect;
108    @XmlAttribute(name = "imagesize")
109    protected String imagesize;
110    @XmlAttribute(name = "imagealignshape")
111    protected org.docx4j.vml.STTrueFalse imagealignshape;
112    @XmlAttribute(name = "color2")
113    protected String color2;
114    @XmlAttribute(name = "startarrow")
115    protected STStrokeArrowType startarrow;
116    @XmlAttribute(name = "startarrowwidth")
117    protected STStrokeArrowWidth startarrowwidth;
118    @XmlAttribute(name = "startarrowlength")
119    protected STStrokeArrowLength startarrowlength;
120    @XmlAttribute(name = "endarrow")
121    protected STStrokeArrowType endarrow;
122    @XmlAttribute(name = "endarrowwidth")
123    protected STStrokeArrowWidth endarrowwidth;
124    @XmlAttribute(name = "endarrowlength")
125    protected STStrokeArrowLength endarrowlength;
126    @XmlAttribute(name = "href", namespace = "urn:schemas-microsoft-com:office:office")
127    protected String href;
128    @XmlAttribute(name = "althref", namespace = "urn:schemas-microsoft-com:office:office")
129    protected String althref;
130    @XmlAttribute(name = "title", namespace = "urn:schemas-microsoft-com:office:office")
131    protected String title;
132    @XmlAttribute(name = "forcedash", namespace = "urn:schemas-microsoft-com:office:office")
133    protected org.docx4j.vml.officedrawing.STTrueFalse forcedash;
134    @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")
135    protected String id;
136    @XmlAttribute(name = "insetpen")
137    protected org.docx4j.vml.STTrueFalse insetpen;
138    @XmlAttribute(name = "relid", namespace = "urn:schemas-microsoft-com:office:office")
139    protected String relid;
140    @XmlTransient
141    private Object parent;
142
143    /**
144     * Gets the value of the left property.
145     *
146     * @return
147     *     possible object is
148     *     {@link CTStrokeChild }
149     *     
150     */
151    public CTStrokeChild getLeft() {
152        return left;
153    }
154
155    /**
156     * Sets the value of the left property.
157     *
158     * @param value
159     *     allowed object is
160     *     {@link CTStrokeChild }
161     *     
162     */
163    public void setLeft(CTStrokeChild value) {
164        this.left = value;
165    }
166
167    /**
168     * Gets the value of the top property.
169     *
170     * @return
171     *     possible object is
172     *     {@link CTStrokeChild }
173     *     
174     */
175    public CTStrokeChild getTop() {
176        return top;
177    }
178
179    /**
180     * Sets the value of the top property.
181     *
182     * @param value
183     *     allowed object is
184     *     {@link CTStrokeChild }
185     *     
186     */
187    public void setTop(CTStrokeChild value) {
188        this.top = value;
189    }
190
191    /**
192     * Gets the value of the right property.
193     *
194     * @return
195     *     possible object is
196     *     {@link CTStrokeChild }
197     *     
198     */
199    public CTStrokeChild getRight() {
200        return right;
201    }
202
203    /**
204     * Sets the value of the right property.
205     *
206     * @param value
207     *     allowed object is
208     *     {@link CTStrokeChild }
209     *     
210     */
211    public void setRight(CTStrokeChild value) {
212        this.right = value;
213    }
214
215    /**
216     * Gets the value of the bottom property.
217     *
218     * @return
219     *     possible object is
220     *     {@link CTStrokeChild }
221     *     
222     */
223    public CTStrokeChild getBottom() {
224        return bottom;
225    }
226
227    /**
228     * Sets the value of the bottom property.
229     *
230     * @param value
231     *     allowed object is
232     *     {@link CTStrokeChild }
233     *     
234     */
235    public void setBottom(CTStrokeChild value) {
236        this.bottom = value;
237    }
238
239    /**
240     * Gets the value of the column property.
241     *
242     * @return
243     *     possible object is
244     *     {@link CTStrokeChild }
245     *     
246     */
247    public CTStrokeChild getColumn() {
248        return column;
249    }
250
251    /**
252     * Sets the value of the column property.
253     *
254     * @param value
255     *     allowed object is
256     *     {@link CTStrokeChild }
257     *     
258     */
259    public void setColumn(CTStrokeChild value) {
260        this.column = value;
261    }
262
263    /**
264     * Gets the value of the vmlId property.
265     *
266     * @return
267     *     possible object is
268     *     {@link String }
269     *     
270     */
271    public String getVmlId() {
272        return vmlId;
273    }
274
275    /**
276     * Sets the value of the vmlId property.
277     *
278     * @param value
279     *     allowed object is
280     *     {@link String }
281     *     
282     */
283    public void setVmlId(String value) {
284        this.vmlId = value;
285    }
286
287    /**
288     * Gets the value of the on property.
289     *
290     * @return
291     *     possible object is
292     *     {@link org.docx4j.vml.STTrueFalse }
293     *     
294     */
295    public org.docx4j.vml.STTrueFalse getOn() {
296        return on;
297    }
298
299    /**
300     * Sets the value of the on property.
301     *
302     * @param value
303     *     allowed object is
304     *     {@link org.docx4j.vml.STTrueFalse }
305     *     
306     */
307    public void setOn(org.docx4j.vml.STTrueFalse value) {
308        this.on = value;
309    }
310
311    /**
312     * Gets the value of the weight property.
313     *
314     * @return
315     *     possible object is
316     *     {@link String }
317     *     
318     */
319    public String getWeight() {
320        return weight;
321    }
322
323    /**
324     * Sets the value of the weight property.
325     *
326     * @param value
327     *     allowed object is
328     *     {@link String }
329     *     
330     */
331    public void setWeight(String value) {
332        this.weight = value;
333    }
334
335    /**
336     * Gets the value of the color property.
337     *
338     * @return
339     *     possible object is
340     *     {@link String }
341     *     
342     */
343    public String getColor() {
344        return color;
345    }
346
347    /**
348     * Sets the value of the color property.
349     *
350     * @param value
351     *     allowed object is
352     *     {@link String }
353     *     
354     */
355    public void setColor(String value) {
356        this.color = value;
357    }
358
359    /**
360     * Gets the value of the opacity property.
361     *
362     * @return
363     *     possible object is
364     *     {@link String }
365     *     
366     */
367    public String getOpacity() {
368        return opacity;
369    }
370
371    /**
372     * Sets the value of the opacity property.
373     *
374     * @param value
375     *     allowed object is
376     *     {@link String }
377     *     
378     */
379    public void setOpacity(String value) {
380        this.opacity = value;
381    }
382
383    /**
384     * Gets the value of the linestyle property.
385     *
386     * @return
387     *     possible object is
388     *     {@link STStrokeLineStyle }
389     *     
390     */
391    public STStrokeLineStyle getLinestyle() {
392        return linestyle;
393    }
394
395    /**
396     * Sets the value of the linestyle property.
397     *
398     * @param value
399     *     allowed object is
400     *     {@link STStrokeLineStyle }
401     *     
402     */
403    public void setLinestyle(STStrokeLineStyle value) {
404        this.linestyle = value;
405    }
406
407    /**
408     * Gets the value of the miterlimit property.
409     *
410     * @return
411     *     possible object is
412     *     {@link BigDecimal }
413     *     
414     */
415    public BigDecimal getMiterlimit() {
416        return miterlimit;
417    }
418
419    /**
420     * Sets the value of the miterlimit property.
421     *
422     * @param value
423     *     allowed object is
424     *     {@link BigDecimal }
425     *     
426     */
427    public void setMiterlimit(BigDecimal value) {
428        this.miterlimit = value;
429    }
430
431    /**
432     * Gets the value of the joinstyle property.
433     *
434     * @return
435     *     possible object is
436     *     {@link STStrokeJoinStyle }
437     *     
438     */
439    public STStrokeJoinStyle getJoinstyle() {
440        return joinstyle;
441    }
442
443    /**
444     * Sets the value of the joinstyle property.
445     *
446     * @param value
447     *     allowed object is
448     *     {@link STStrokeJoinStyle }
449     *     
450     */
451    public void setJoinstyle(STStrokeJoinStyle value) {
452        this.joinstyle = value;
453    }
454
455    /**
456     * Gets the value of the endcap property.
457     *
458     * @return
459     *     possible object is
460     *     {@link STStrokeEndCap }
461     *     
462     */
463    public STStrokeEndCap getEndcap() {
464        return endcap;
465    }
466
467    /**
468     * Sets the value of the endcap property.
469     *
470     * @param value
471     *     allowed object is
472     *     {@link STStrokeEndCap }
473     *     
474     */
475    public void setEndcap(STStrokeEndCap value) {
476        this.endcap = value;
477    }
478
479    /**
480     * Gets the value of the dashstyle property.
481     *
482     * @return
483     *     possible object is
484     *     {@link String }
485     *     
486     */
487    public String getDashstyle() {
488        return dashstyle;
489    }
490
491    /**
492     * Sets the value of the dashstyle property.
493     *
494     * @param value
495     *     allowed object is
496     *     {@link String }
497     *     
498     */
499    public void setDashstyle(String value) {
500        this.dashstyle = value;
501    }
502
503    /**
504     * Gets the value of the filltype property.
505     *
506     * @return
507     *     possible object is
508     *     {@link STFillType }
509     *     
510     */
511    public STFillType getFilltype() {
512        return filltype;
513    }
514
515    /**
516     * Sets the value of the filltype property.
517     *
518     * @param value
519     *     allowed object is
520     *     {@link STFillType }
521     *     
522     */
523    public void setFilltype(STFillType value) {
524        this.filltype = value;
525    }
526
527    /**
528     * Gets the value of the src property.
529     *
530     * @return
531     *     possible object is
532     *     {@link String }
533     *     
534     */
535    public String getSrc() {
536        return src;
537    }
538
539    /**
540     * Sets the value of the src property.
541     *
542     * @param value
543     *     allowed object is
544     *     {@link String }
545     *     
546     */
547    public void setSrc(String value) {
548        this.src = value;
549    }
550
551    /**
552     * Gets the value of the imageaspect property.
553     *
554     * @return
555     *     possible object is
556     *     {@link STImageAspect }
557     *     
558     */
559    public STImageAspect getImageaspect() {
560        return imageaspect;
561    }
562
563    /**
564     * Sets the value of the imageaspect property.
565     *
566     * @param value
567     *     allowed object is
568     *     {@link STImageAspect }
569     *     
570     */
571    public void setImageaspect(STImageAspect value) {
572        this.imageaspect = value;
573    }
574
575    /**
576     * Gets the value of the imagesize property.
577     *
578     * @return
579     *     possible object is
580     *     {@link String }
581     *     
582     */
583    public String getImagesize() {
584        return imagesize;
585    }
586
587    /**
588     * Sets the value of the imagesize property.
589     *
590     * @param value
591     *     allowed object is
592     *     {@link String }
593     *     
594     */
595    public void setImagesize(String value) {
596        this.imagesize = value;
597    }
598
599    /**
600     * Gets the value of the imagealignshape property.
601     *
602     * @return
603     *     possible object is
604     *     {@link org.docx4j.vml.STTrueFalse }
605     *     
606     */
607    public org.docx4j.vml.STTrueFalse getImagealignshape() {
608        return imagealignshape;
609    }
610
611    /**
612     * Sets the value of the imagealignshape property.
613     *
614     * @param value
615     *     allowed object is
616     *     {@link org.docx4j.vml.STTrueFalse }
617     *     
618     */
619    public void setImagealignshape(org.docx4j.vml.STTrueFalse value) {
620        this.imagealignshape = value;
621    }
622
623    /**
624     * Gets the value of the color2 property.
625     *
626     * @return
627     *     possible object is
628     *     {@link String }
629     *     
630     */
631    public String getColor2() {
632        return color2;
633    }
634
635    /**
636     * Sets the value of the color2 property.
637     *
638     * @param value
639     *     allowed object is
640     *     {@link String }
641     *     
642     */
643    public void setColor2(String value) {
644        this.color2 = value;
645    }
646
647    /**
648     * Gets the value of the startarrow property.
649     *
650     * @return
651     *     possible object is
652     *     {@link STStrokeArrowType }
653     *     
654     */
655    public STStrokeArrowType getStartarrow() {
656        return startarrow;
657    }
658
659    /**
660     * Sets the value of the startarrow property.
661     *
662     * @param value
663     *     allowed object is
664     *     {@link STStrokeArrowType }
665     *     
666     */
667    public void setStartarrow(STStrokeArrowType value) {
668        this.startarrow = value;
669    }
670
671    /**
672     * Gets the value of the startarrowwidth property.
673     *
674     * @return
675     *     possible object is
676     *     {@link STStrokeArrowWidth }
677     *     
678     */
679    public STStrokeArrowWidth getStartarrowwidth() {
680        return startarrowwidth;
681    }
682
683    /**
684     * Sets the value of the startarrowwidth property.
685     *
686     * @param value
687     *     allowed object is
688     *     {@link STStrokeArrowWidth }
689     *     
690     */
691    public void setStartarrowwidth(STStrokeArrowWidth value) {
692        this.startarrowwidth = value;
693    }
694
695    /**
696     * Gets the value of the startarrowlength property.
697     *
698     * @return
699     *     possible object is
700     *     {@link STStrokeArrowLength }
701     *     
702     */
703    public STStrokeArrowLength getStartarrowlength() {
704        return startarrowlength;
705    }
706
707    /**
708     * Sets the value of the startarrowlength property.
709     *
710     * @param value
711     *     allowed object is
712     *     {@link STStrokeArrowLength }
713     *     
714     */
715    public void setStartarrowlength(STStrokeArrowLength value) {
716        this.startarrowlength = value;
717    }
718
719    /**
720     * Gets the value of the endarrow property.
721     *
722     * @return
723     *     possible object is
724     *     {@link STStrokeArrowType }
725     *     
726     */
727    public STStrokeArrowType getEndarrow() {
728        return endarrow;
729    }
730
731    /**
732     * Sets the value of the endarrow property.
733     *
734     * @param value
735     *     allowed object is
736     *     {@link STStrokeArrowType }
737     *     
738     */
739    public void setEndarrow(STStrokeArrowType value) {
740        this.endarrow = value;
741    }
742
743    /**
744     * Gets the value of the endarrowwidth property.
745     *
746     * @return
747     *     possible object is
748     *     {@link STStrokeArrowWidth }
749     *     
750     */
751    public STStrokeArrowWidth getEndarrowwidth() {
752        return endarrowwidth;
753    }
754
755    /**
756     * Sets the value of the endarrowwidth property.
757     *
758     * @param value
759     *     allowed object is
760     *     {@link STStrokeArrowWidth }
761     *     
762     */
763    public void setEndarrowwidth(STStrokeArrowWidth value) {
764        this.endarrowwidth = value;
765    }
766
767    /**
768     * Gets the value of the endarrowlength property.
769     *
770     * @return
771     *     possible object is
772     *     {@link STStrokeArrowLength }
773     *     
774     */
775    public STStrokeArrowLength getEndarrowlength() {
776        return endarrowlength;
777    }
778
779    /**
780     * Sets the value of the endarrowlength property.
781     *
782     * @param value
783     *     allowed object is
784     *     {@link STStrokeArrowLength }
785     *     
786     */
787    public void setEndarrowlength(STStrokeArrowLength value) {
788        this.endarrowlength = value;
789    }
790
791    /**
792     * Original Image Reference
793     *
794     * @return
795     *     possible object is
796     *     {@link String }
797     *     
798     */
799    public String getHref() {
800        return href;
801    }
802
803    /**
804     * Sets the value of the href property.
805     *
806     * @param value
807     *     allowed object is
808     *     {@link String }
809     *     
810     */
811    public void setHref(String value) {
812        this.href = value;
813    }
814
815    /**
816     * Alternate Image Reference
817     *
818     * @return
819     *     possible object is
820     *     {@link String }
821     *     
822     */
823    public String getAlthref() {
824        return althref;
825    }
826
827    /**
828     * Sets the value of the althref property.
829     *
830     * @param value
831     *     allowed object is
832     *     {@link String }
833     *     
834     */
835    public void setAlthref(String value) {
836        this.althref = value;
837    }
838
839    /**
840     * Stroke Title
841     *
842     * @return
843     *     possible object is
844     *     {@link String }
845     *     
846     */
847    public String getTitle() {
848        return title;
849    }
850
851    /**
852     * Sets the value of the title property.
853     *
854     * @param value
855     *     allowed object is
856     *     {@link String }
857     *     
858     */
859    public void setTitle(String value) {
860        this.title = value;
861    }
862
863    /**
864     * Force Dashed Outline
865     *
866     * @return
867     *     possible object is
868     *     {@link org.docx4j.vml.officedrawing.STTrueFalse }
869     *     
870     */
871    public org.docx4j.vml.officedrawing.STTrueFalse getForcedash() {
872        return forcedash;
873    }
874
875    /**
876     * Sets the value of the forcedash property.
877     *
878     * @param value
879     *     allowed object is
880     *     {@link org.docx4j.vml.officedrawing.STTrueFalse }
881     *     
882     */
883    public void setForcedash(org.docx4j.vml.officedrawing.STTrueFalse value) {
884        this.forcedash = value;
885    }
886
887    /**
888     * Relationship
889     *
890     * @return
891     *     possible object is
892     *     {@link String }
893     *     
894     */
895    public String getId() {
896        return id;
897    }
898
899    /**
900     * Sets the value of the id property.
901     *
902     * @param value
903     *     allowed object is
904     *     {@link String }
905     *     
906     */
907    public void setId(String value) {
908        this.id = value;
909    }
910
911    /**
912     * Gets the value of the insetpen property.
913     *
914     * @return
915     *     possible object is
916     *     {@link org.docx4j.vml.STTrueFalse }
917     *     
918     */
919    public org.docx4j.vml.STTrueFalse getInsetpen() {
920        return insetpen;
921    }
922
923    /**
924     * Sets the value of the insetpen property.
925     *
926     * @param value
927     *     allowed object is
928     *     {@link org.docx4j.vml.STTrueFalse }
929     *     
930     */
931    public void setInsetpen(org.docx4j.vml.STTrueFalse value) {
932        this.insetpen = value;
933    }
934
935    /**
936     * Relationship to Part
937     *
938     * @return
939     *     possible object is
940     *     {@link String }
941     *     
942     */
943    public String getRelid() {
944        return relid;
945    }
946
947    /**
948     * Sets the value of the relid property.
949     *
950     * @param value
951     *     allowed object is
952     *     {@link String }
953     *     
954     */
955    public void setRelid(String value) {
956        this.relid = value;
957    }
958
959    /**
960     * Gets the parent object in the object tree representing the unmarshalled xml document.
961     *
962     * @return
963     *     The parent object.
964     */
965    public Object getParent() {
966        return this.parent;
967    }
968
969    public void setParent(Object parent) {
970        this.parent = parent;
971    }
972
973    /**
974     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
975     *
976     * @param parent
977     *     The parent object in the object tree.
978     * @param unmarshaller
979     *     The unmarshaller that generated the instance.
980     */
981    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
982        setParent(parent);
983    }
984
985}
Note: See TracBrowser for help on using the repository browser.