Package org.apache.poi.sl.draw.geom
Class Path
java.lang.Object
org.apache.poi.sl.draw.geom.Path
- All Implemented Interfaces:
PathIf
Specifies a creation path consisting of a series of moves, lines and curves
that when combined forms a geometric shape
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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(PathCommand cmd) booleangetFill()longgetH()Convert the internal represenation to java.awt.geom.Path2DlonggetW()inthashCode()booleanbooleanisFilled()booleanvoidsetExtrusionOk(boolean extrusionOk) voidvoidsetH(long h) voidsetStroke(boolean stroke) voidsetW(long w)
-
Constructor Details
-
Path
public Path()
-
-
Method Details
-
addCommand
- Specified by:
addCommandin interfacePathIf
-
getPath
Convert the internal represenation to java.awt.geom.Path2D -
isStroked
public boolean isStroked() -
setStroke
public void setStroke(boolean stroke) -
isFilled
public boolean isFilled() -
getFill
-
setFill
-
getW
public long getW() -
setW
public void setW(long w) -
getH
public long getH() -
setH
public void setH(long h) -
isExtrusionOk
public boolean isExtrusionOk()- Specified by:
isExtrusionOkin interfacePathIf
-
setExtrusionOk
public void setExtrusionOk(boolean extrusionOk) - Specified by:
setExtrusionOkin interfacePathIf
-
equals
-
hashCode
public int hashCode()
-