Class TracePlanePanel
java.lang.Object | +----java.awt.Component | +----java.awt.Canvas | +----Plane | +----TracePlanePanel
- public class TracePlanePanel
- extends Plane
- 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.
- mouseDown(Event, int, int)
- Java 1.0 handling of mouseDown events.
- mouseDrag(Event, int, int)
- Java 1.0 handling of mouseDrag events.
- 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
protected double prev[]
- The location of a mousedown in this plane, to compute the extent of
a drag that may occur; in abstract coordinates.
protected int previ[]
- The location of a mousedown in this plane, to compute the extent of
a drag that may occur; in pixel coordinates.
public boolean decomposed
- Tells whether the trace plane has been decomposed since last window
change.
public Color domaincolors[][]
- Array of colors for the pixels of the trace plane when it has been
decomposed.
public static final double CX
- The abstract x-coordinate of the left side of the trace plane display.
public static final double CY
- The abstract y-coordinate of the upper edge of the trace plane display.
public static final double SX
- The width, in abstract units, of the trace plane display.
public static final double SY
- The height, in abstract units, of the trace plane display.
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)
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)
public Image backgroundimage
- An image into which to store the decomposition of the current window on
the trace plane.
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
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
- x - the x-coordinate (in pixels) of the mouseDown
- Overrides:
- mouseDown in class Component
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
- x - the x-coordinate (in pixels) of the mouseDrag
- Overrides:
- mouseDrag in class Component
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.
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
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.