Skip to Main Content
Class BoundaryCircle

Class BoundaryCircle

java.lang.Object
   |
   +----BoundaryCircle

public class BoundaryCircle
extends Object
A class which creates and manipulates the isometric or equidistant circles which make the up the fundamental domain on the boundary of hyperbolic space.

Author:
Jonathan A. Poritz

Variable Index

 o cen
The complex location of the center of the isometric or equidistant circle.
 o index
The index of the isometric or equidistant circle.
 o MAXDISPLAY_X
The maximum x-coord, in pixels, of a BoundaryCircle we will display.
 o MAXDISPLAY_Y
The maximum y-coord, in pixels, of a BoundaryCircle we will display.
 o MINDISPLAY_X
The minimum x-coord, in pixels, of a BoundaryCircle we will display.
 o MINDISPLAY_Y
The minimum y-coord, in pixels, of a BoundaryCircle we will display.
 o rad
The radius of the isometric or equidistant circle.

Constructor Index

 o BoundaryCircle()
Constructor of a trivial BoundaryCircle.
 o BoundaryCircle(Complex, double, int, int)
Constructor for BoundaryCircles of elliptic or loxodromic traces.
 o BoundaryCircle(int)
Constructor for BoundaryCircles of parabolic traces.

Method Index

 o copyCircle()
Copies this BoundaryCircle, by making a trivial BoundaryCircle and then copying into it this's center, radius and index.
 o distance(BoundaryCircle, BoundaryCircle)
Compute the distance between the centers of two BoundaryCircles.
 o makeNeg(BoundaryCircle)
Makes a negative BoundaryCircle corresponding to the input of a positive one.
 o paint(Graphics, BoundaryPanel, Choice)
Paint this BoundaryCircle if it is not too huge, paying attention to the currently selected display type.
 o toString()
Make a string out of this's index.

Variables

 o MINDISPLAY_X
 public static final int MINDISPLAY_X
The minimum x-coord, in pixels, of a BoundaryCircle we will display. Probably should be a related to X in BoundaryCircle.

 o MAXDISPLAY_X
 public static final int MAXDISPLAY_X
The maximum x-coord, in pixels, of a BoundaryCircle we will display. Probably should be a related to X in BoundaryCircle.

 o MINDISPLAY_Y
 public static final int MINDISPLAY_Y
The minimum y-coord, in pixels, of a BoundaryCircle we will display. Probably should be a related to X in BoundaryCircle.

 o MAXDISPLAY_Y
 public static final int MAXDISPLAY_Y
The maximum y-coord, in pixels, of a BoundaryCircle we will display. Probably should be a related to X in BoundaryCircle.

 o cen
 Complex cen
The complex location of the center of the isometric or equidistant circle.

 o rad
 double rad
The radius of the isometric or equidistant circle.

 o index
 int index
The index of the isometric or equidistant circle.

Constructors

 o BoundaryCircle
 public BoundaryCircle(Complex z11,
                       double dist,
                       int ndx,
                       int domaintype)
Constructor for BoundaryCircles of elliptic or loxodromic traces.

Parameters:
z11 - the (1,1) entry of the current trace's generator matrix
dist - the current axis distance
ndx - the index of this BoundaryCircle
domaintype - the selected index of outputpanel's Choice fordordirichlet
 o BoundaryCircle
 public BoundaryCircle(int ndx)
Constructor for BoundaryCircles of parabolic traces.

Parameters:
ndx - the index of this BoundaryCircle
 o BoundaryCircle
 public BoundaryCircle()
Constructor of a trivial BoundaryCircle.

Methods

 o paint
 public void paint(Graphics g,
                   BoundaryPanel boundarypanel,
                   Choice diskorcircle)
Paint this BoundaryCircle if it is not too huge, paying attention to the currently selected display type.

Parameters:
g - the graphics object upon which to paint
boundarypanel - the ambient BoundaryPanel
diskorcircle - a reference to outputpanel's choice on the selected display type
 o distance
 public static double distance(BoundaryCircle a,
                               BoundaryCircle b)
Compute the distance between the centers of two BoundaryCircles.

Parameters:
a - one BoundaryCircle
b - and another
Returns:
the distance between their centers
 o copyCircle
 public BoundaryCircle copyCircle()
Copies this BoundaryCircle, by making a trivial BoundaryCircle and then copying into it this's center, radius and index.

Returns:
the new copy of this BounaryCircle
 o makeNeg
 public static BoundaryCircle makeNeg(BoundaryCircle pos)
Makes a negative BoundaryCircle corresponding to the input of a positive one.

Parameters:
pos - the positive BoundaryCircle to be copied and negated
Returns:
s the new negative BoundaryCircle
 o toString
 public String toString()
Make a string out of this's index. Only called implicitly when making a label for fundamental domain of impossible combinatorial type, by Vector.toString on DomainCombinatorics's Vector boundary.

Returns:
the string form of this's index
Overrides:
toString in class Object