Skip to Main Content
Class TracePlanePanel

Class TracePlanePanel

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

public class TracePlanePanel
extends Plane
A class which shows a piece of the complex plane for the graphical display and entry of traces.


Variable Index

 o backgroundgraphics
The Graphics object for drawing the background image of the decomposed trace plane.
 o backgroundimage
An image into which to store the decomposition of the current window on the trace plane.
 o CX
The abstract x-coordinate of the left side of the trace plane display.
 o CY
The abstract y-coordinate of the upper edge of the trace plane display.
 o decomposed
Tells whether the trace plane has been decomposed since last window change.
 o domaincolors
Array of colors for the pixels of the trace plane when it has been decomposed.
 o inputpanel
A reference to the containing inputpanel.
 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 trace plane display.
 o SY
The height, in abstract units, of the trace plane display.
 o X
The width, in pixels, of the trace plane display.
 o Y
The height, in pixels, of the trace plane display.

Constructor Index

 o TracePlanePanel(InputPanel)
Constructor for TracePlanePanels.

Method Index

 o decompose()
Computes a decomposition of the visible portion of the trace plane by the combinatorial type of the corresponding fundamental domain, building a color image from the decompostion which can then be used as the background of the trace plane display; then redraws the trace plane.
 o mouseDown(Event, int, int)
Java 1.0 handling of mouseDown events.
 o mouseDrag(Event, int, int)
Java 1.0 handling of mouseDrag events.
 o paint(Graphics)
Paint the TracePlanePanel, either painting the simple plane or the background image of the decomposition, then putting a point at the currently selected trace and writing all the tickmarks.
 o zoom(double)
Scales the size of the visible window onto the trace plane.

Variables

 o inputpanel
 public InputPanel inputpanel
A reference to the containing inputpanel.

See Also:
inputpanel
 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 decomposed
 public boolean decomposed
Tells whether the trace plane has been decomposed since last window change.

 o domaincolors
 public Color domaincolors[][]
Array of colors for the pixels of the trace plane when it has been decomposed.

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

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

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

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

 o X
 public static final int X
The width, in pixels, of the trace plane display. Good defaults are:
    200
    for small screens,
    300
    for large screens (then use 875x450 in HTML), and
    500
    for screen-grabbing huge images (then use 1000x650 in HTML)

 o Y
 public static final int Y
The height, in pixels, of the trace plane display. Good defaults are:
    200
    for small screens,
    300
    for large screens (then use 875x450 in HTML), and
    500
    for screen-grabbing huge images (then use 1000x650 in HTML)

 o backgroundimage
 public Image backgroundimage
An image into which to store the decomposition of the current window on the trace plane.

 o backgroundgraphics
 public Graphics backgroundgraphics
The Graphics object for drawing the background image of the decomposed trace plane.

Constructors

 o TracePlanePanel
 public TracePlanePanel(InputPanel nptpnl)
Constructor for TracePlanePanels.

Parameters:
nptpnl - the ambient inputpanel

Methods

 o mouseDown
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Java 1.0 handling of mouseDown events.

Parameters:
e - the event to be handled
x - the x-coordinate (in pixels) of the mouseDown
y - the y-coordinate (in pixels) of the mouseDown
Overrides:
mouseDown in class Component
 o mouseDrag
 public boolean mouseDrag(Event e,
                          int x,
                          int y)
Java 1.0 handling of mouseDrag events.

Parameters:
e - the event to be handled
x - the x-coordinate (in pixels) of the mouseDrag
y - the y-coordinate (in pixels) of the mouseDrag
Overrides:
mouseDrag in class Component
 o paint
 public void paint(Graphics g)
Paint the TracePlanePanel, either painting the simple plane or the background image of the decomposition, then putting a point at the currently selected trace and writing all 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 trace plane.

Parameters:
factor - the scaling factor, can be any positive number
 o decompose
 public void decompose()
Computes a decomposition of the visible portion of the trace plane by the combinatorial type of the corresponding fundamental domain, building a color image from the decompostion which can then be used as the background of the trace plane display; then redraws the trace plane.