Example usage for Java org.jfree.util ShapeUtilities fields, constructors, methods, implement or subclass
The text is from its open source code.
Shape | clone(final Shape shape) Returns a clone of the specified shape, or null . |
Shape | createDiagonalCross(final float l, final float t) Creates a diagonal cross shape. |
Shape | createDiamond(final float s) Creates a diamond shape. |
Shape | createDownTriangle(final float s) Creates a triangle shape that points downwards. |
Shape | createRegularCross(final float l, final float t) Creates a diagonal cross shape. |
Shape | createTranslatedShape(final Shape shape, final RectangleAnchor anchor, final double locationX, final double locationY) Translates a shape to a new location such that the anchor point (relative to the rectangular bounds of the shape) aligns with the specified (x, y) coordinate in Java2D space. |
Shape | createTranslatedShape(final Shape shape, final double transX, final double transY) Creates and returns a translated shape. |
Shape | createUpTriangle(final float s) Creates a triangle shape that points upwards. |
boolean | equal(final Shape s1, final Shape s2) Tests two shapes for equality. |
boolean | equal(final Line2D l1, final Line2D l2) Compares two lines are returns true if they are equal or both null . |
boolean | equal(final Ellipse2D e1, final Ellipse2D e2) Compares two ellipses and returns true if they are equal or both null . |
boolean | equal(final Arc2D a1, final Arc2D a2) Compares two arcs and returns true if they are equal or both null . |
boolean | equal(final Polygon p1, final Polygon p2) Tests two polygons for equality. |
boolean | equal(final GeneralPath p1, final GeneralPath p2) Tests two polygons for equality. |
Point2D | getPointInRectangle(double x, double y, final Rectangle2D area) Returns a point based on (x, y) but constrained to be within the bounds of a given rectangle. |
Shape | rotateShape(final Shape base, final double angle, final float x, final float y) Rotates a shape about the specified coordinates. |