Class edu.umn.geom.IFSoft.IfsPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.umn.geom.IFSoft.IfsPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----edu.umn.geom.IFSoft.IfsPanel

public class IfsPanel
extends Panel
This panel contains all of the stuff to display, start/stop, clear, etc. the actual fractal. The mouse events take care of zooming, and dragging transforms around, while methods are provided to control the drawing thread.

Variable Index

 o anim
True if this is part of an animation.
 o bim
This is an offscreen image which stores the points we've done so far.
 o bkcolor
Background color.
 o colormode
The color scheme we are using to chose transform color.
 o colortype
The color scheme we are using to draw.
 o hide
Hide mode is provided so teachers can give students fractals and make them figure out the settings.
 o ifs
The transforms of the IFS.
 o isapplet
Indicates whether we are currently an applet.
 o offsetx
X offset of the origin relative to the left part of the panel.
 o offsety
Y offset of the origin relative to the top part of the panel (positive down).
 o portoffsetx
 o portoffsety
 o ports
Where previous zoom settings live.
 o ratiox
 o ratioy

Constructor Index

 o IfsPanel(BigPanel)

Method Index

 o clear()
Called to clear the panel and stored image.
 o copySys(IfsPanel)
Copy the settings from another IfsPanel.
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o newTrans(Color)
 o newTrans(double, double, ColPoint, Color)
Add a new Transform to ifs.
 o paint(Graphics)
 o start()
Called to start iteration thread.
 o stop()
Called to stop iteration thread.

Variables

 o ifs
  public Vector ifs
The transforms of the IFS.
 o offsetx
  public double offsetx
X offset of the origin relative to the left part of the panel.
 o offsety
  public double offsety
Y offset of the origin relative to the top part of the panel (positive down).
 o portoffsetx
  public double portoffsetx
 o portoffsety
  public double portoffsety
 o ratiox
  public double ratiox
 o ratioy
  public double ratioy
 o ports
  public Stack ports
Where previous zoom settings live. Top of the stack is the current Viewport.
 o colormode
  public int colormode
The color scheme we are using to chose transform color. Selected in the Choice chosecolor in ControlA.
 o colortype
  public int colortype
The color scheme we are using to draw. Selected in the Choice drawcolor in ControlA. Used in ItThread.
 o isapplet
  public boolean isapplet
Indicates whether we are currently an applet. Due to some bugs in the implementation of threads in Netscape (X11), we need to do slightly different things in ItThread.
 o anim
  public boolean anim
True if this is part of an animation. If so, it doesn't try to talk to control panels, as they aren't used.
 o hide
  public boolean hide
Hide mode is provided so teachers can give students fractals and make them figure out the settings. If true the CustomCon is hidden, and transform dots are not drawn in paint().
 o bkcolor
  public Color bkcolor
Background color. This only kind of works. I think there are various bugs various systems.
 o bim
  public Image bim
This is an offscreen image which stores the points we've done so far. This is where the the Franimate gets it's frame.

Constructors

 o IfsPanel
  public IfsPanel(BigPanel bpan)
Parameters:
bpan - The parent panel, used to reference siblings.

Methods

 o newTrans
  public void newTrans(double r,
                       double c,
                       ColPoint p,
                       Color co)
Add a new Transform to ifs.
 o newTrans
  public void newTrans(Color co)
 o copySys
  public void copySys(IfsPanel from)
Copy the settings from another IfsPanel.
 o mouseDrag
  public boolean mouseDrag(Event e,
                           int x,
                           int y)
Overrides:
mouseDrag in class Component
 o mouseUp
  public boolean mouseUp(Event e,
                         int x,
                         int y)
Overrides:
mouseUp in class Component
 o start
  public void start()
Called to start iteration thread.
 o stop
  public void stop()
Called to stop iteration thread.
 o clear
  public void clear()
Called to clear the panel and stored image.
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index