sddl.hierarchy
Class Ellipse

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

public class Ellipse
extends Shape

This Shape represents an ellipse

Version:
1.00
Author:
Mathieu Bourgeois

Constructor Summary
Ellipse()
          Standard SDDL constructor
 
Method Summary
 Ellipse copy()
          Returns a copy of this Ellipse
 void draw(AbstractPoint location, java.io.PrintWriter out)
          Standard SDDL draw function.
 double getXradius()
          Standard SDDL getter of the xradius property
 double getYradius()
          Standard SDDL getter of the yradius property
 Path obtainPath()
          Returns a Path describing this Ellipse
 void setXradius(double r)
          Standard SDDL setter for xradius property
 void setYradius(double r)
          Standard SDDL setter for yradius 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

Ellipse

public Ellipse()
Standard SDDL constructor

Method Detail

copy

public Ellipse copy()
Returns a copy of this Ellipse

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

setXradius

public void setXradius(double r)
Standard SDDL setter for xradius property

Parameters:
r - radius of the x axis

setYradius

public void setYradius(double r)
Standard SDDL setter for yradius property

Parameters:
r - radius of the y axis

getXradius

public double getXradius()
Standard SDDL getter of the xradius property

Returns:
radius of the x axis

getYradius

public double getYradius()
Standard SDDL getter of the yradius property

Returns:
radius of the y axis

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 this Ellipse

Specified by:
obtainPath in class Shape
Returns:
A Path describing this Ellipse