de.esw.eengine.renderable.primitive
Class Ellipse

java.lang.Object
  extended by de.esw.eengine.renderable.primitive.Ellipse
All Implemented Interfaces:
IRenderPrimitive

public class Ellipse
extends java.lang.Object
implements IRenderPrimitive

Since:
1.0
Version:
$Id: Ellipse.java 159 2005-07-06 07:00:49Z markusw $
Author:
markusw

Constructor Summary
Ellipse(int x, int y, int r, java.awt.Color borderColor)
          Draws a circle
Ellipse(int x, int y, int r, java.awt.Color borderColor, java.awt.Color fillColor)
          Draws a circle
Ellipse(int x, int y, int width, int height, java.awt.Color borderColor)
           
Ellipse(int x, int y, int width, int height, java.awt.Color borderColor, java.awt.Color fillColor)
           
 
Method Summary
 void render(java.awt.Graphics2D graphics)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ellipse

public Ellipse(int x,
               int y,
               int r,
               java.awt.Color borderColor)
Draws a circle

Parameters:
x - X coordinate of the center of the Circle
y - Y coordinate of the center of the Circle
r - Radius of the circle
borderColor - Color for this Ellipse

Ellipse

public Ellipse(int x,
               int y,
               int r,
               java.awt.Color borderColor,
               java.awt.Color fillColor)
Draws a circle

Parameters:
x - X coordinate of the center of the Circle
y - Y coordinate of the center of the Circle
r - Radius of the circle
borderColor - Color for this Ellipse
fillColor - Color to fill this Ellipse with

Ellipse

public Ellipse(int x,
               int y,
               int width,
               int height,
               java.awt.Color borderColor)
Parameters:
x - Left coordinate of the bounding rectangle for this Ellipse
y - Top coordinate of the bounding rectangle for this Ellipse
width - Width of the bounding rectangle for this Ellipse
height - Height of the bounding rectangle for this Ellipse
borderColor - Color for this Ellipse

Ellipse

public Ellipse(int x,
               int y,
               int width,
               int height,
               java.awt.Color borderColor,
               java.awt.Color fillColor)
Parameters:
x - Left coordinate of the bounding rectangle for this Ellipse
y - Top coordinate of the bounding rectangle for this Ellipse
width - Width of the bounding rectangle for this Ellipse
height - Height of the bounding rectangle for this Ellipse
borderColor - Color for this Ellipse
fillColor - Color to fill this Ellipse with
Method Detail

render

public void render(java.awt.Graphics2D graphics)
Specified by:
render in interface IRenderPrimitive
Parameters:
graphics - Graphics to render on
See Also:
IRenderPrimitive.render(java.awt.Graphics2D)