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 void
addCommand(PathCommand cmd)
boolean
equals(Object o)
PaintStyle.PaintModifier
getFill()
long
getH()
Path2D.Double
getPath(Context ctx)
Convert the internal represenation to java.awt.geom.Path2Dlong
getW()
int
hashCode()
boolean
isExtrusionOk()
boolean
isFilled()
boolean
isStroked()
void
setExtrusionOk(boolean extrusionOk)
void
setFill(PaintStyle.PaintModifier fill)
void
setH(long h)
void
setStroke(boolean stroke)
void
setW(long w)
-
-
-
Method Detail
-
addCommand
public void addCommand(PathCommand cmd)
- Specified by:
addCommand
in 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:
isExtrusionOk
in interfacePathIf
-
setExtrusionOk
public void setExtrusionOk(boolean extrusionOk)
- Specified by:
setExtrusionOk
in interfacePathIf
-
-