public class

Ellipse

extends Element
java.lang.Object
   ↳ casmi.graphics.element.Element
     ↳ casmi.graphics.element.Ellipse
Known Direct Subclasses

Class Overview

Ellipse class. Wrap JOGL and make it easy to use.

Summary

[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Ellipse(double x, double y, double width, double height)
Creates a new Ellipse object using x,y-coordinate, width and height.
Ellipse(Vector3D v, double width, double height)
Creates a new Ellipse object using x,y-coordinate, width and height.
Ellipse(double width, double height)
Creates a new Ellipse object using width and height.
Ellipse(double x, double y, double radius)
Creates a new Ellipse object using x,y-coordinate and radius.
Ellipse(Vector3D v, double radius)
Creates a new Ellipse object using x,y-coordinate and radius.
Ellipse(double radius)
Creates a new Ellipse object using radius.
Public Methods
double getHeight()
Gets height.
double getRadius()
Gets radius.
double getWidth()
Gets width.
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
void set(double x, double y, double radius)
Sets x,y-coordinate and radius.
void set(Vector3D v, double width, double height)
Sets x,y-coordinate, width and height.
void set(double x, double y, double width, double height)
Sets x,y-coordinate, width and height.
void set(Vector3D v, double radius)
Sets x,y-coordinate and radius.
void setCenterColor(Color color)
Sets the color of this Ellipse's center.
void setCenterColor(ColorSet colorSet)
Sets the color of this Ellipse's center.
void setDetail(double detail)
Sets the detail of this Ellipse.
void setEdgeColor(Color color)
Sets the color of this Ellipse's edge.
void setEdgeColor(ColorSet colorSet)
Sets the color of this Ellipse's edge.
void setHeight(double height)
Sets height.
void setRadius(double radius)
Sets radius.
void setWidth(double width)
Sets width.
[Expand]
Inherited Methods
From class casmi.graphics.element.Element
From class java.lang.Object
From interface casmi.graphics.object.Renderable
From interface casmi.graphics.object.Resettable

Public Constructors

public Ellipse (double x, double y, double width, double height)

Creates a new Ellipse object using x,y-coordinate, width and height.

Parameters
x The x-coordinate of the center of the Ellipse.
y The y-coordinate of the center of the Ellipse.
width The width of the Ellipse.
height The height of the Ellipse.

public Ellipse (Vector3D v, double width, double height)

Creates a new Ellipse object using x,y-coordinate, width and height.

Parameters
v The x,y-coordinate of the center of the Ellipse.
width The width of the Ellipse.
height The height of the Ellipse.

public Ellipse (double width, double height)

Creates a new Ellipse object using width and height.

Parameters
width The width of the Ellipse.
height The height of the Ellipse.

public Ellipse (double x, double y, double radius)

Creates a new Ellipse object using x,y-coordinate and radius.

Parameters
x The x-coordinate of the center of the Ellipse.
y The y-coordinate of the center of the Ellipse.
radius The radius of the Ellipse.

public Ellipse (Vector3D v, double radius)

Creates a new Ellipse object using x,y-coordinate and radius.

Parameters
v The x,y-coordinate of the center of the Ellipse.
radius The radius of the Ellipse.

public Ellipse (double radius)

Creates a new Ellipse object using radius.

Parameters
radius The radius of the Ellipse.

Public Methods

public double getHeight ()

Gets height.

Returns
  • The height of the Ellipse.

public double getRadius ()

Gets radius.

Returns
  • The radius of the Ellipse.

public double getWidth ()

Gets width.

Returns
  • The width of the Ellipse.

public void render (GL2 gl, GLU glu, int width, int height, boolean selection)

public void reset (GL2 gl)

public void set (double x, double y, double radius)

Sets x,y-coordinate and radius.

Parameters
x The x-coordinate of the center of the Ellipse.
y The y-coordinate of the center of the Ellipse.
radius The radius of the Ellipse.

public void set (Vector3D v, double width, double height)

Sets x,y-coordinate, width and height.

Parameters
v The x,y-coordinate of the center of the Ellipse.
width The width of the Ellipse.
height The height of the Ellipse.

public void set (double x, double y, double width, double height)

Sets x,y-coordinate, width and height.

Parameters
x The x-coordinate of the center of the Ellipse.
y The y-coordinate of the center of the Ellipse.
width The width of the Ellipse.
height The height of the Ellipse.

public void set (Vector3D v, double radius)

Sets x,y-coordinate and radius.

Parameters
v The x,y-coordinate of the center of the Ellipse.
radius The radius of the Ellipse.

public void setCenterColor (Color color)

Sets the color of this Ellipse's center.

Parameters
color The color of the Ellipse's center.

public void setCenterColor (ColorSet colorSet)

Sets the color of this Ellipse's center.

Parameters
colorSet The colorSet of the Ellipse's center.

public void setDetail (double detail)

Sets the detail of this Ellipse.

Parameters
detail The precision of the Ellipse.

public void setEdgeColor (Color color)

Sets the color of this Ellipse's edge.

Parameters
color The color of the Ellipse's edge.

public void setEdgeColor (ColorSet colorSet)

Sets the color of this Ellipse's edge.

Parameters
colorSet The colorSet of the Ellipse's edge.

public void setHeight (double height)

Sets height.

Parameters
height The height of the Ellipse.

public void setRadius (double radius)

Sets radius.

Parameters
radius The radius of the Ellipse.

public void setWidth (double width)

Sets width.

Parameters
width The width of the Ellipse.