Package org.docx4j.dml
Class CTPath2D
java.lang.Object
org.docx4j.dml.CTPath2D
- All Implemented Interfaces:
Child
public class CTPath2D extends java.lang.Object implements Child
Java class for CT_Path2D complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Path2D">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice maxOccurs="unbounded" minOccurs="0">
<element name="close" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DClose"/>
<element name="moveTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DMoveTo"/>
<element name="lnTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DLineTo"/>
<element name="arcTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DArcTo"/>
<element name="quadBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DQuadBezierTo"/>
<element name="cubicBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DCubicBezierTo"/>
</choice>
<attribute name="w" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
<attribute name="h" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
<attribute name="fill" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PathFillMode" default="norm" />
<attribute name="stroke" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="extrusionOk" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Object>closeOrMoveToOrLnToprotected java.lang.BooleanextrusionOkprotected STPathFillModefillprotected java.lang.Longhprotected java.lang.Booleanstrokeprotected java.lang.Longw -
Constructor Summary
Constructors Constructor Description CTPath2D() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.java.util.List<java.lang.Object>getCloseOrMoveToOrLnTo()Gets the value of the closeOrMoveToOrLnTo property.STPathFillModegetFill()Gets the value of the fill property.longgetH()Gets the value of the h property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.longgetW()Gets the value of the w property.booleanisExtrusionOk()Gets the value of the extrusionOk property.booleanisStroke()Gets the value of the stroke property.voidsetExtrusionOk(java.lang.Boolean value)Sets the value of the extrusionOk property.voidsetFill(STPathFillMode value)Sets the value of the fill property.voidsetH(java.lang.Long value)Sets the value of the h property.voidsetParent(java.lang.Object parent)voidsetStroke(java.lang.Boolean value)Sets the value of the stroke property.voidsetW(java.lang.Long value)Sets the value of the w property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
closeOrMoveToOrLnTo
protected java.util.List<java.lang.Object> closeOrMoveToOrLnTo -
w
protected java.lang.Long w -
h
protected java.lang.Long h -
fill
-
stroke
protected java.lang.Boolean stroke -
extrusionOk
protected java.lang.Boolean extrusionOk
-
-
Constructor Details
-
CTPath2D
public CTPath2D()
-
-
Method Details
-
getCloseOrMoveToOrLnTo
public java.util.List<java.lang.Object> getCloseOrMoveToOrLnTo()Gets the value of the closeOrMoveToOrLnTo property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the closeOrMoveToOrLnTo property.For example, to add a new item, do as follows:
getCloseOrMoveToOrLnTo().add(newItem);Objects of the following type(s) are allowed in the list
CTPath2DCloseCTPath2DMoveToCTPath2DLineToCTPath2DArcToCTPath2DQuadBezierToCTPath2DCubicBezierTo -
getW
public long getW()Gets the value of the w property.- Returns:
- possible object is
Long
-
setW
public void setW(java.lang.Long value)Sets the value of the w property.- Parameters:
value- allowed object isLong
-
getH
public long getH()Gets the value of the h property.- Returns:
- possible object is
Long
-
setH
public void setH(java.lang.Long value)Sets the value of the h property.- Parameters:
value- allowed object isLong
-
getFill
Gets the value of the fill property.- Returns:
- possible object is
STPathFillMode
-
setFill
Sets the value of the fill property.- Parameters:
value- allowed object isSTPathFillMode
-
isStroke
public boolean isStroke()Gets the value of the stroke property.- Returns:
- possible object is
Boolean
-
setStroke
public void setStroke(java.lang.Boolean value)Sets the value of the stroke property.- Parameters:
value- allowed object isBoolean
-
isExtrusionOk
public boolean isExtrusionOk()Gets the value of the extrusionOk property.- Returns:
- possible object is
Boolean
-
setExtrusionOk
public void setExtrusionOk(java.lang.Boolean value)Sets the value of the extrusionOk property.- Parameters:
value- allowed object isBoolean
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-