transformation
Class TransformationPanel
JPanel
transformation.TransformationPanel
- ActionListener
public abstract class TransformationPanel
extends JPanel
implements ActionListener
A TransformationPanel is a JPanel
on which the multiresolution-animation is painted
FAST
public static final int FAST
MEDIUM
public static final int MEDIUM
SLOW
public static final int SLOW
animateGrid
protected boolean animateGrid
arrowCheckTime
protected boolean[] arrowCheckTime
backGreen
protected Color backGreen
backRed
protected Color backRed
counter
protected int counter
filterCheckTime
protected boolean[] filterCheckTime
fm
protected FontMetrics fm
gridCheckTime
protected boolean[] gridCheckTime
height
protected int height
signal
protected Grid signal
startTransform
protected boolean startTransform
timer
protected Timer timer
transformed
protected Grid[] transformed
transformedCheckTime
protected boolean[] transformedCheckTime
TransformationPanel
public TransformationPanel()
drawAnimGrid
public abstract void drawAnimGrid(Graphics g)
draws an animated Grid
drawNecessaryGrids
public abstract void drawNecessaryGrids(Graphics g)
paintComponent
public void paintComponent(Graphics g)
painting the Component
reset
public void reset()
this method resets all variables to its
standard value causing the beginning state
restartTimer
public void restartTimer(int[] counter)
setColors
public void setColors(Color backRed,
Color backGreen,
Color gridRed,
Color gridGreen,
Color signalRed)
this method sets the transformation colors
setFilter
public void setFilter(Filter f)
this method sets a new Filter
f
- new Filter-object which is to be set
setSpeed
public void setSpeed(int speed)
this method sets the speed of the transformation
speed
- choose SLOW, MEDIUM or FAST to determin the speed
startTimer
public void startTimer()
startTransform
public void startTransform(boolean b)
startTransformation
public abstract void startTransformation(Graphics g)
stopTimer
public int[] stopTimer()