org.jfree.util
Class ShapeUtils

java.lang.Object
  extended byorg.jfree.util.ShapeUtils

public class ShapeUtils
extends java.lang.Object

Utility methods for Shape objects.

Author:
David Gilbert.

Constructor Summary
ShapeUtils()
           
 
Method Summary
static java.awt.Shape clone(java.awt.Shape shape)
          Returns a clone of the specified shape, or null.
 boolean equal(java.awt.Polygon p1, java.awt.Polygon p2)
          Tests two polygons for equality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeUtils

public ShapeUtils()
Method Detail

clone

public static java.awt.Shape clone(java.awt.Shape shape)
Returns a clone of the specified shape, or null.

Parameters:
shape - the shape to clone.
Returns:
A clone.

equal

public boolean equal(java.awt.Polygon p1,
                     java.awt.Polygon p2)
Tests two polygons for equality.

Parameters:
p1 - polygon 1.
p2 - polygon 2.
Returns:
A boolean.