public class

Arc

extends Element
java.lang.Object
   ↳ casmi.graphics.element.Element
     ↳ casmi.graphics.element.Arc

Class Overview

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

Summary

[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Arc(double w, double h, double radStart, double radEnd, double precision)
Creates a new Arc object using width, height, start and end points of degree properties.
Arc(double w, double h, double radStart, double radEnd)
Creates a new Arc object using width, height, start and end points of degree properties.
Arc(double x, double y, double w, double h, double radStart, double radEnd, double precision)
Creates a new Arc object using width, height, start and end points of degree and precision properties.
Arc(double r, double radStart, double radEnd)
Creates a new Arc object using width, height, start and end points of degree and precision properties.
Arc(double x, double y, double r, double radStart, double radEnd, double precision)
Creates a new Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree and precision properties.
Arc(Vector3D v, double r, double radStart, double radEnd, double precision)
Creates a new Arc object using position of the Arc, width, height, start and end points of degree and precision properties.
Arc(Vector3D v, double r, double radStart, double radEnd)
Creates a new Arc object using position of the Arc, width, height, start and end points of degree properties.
Public Methods
double getDetail()
Gets the precision of this Arc.
double getEnd()
Gets the end degree of this Arc.
double getHeight()
Gets the height of this Arc.
double getRadius()
Gets the radius of this Arc.
double getStart()
Gets the start degree of this Arc.
double getWidth()
Gets the width of this Arc.
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
void set(double x, double y, double r, double radStart, double radEnd)
Sets a Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree properties.
void set(double x, double y, double r, double radStart, double radEnd, double precision)
Sets a Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree and precision properties.
void setCenterColor(Color color)
Sets the color of the center of this Arc.
void setCenterColor(ColorSet colorSet)
Sets the colorSet of the center of this Arc.
void setDetail(double detail)
Sets the precision of this Arc.
void setEdgeColor(Color color)
Sets the color of the edge of this Arc.
void setEdgeColor(ColorSet colorSet)
Sets the colorSet of the edge of this Arc.
void setEnd(double end)
Sets the end degree of this Arc.
void setHeight(double height)
Sets the height of this Arc.
void setRadius(double radius)
Sets the radius of this Arc.
void setStart(double start)
Sets the start degree of this Arc.
void setWidth(double width)
Sets the width of this Arc.
[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 Arc (double w, double h, double radStart, double radEnd, double precision)

Creates a new Arc object using width, height, start and end points of degree properties.

Parameters
w The width of the Arc.
h The height of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.

public Arc (double w, double h, double radStart, double radEnd)

Creates a new Arc object using width, height, start and end points of degree properties.

Parameters
w The width of the Arc.
h The height of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.

public Arc (double x, double y, double w, double h, double radStart, double radEnd, double precision)

Creates a new Arc object using width, height, start and end points of degree and precision properties.

Parameters
w The width of the Arc.
h The height of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.
precision The precision of the Arc.

public Arc (double r, double radStart, double radEnd)

Creates a new Arc object using width, height, start and end points of degree and precision properties.

Parameters
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.

public Arc (double x, double y, double r, double radStart, double radEnd, double precision)

Creates a new Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree and precision properties.

Parameters
x The x-coordinate of the Arc.
y The y-coordinate of the Arc.
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.
precision The precision of the Arc.

public Arc (Vector3D v, double r, double radStart, double radEnd, double precision)

Creates a new Arc object using position of the Arc, width, height, start and end points of degree and precision properties.

Parameters
v The position of the Arc
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.
precision The precision of the Arc.

public Arc (Vector3D v, double r, double radStart, double radEnd)

Creates a new Arc object using position of the Arc, width, height, start and end points of degree properties.

Parameters
v The position of the Arc
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.

Public Methods

public double getDetail ()

Gets the precision of this Arc.

Returns
  • The precision of the Arc.

public double getEnd ()

Gets the end degree of this Arc.

Returns
  • The end degree of the Arc.

public double getHeight ()

Gets the height of this Arc.

Returns
  • The height of the Arc.

public double getRadius ()

Gets the radius of this Arc.

Returns
  • The radius of the Arc.

public double getStart ()

Gets the start degree of this Arc.

Returns
  • The start degree of the Arc.

public double getWidth ()

Gets the width of this Arc.

Returns
  • The width of the Arc.

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 r, double radStart, double radEnd)

Sets a Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree properties.

Parameters
x The x-coordinate of the Arc.
y The y-coordinate of the Arc.
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.

public void set (double x, double y, double r, double radStart, double radEnd, double precision)

Sets a Arc object using x and y-coordinate of the Arc, width, height, start and end points of degree and precision properties.

Parameters
x The x-coordinate of the Arc.
y The y-coordinate of the Arc.
r The radius of the Arc.
radStart The start degree of the Arc.
radEnd The end degree of the Arc.
precision The precision of the Arc.

public void setCenterColor (Color color)

Sets the color of the center of this Arc.

Parameters
color The color of the center of the Arc.

public void setCenterColor (ColorSet colorSet)

Sets the colorSet of the center of this Arc.

Parameters
colorSet The colorSet of the center of the Arc.

public void setDetail (double detail)

Sets the precision of this Arc.

Parameters
detail The precision of the Arc.

public void setEdgeColor (Color color)

Sets the color of the edge of this Arc.

Parameters
color The color of the edge of the Arc.

public void setEdgeColor (ColorSet colorSet)

Sets the colorSet of the edge of this Arc.

Parameters
colorSet The colorSet of the edge of the Arc.

public void setEnd (double end)

Sets the end degree of this Arc.

Parameters
end The end degree of the Arc.

public void setHeight (double height)

Sets the height of this Arc.

Parameters
height The height of the Arc.

public void setRadius (double radius)

Sets the radius of this Arc.

Parameters
radius The radius of the Arc.

public void setStart (double start)

Sets the start degree of this Arc.

Parameters
start The start degree of the Arc.

public void setWidth (double width)

Sets the width of this Arc.

Parameters
width The width of the Arc.