From 88510c4f90193b59c366901536c933b3176c20c2 Mon Sep 17 00:00:00 2001 From: Phillip Date: Mon, 21 Feb 2011 00:08:11 +0000 Subject: Added lots of NewMenuItem Classes. Changed Default Shape from JCheckBox to JButton. Added new Constructor to PlanarPolygon. Changed the sequence of events building JPanel/Frame in MenuItem. --- src/tesseract/objects/PlanarPolygon.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/tesseract/objects/PlanarPolygon.java') diff --git a/src/tesseract/objects/PlanarPolygon.java b/src/tesseract/objects/PlanarPolygon.java index 0521062..30eac77 100644 --- a/src/tesseract/objects/PlanarPolygon.java +++ b/src/tesseract/objects/PlanarPolygon.java @@ -54,7 +54,12 @@ public class PlanarPolygon extends PhysicalObject { /** * Number of divisions in the sphere. */ - private static final int DEFAULT_DIVISIONS = 6; + public static final int DEFAULT_DIVISIONS = 6; + + /** + * A Default radius. + */ + public static final float DEFAULT_RADIUS = 0.1f; /** * Create a new Ellipsoid. @@ -62,11 +67,7 @@ public class PlanarPolygon extends PhysicalObject { * @param position Initial position. * @param mass Initial mass. * @param radius the radius of the base sphere. - * @param primflags an int for the base spere primflags. * @param divisions an in for the shape divisions. - * @param appearance an Appearance object. - * @param b a float for the b portion of the ellipsoid formula. - * @param c a float for the c portion of the ellipsoid formula. */ public PlanarPolygon(final Vector3f position, final float mass, final float radius, final int divisions) { -- cgit v1.2.3