Package org.apache.poi.sl.draw.geom
Class Path
- java.lang.Object
-
- org.apache.poi.sl.draw.geom.Path
-
- All Implemented Interfaces:
PathIf
public final class Path extends Object implements PathIf
Specifies a creation path consisting of a series of moves, lines and curves that when combined forms a geometric shapeJava 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 Constructor Description Path()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCommand(PathCommand cmd)booleanequals(Object o)PaintStyle.PaintModifiergetFill()longgetH()Path2D.DoublegetPath(Context ctx)Convert the internal represenation to java.awt.geom.Path2DlonggetW()inthashCode()booleanisExtrusionOk()booleanisFilled()booleanisStroked()voidsetExtrusionOk(boolean extrusionOk)voidsetFill(PaintStyle.PaintModifier fill)voidsetH(long h)voidsetStroke(boolean stroke)voidsetW(long w)
-
-
-
Method Detail
-
addCommand
public void addCommand(PathCommand cmd)
- Specified by:
addCommandin interfacePathIf
-
getPath
public Path2D.Double getPath(Context ctx)
Convert the internal represenation to java.awt.geom.Path2D
-
getFill
public PaintStyle.PaintModifier getFill()
-
setFill
public void setFill(PaintStyle.PaintModifier fill)
-
isExtrusionOk
public boolean isExtrusionOk()
- Specified by:
isExtrusionOkin interfacePathIf
-
setExtrusionOk
public void setExtrusionOk(boolean extrusionOk)
- Specified by:
setExtrusionOkin interfacePathIf
-
-