Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.Circle
Source: src/com/multiversesocial/hyperview/Circle.java

Circle

HyperView V3.2 — class
version V3.2 class

Summary

Calculate all the X/Y pairs given radius and Number of points resolution. By Tony Swain May 18 2000 Of course this can be optimized by useing 1/4 clone.

Source file: Circle.java

Hierarchy

Extends: none

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class Circle

Declared in src/com/multiversesocial/hyperview/Circle.java, lines 7–66. 7 field(s), 2 constructor(s), 1 method(s). Every member has an anchor you can link to (e.g. Circle.html#<id>).

Fields (7)

DeclarationValue / initializerDescriptionSource
HyperView curViewNo comment in source; assigned in Circle(); used in destroy().line 9
int fGPen= 0No comment in source; name appears in 34 other source file(s): BasicPane, ChannelControlPane, DBText, DataBaseDispatch ….line 14
HyperLine[] lineNo comment in source; assigned in Circle(), destroy().line 13
int totalLines= 0No comment in source; name appears in 1 other source file(s): HyperView.line 12
int totalPoints= 0No comment in source; assigned in Circle().line 11
int[] xNo comment in source; assigned in Circle().line 10
int[] yNo comment in source; assigned in Circle().line 10

Constructors (2)

SignatureDescriptionSource
Circle(double radius, int npoints)11 statement(s); calls super(), Math.toRadians(), Math.cos(), Math.sin().line 16
Circle(HyperView tView, double radius, int npoints)4 statement(s); calls this(), curView.addCircle().line 39

Methods (1)

SignatureDescriptionSource
public void destroy()Remove lines created by addCircle() from the view line list by clearing refs.line 50

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

declaration — HyperView.java, line 5945

 5945  public void addCircle(Circle c)
 5946  {
Hits--