Skip to Main Content
Class BoundaryPanel

Class BoundaryPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----Plane
                           |
                           +----BoundaryPanel

public class BoundaryPanel
extends Plane
A class which shows the fundamental domain corresponding to the current trace value and display parameters, on a portion of the boundary of hyperbolic space.

Author:
Jonathan A. Poritz

Variable Index

 o boundarypanellabel
A reference to the label in outputpanel declaring the portion of the boundary of hyperbolic space which is currently visible.
 o calcmaxpow
The maxpow calculated for a Ford domain with the current trace -- not necessarily valid for a Dirichlet domain with the same trace, but used nonetheless.
 o chosenmaxpow
The overriding maxpow chosen by the user if so desired taken from maxpowchoice.
 o CX
The abstract x-coordinate of the left side of the boundary plane display.
 o CY
The abstract y-coordinate of the upper edge of the boundary plane display.
 o diskorcircle
A reference to the choice in outputpanel of displaying disks, circles or circle with labeling indices.
 o dist
The currently selected axis distance.
 o fordordirichlet
A reference to the choice in outputpanel of computing Ford or Dirichlet domains.
 o nc
An array of BoundaryCircles with negative indices.
 o pc
An array of BoundaryCircles with positive indices.
 o prev
The location of a mousedown in this plane, to compute the extent of a drag that may occur; in abstract coordinates.
 o previ
The location of a mousedown in this plane, to compute the extent of a drag that may occur; in pixel coordinates.
 o SX
The width, in abstract units, of the boundary plane display.
 o SY
The height, in abstract units, of the boundary plane display.
 o usecalcmaxpow
A boolean telling if we should use the calcmaxpow or some other choice, to be found in chosenmaxpow.
 o X
The width, in pixels, of the boundary plane display.
 o Y
The height, in pixels, of the boundary plane display.
 o z11
The (1,1) entry of the element cannonically associated with the current trace.

Constructor Index

 o BoundaryPanel(Label, Choice, Choice)
Constructor for BoundaryPanels.

Method Index

 o paint(Graphics)
Paint the BoundaryPanel by painting the basic plane, calling the paint on each of the current negative and positive BoundaryCircles, then drawing the tickmarks.
 o update()
Recreates the current positive and negative BoundaryCircles and then repaints, called when some relevant parameter has changed.
 o zoom(double)
Scales the size of the visible window onto the boundary of hyperbolic space.

Variables

 o z11
 public Complex z11
The (1,1) entry of the element cannonically associated with the current trace.

 o dist
 public double dist
The currently selected axis distance.

 o boundarypanellabel
 public Label boundarypanellabel
A reference to the label in outputpanel declaring the portion of the boundary of hyperbolic space which is currently visible.

See Also:
boundarypanellabel
 o calcmaxpow
 public int calcmaxpow
The maxpow calculated for a Ford domain with the current trace -- not necessarily valid for a Dirichlet domain with the same trace, but used nonetheless.

 o chosenmaxpow
 public int chosenmaxpow
The overriding maxpow chosen by the user if so desired taken from maxpowchoice.

 o usecalcmaxpow
 public boolean usecalcmaxpow
A boolean telling if we should use the calcmaxpow or some other choice, to be found in chosenmaxpow.

 o diskorcircle
 public Choice diskorcircle
A reference to the choice in outputpanel of displaying disks, circles or circle with labeling indices.

See Also:
diskorcircle
 o fordordirichlet
 public Choice fordordirichlet
A reference to the choice in outputpanel of computing Ford or Dirichlet domains.

See Also:
fordordirichlet
 o pc
 protected BoundaryCircle pc[]
An array of BoundaryCircles with positive indices.

 o nc
 protected BoundaryCircle nc[]
An array of BoundaryCircles with negative indices.

 o prev
 protected double prev[]
The location of a mousedown in this plane, to compute the extent of a drag that may occur; in abstract coordinates.

 o previ
 protected int previ[]
The location of a mousedown in this plane, to compute the extent of a drag that may occur; in pixel coordinates.

 o CX
 public static final double CX
The abstract x-coordinate of the left side of the boundary plane display.

 o CY
 public static final double CY
The abstract y-coordinate of the upper edge of the boundary plane display.

 o SX
 public static final double SX
The width, in abstract units, of the boundary plane display.

 o SY
 public static final double SY
The height, in abstract units, of the boundary plane display.

 o X
 public static final int X
The width, in pixels, of the boundary plane display. Good defaults are:
    200
    for small screens,
    300
    for large screens

 o Y
 public static final int Y
The height, in pixels, of the boundary plane display. Good defaults are:
    200
    for small screens,
    300
    for large screens

Constructors

 o BoundaryPanel
 public BoundaryPanel(Label bdrypnllbl,
                      Choice dskrcrcl,
                      Choice frdrdrchlt)
Constructor for BoundaryPanels.

Parameters:
bdrypnllbl - the label describing the current window on the boundary plane
dskrcrcl - the choice of display styles of the isometric or equidistant circles
frdrdrchlt - the choice of making Ford or Dirichlet domains.

Methods

 o paint
 public synchronized void paint(Graphics g)
Paint the BoundaryPanel by painting the basic plane, calling the paint on each of the current negative and positive BoundaryCircles, then drawing the tickmarks.

Parameters:
g - the Graphics object upon which to paint the TracePlanePanel
Overrides:
paint in class Plane
 o zoom
 public void zoom(double factor)
Scales the size of the visible window onto the boundary of hyperbolic space.

Parameters:
factor - the scaling factor, can be any positive number
 o update
 public synchronized void update()
Recreates the current positive and negative BoundaryCircles and then repaints, called when some relevant parameter has changed.