Class AwtFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----AwtFrame
- public class AwtFrame
- extends Frame
The "What's In A Line?" main applet window.
-
AwtFrame(ThreadGroup)
- Class constructor.
-
breakpoint(int)
- Writes a message to the status text area when a breakpoint happens.
-
changeMode(int)
- Changes the message in the info text field based on the new
algorithm mode.
-
handleEvent(Event)
- Handle all events important to the applet.
-
resetDrawings()
- Clears the drawings of the MainCanvas and ZoomPanel.
-
select(int)
- Select the given line number in the frame's code window.
-
setCircleValues(Point, Point)
- Coordinate setting the circle parameters between the various components.
-
setLineEndPoints(Point, Point)
- Coordinate the setting of the line endpoints between the various components.
-
writePixel(Point, float, boolean)
- Writes a pixel of the specified color at the specifiec location
both in the Main and Zoom canvases.
AwtFrame
public AwtFrame(ThreadGroup threadGroup)
- Class constructor.
handleEvent
public boolean handleEvent(Event event)
- Handle all events important to the applet.
- Overrides:
- handleEvent in class Component
select
public void select(int lineNumber)
- Select the given line number in the frame's code window.
setLineEndPoints
public void setLineEndPoints(Point p1,
Point p2)
- Coordinate the setting of the line endpoints between the various components.
setCircleValues
public void setCircleValues(Point p1,
Point p2)
- Coordinate setting the circle parameters between the various components.
resetDrawings
public void resetDrawings()
- Clears the drawings of the MainCanvas and ZoomPanel.
writePixel
public void writePixel(Point p,
float value,
boolean c)
- Writes a pixel of the specified color at the specifiec location
both in the Main and Zoom canvases. 'c' controls wether or not
the ZoomPanel should re-center if the pixel is off the canvas.
changeMode
public void changeMode(int mode)
- Changes the message in the info text field based on the new
algorithm mode.
breakpoint
public void breakpoint(int breakpoint)
- Writes a message to the status text area when a breakpoint happens.