Class AttrStringUtils
java.lang.Object
org.jfree.chart.util.AttrStringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawRotatedString(AttributedString text, Graphics2D g2, double angle, float x, float y) Draws the attributed string at(x, y), rotated by the specified angle about(x, y).static voiddrawRotatedString(AttributedString text, Graphics2D g2, float textX, float textY, double angle, float rotateX, float rotateY) Draws the attributed string at(textX, textY), rotated by the specified angle about(rotateX, rotateY).static voiddrawRotatedString(AttributedString text, Graphics2D g2, float x, float y, org.jfree.ui.TextAnchor textAnchor, double angle, float rotationX, float rotationY) Draws the string anchored to(x, y), rotated by the specified angle about(rotationX, rotationY).static voiddrawRotatedString(AttributedString text, Graphics2D g2, float x, float y, org.jfree.ui.TextAnchor textAnchor, double angle, org.jfree.ui.TextAnchor rotationAnchor) Draws a rotated string.
-
Method Details
-
drawRotatedString
public static void drawRotatedString(AttributedString text, Graphics2D g2, double angle, float x, float y) Draws the attributed string at(x, y), rotated by the specified angle about(x, y).- Parameters:
text- the attributed string (nullnot permitted).g2- the graphics output target.angle- the angle.x- the x-coordinate.y- the y-coordinate.- Since:
- 1.0.16
-
drawRotatedString
public static void drawRotatedString(AttributedString text, Graphics2D g2, float textX, float textY, double angle, float rotateX, float rotateY) Draws the attributed string at(textX, textY), rotated by the specified angle about(rotateX, rotateY).- Parameters:
text- the attributed string (nullnot permitted).g2- the graphics output target.textX- the x-coordinate for the text.textY- the y-coordinate for the text.angle- the rotation angle (in radians).rotateX- the x-coordinate for the rotation point.rotateY- the y-coordinate for the rotation point.- Since:
- 1.0.16
-
drawRotatedString
public static void drawRotatedString(AttributedString text, Graphics2D g2, float x, float y, org.jfree.ui.TextAnchor textAnchor, double angle, float rotationX, float rotationY) Draws the string anchored to(x, y), rotated by the specified angle about(rotationX, rotationY).- Parameters:
text- the text (nullnot permitted).g2- the graphics target.x- the x-coordinate for the text location.y- the y-coordinate for the text location.textAnchor- the text anchor point.angle- the rotation (in radians).rotationX- the x-coordinate for the rotation point.rotationY- the y-coordinate for the rotation point.- Since:
- 1.0.16
-
drawRotatedString
public static void drawRotatedString(AttributedString text, Graphics2D g2, float x, float y, org.jfree.ui.TextAnchor textAnchor, double angle, org.jfree.ui.TextAnchor rotationAnchor) Draws a rotated string.- Parameters:
text- the text to draw.g2- the graphics target.x- the x-coordinate for the text location.y- the y-coordinate for the text location.textAnchor- the text anchor point.angle- the rotation (in radians).rotationAnchor- the rotation anchor point.- Since:
- 1.0.16
-