sddl.hierarchy
Class Circle

java.lang.Object
  extended by sddl.hierarchy.Shape
      extended by sddl.hierarchy.Circle

public class Circle
extends Shape

This Shape represents a Circle

Version:
1.00
Author:
Mathieu Bourgeois

Constructor Summary
Circle()
          Standard SDDL constructor
Circle(double radius)
          Java-only constructor
 
Method Summary
 Circle copy()
          Returns a copy of this Circle
 void draw(AbstractPoint location, java.io.PrintWriter out)
          Standard SDDL draw function.
 RefPoint getAnglePoint(Drawing d, double angle)
          Returns the point of the circle at angle angle
 double getRadius()
          Standard SDDL getter for the radius property
 Path obtainPath()
          Returns a Path describing the Circle
 void setRadius(double radius)
          Standard SDDL setter for the radius property
 
Methods inherited from class sddl.hierarchy.Shape
isVisible, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

public Circle()
Standard SDDL constructor


Circle

public Circle(double radius)
Java-only constructor

Parameters:
radius - Radius of the circle
Method Detail

copy

public Circle copy()
Returns a copy of this Circle

Specified by:
copy in class Shape
Returns:
A copy of this Circle

setRadius

public void setRadius(double radius)
Standard SDDL setter for the radius property

Parameters:
radius - Radius of the circle

getRadius

public double getRadius()
Standard SDDL getter for the radius property

Returns:
Radius of the circle

getAnglePoint

public RefPoint getAnglePoint(Drawing d,
                              double angle)
Returns the point of the circle at angle angle

Parameters:
d - Drawing from which the shape has been used
angle - Angle of the point to be found
Returns:
The point of the circle at angle angle

draw

public void draw(AbstractPoint location,
                 java.io.PrintWriter out)
Description copied from class: Shape
Standard SDDL draw function. Every shape must implement this

Specified by:
draw in class Shape
Parameters:
location - The location of the Shape on the main drawing
out - The file to be written to

obtainPath

public Path obtainPath()
Returns a Path describing the Circle

Specified by:
obtainPath in class Shape
Returns:
A Path describing the Circle