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.
-
anim
- True if this is part of an animation.
-
bim
- This is an offscreen image which stores the points we've done so far.
-
bkcolor
- Background color.
-
colormode
- The color scheme we are using to chose transform color.
-
colortype
- The color scheme we are using to draw.
-
hide
- Hide mode is provided so teachers can give students fractals and make them
figure out the settings.
-
ifs
- The transforms of the IFS.
-
isapplet
- Indicates whether we are currently an applet.
-
offsetx
- X offset of the origin relative to the left part of the panel.
-
offsety
- Y offset of the origin relative to the top part of the panel (positive down).
-
portoffsetx
-
-
portoffsety
-
-
ports
- Where previous zoom settings live.
-
ratiox
-
-
ratioy
-
-
IfsPanel(BigPanel)
-
-
clear()
- Called to clear the panel and stored image.
-
copySys(IfsPanel)
- Copy the settings from another IfsPanel.
-
mouseDrag(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
newTrans(Color)
-
-
newTrans(double, double, ColPoint, Color)
- Add a new Transform to ifs.
-
paint(Graphics)
-
-
start()
- Called to start iteration thread.
-
stop()
- Called to stop iteration thread.
ifs
public Vector ifs
- The transforms of the IFS.
offsetx
public double offsetx
- X offset of the origin relative to the left part of the panel.
offsety
public double offsety
- Y offset of the origin relative to the top part of the panel (positive down).
portoffsetx
public double portoffsetx
portoffsety
public double portoffsety
ratiox
public double ratiox
ratioy
public double ratioy
ports
public Stack ports
- Where previous zoom settings live. Top of the stack is the current Viewport.
colormode
public int colormode
- The color scheme we are using to chose transform color. Selected in the
Choice chosecolor in ControlA.
colortype
public int colortype
- The color scheme we are using to draw. Selected in the
Choice drawcolor in ControlA.
Used in ItThread.
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.
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.
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().
bkcolor
public Color bkcolor
- Background color. This only kind of works. I think there are various bugs
various systems.
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.
IfsPanel
public IfsPanel(BigPanel bpan)
- Parameters:
- bpan - The parent panel, used to reference siblings.
newTrans
public void newTrans(double r,
double c,
ColPoint p,
Color co)
- Add a new Transform to ifs.
newTrans
public void newTrans(Color co)
copySys
public void copySys(IfsPanel from)
- Copy the settings from another IfsPanel.
mouseDrag
public boolean mouseDrag(Event e,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event e,
int x,
int y)
- Overrides:
- mouseUp in class Component
start
public void start()
- Called to start iteration thread.
stop
public void stop()
- Called to stop iteration thread.
clear
public void clear()
- Called to clear the panel and stored image.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
All Packages Class Hierarchy This Package Previous Next Index