public final class Path extends Object implements PathIf
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 and Description |
|---|
Path() |
| Modifier and Type | Method and 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.Path2D
|
long |
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) |
public void addCommand(PathCommand cmd)
addCommand in interface PathIfpublic Path2D.Double getPath(Context ctx)
public PaintStyle.PaintModifier getFill()
public void setFill(PaintStyle.PaintModifier fill)
public boolean isExtrusionOk()
isExtrusionOk in interface PathIfpublic void setExtrusionOk(boolean extrusionOk)
setExtrusionOk in interface PathIf