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.
- Author:
- Jonathan A. Poritz
-
backgroundgraphics
- The Graphics object for drawing the background image of the decomposed
trace plane.
-
backgroundimage
- An image into which to store the decomposition of the current window on
the trace plane.
-
CX
- The abstract x-coordinate of the left side of the trace plane display.
-
CY
- The abstract y-coordinate of the upper edge of the trace plane display.
-
decomposed
- Tells whether the trace plane has been decomposed since last window
change.
-
domaincolors
- Array of colors for the pixels of the trace plane when it has been
decomposed.
-
inputpanel
- A reference to the containing inputpanel.
-
prev
- The location of a mousedown in this plane, to compute the extent of
a drag that may occur; in abstract coordinates.
-
previ
- The location of a mousedown in this plane, to compute the extent of
a drag that may occur; in pixel coordinates.
-
SX
- The width, in abstract units, of the trace plane display.
-
SY
- The height, in abstract units, of the trace plane display.
-
X
- The width, in pixels, of the trace plane display.
-
Y
- The height, in pixels, of the trace plane display.
-
TracePlanePanel(InputPanel)
- Constructor for TracePlanePanels.
-
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.
-
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.
-
zoom(double)
- Scales the size of the visible window onto the trace plane.
inputpanel
public InputPanel inputpanel
- A reference to the containing inputpanel.
- See Also:
- inputpanel
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.
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.
decomposed
public boolean decomposed
- Tells whether the trace plane has been decomposed since last window
change.
domaincolors
public Color domaincolors[][]
- Array of colors for the pixels of the trace plane when it has been
decomposed.
CX
public static final double CX
- The abstract x-coordinate of the left side of the trace plane display.
CY
public static final double CY
- The abstract y-coordinate of the upper edge of the trace plane display.
SX
public static final double SX
- The width, in abstract units, of the trace plane display.
SY
public static final double SY
- The height, in abstract units, of the trace plane display.
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)
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)
backgroundimage
public Image backgroundimage
- An image into which to store the decomposition of the current window on
the trace plane.
backgroundgraphics
public Graphics backgroundgraphics
- The Graphics object for drawing the background image of the decomposed
trace plane.
TracePlanePanel
public TracePlanePanel(InputPanel nptpnl)
- Constructor for TracePlanePanels.
- Parameters:
- nptpnl - the ambient inputpanel
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
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
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.