<arcTo wR="wr" hR="hr" stAng="stAng" swAng="swAng"/>
Where wr and wh are the height and width radii
of the supposed circle being used to draw the arc. This gives the circle
a total height of (2 * hR) and a total width of (2 * wR)
stAng is the start angle and swAng is the swing angle
Java class for CT_Path2DArcTo complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Path2DArcTo">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="wR" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
<attribute name="hR" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
<attribute name="stAng" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
<attribute name="swAng" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: the angle in degreesthe angle in OOXML units divided by 60000 ooAngle, double the width of the bounding box width, double the height of the bounding box height)Arc2D angles are skewed, OOXML aren't ... |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void |
| hr | back to summary |
|---|---|
| private String hr | |
| stAng | back to summary |
|---|---|
| private String stAng | |
| swAng | back to summary |
|---|---|
| private String swAng | |
| wr | back to summary |
|---|---|
| private String wr | |
| ArcToCommand | back to summary |
|---|---|
| public ArcToCommand() | |
| convertOoxml2AwtAngle | back to summary |
|---|---|
| public static double convertOoxml2AwtAngle(double ooAngle, double width, double height) Arc2D angles are skewed, OOXML aren't ... so we need to unskew them Furthermore, ooxml angle starts at the X-axis and increases clock-wise, whereas Arc2D api states "45 degrees always falls on the line from the center of the ellipse to the upper right corner of the framing rectangle" so we need to reverse it
AWT: OOXML:
|90/-270 |270/-90 (16200000)
| |
+/-180-----------0 +/-180-----------0
| (10800000) |
|270/-90 |90/-270 (5400000)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getHR | back to summary |
|---|---|
| public String getHR() Implements org.
| |
| getStAng | back to summary |
|---|---|
| public String getStAng() Implements org.
| |
| getSwAng | back to summary |
|---|---|
| public String getSwAng() Implements org.
| |
| getWR | back to summary |
|---|---|
| public String getWR() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setHR | back to summary |
|---|---|
| public void setHR(String hr) Implements org.
| |
| setStAng | back to summary |
|---|---|
| public void setStAng(String stAng) Implements org.
| |
| setSwAng | back to summary |
|---|---|
| public void setSwAng(String swAng) Implements org.
| |
| setWR | back to summary |
|---|---|
| public void setWR(String wr) Implements org.
| |