cmsc420.geom
Interface Geometry2D

All Known Implementing Classes:
Circle2D, Circle2D.Double, Circle2D.Float

public interface Geometry2D

An interface for polygonal shapes on the (x,y) coordinate plane. Makes up for the fact that java.awt.geom shape classes do not share an interface.

Version:
1.0, 25 Jan 2007
Author:
Ben Zoller

Field Summary
static int CIRCLE
          Type flag for Geometry2D circles
static int POINT
          Type flag for Geometry2D points
static int RECTANGLE
          Type flag for Geometry2D rectangles
static int SEGMENT
          Type flag for Geometry2D line segments
 
Method Summary
 int getType()
          Returns the type of of an object that implements the Geometry2D interface.
 

Field Detail

POINT

static final int POINT
Type flag for Geometry2D points

See Also:
Constant Field Values

SEGMENT

static final int SEGMENT
Type flag for Geometry2D line segments

See Also:
Constant Field Values

RECTANGLE

static final int RECTANGLE
Type flag for Geometry2D rectangles

See Also:
Constant Field Values

CIRCLE

static final int CIRCLE
Type flag for Geometry2D circles

See Also:
Constant Field Values
Method Detail

getType

int getType()
Returns the type of of an object that implements the Geometry2D interface.