Package wprover
Class JRedoStepFlash
- java.lang.Object
-
- wprover.JFlash
-
- wprover.JRedoStepFlash
-
public class JRedoStepFlash extends JFlash
JRedoStepFlash is a class that extends JFlash and is used to create a flashing effect on a JPanel when the redo step is performed in the drawing process.
-
-
Constructor Summary
Constructors Constructor Description JRedoStepFlash(javax.swing.JPanel p, DrawProcess dp)Constructs a new JRedoStepFlash with the specified JPanel and DrawProcess.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandraw(java.awt.Graphics2D g2)Draws the flashing effect on the specified Graphics2D context.booleanisfinished()Checks if the flashing effect has finished.booleanisrRunning()Checks if the flashing effect is currently running.voidstart()Starts the flashing effect by stopping it first.voidstop()Stops the flashing effect and performs the redo step in the drawing process.-
Methods inherited from class wprover.JFlash
drawALine3, drawALine3Short, getColor, getRatioColor, getvisibleType, isZero, recalculate, setColor, setDealy, setDrawDash, setDrawDashFb2, updateTimer
-
-
-
-
Constructor Detail
-
JRedoStepFlash
public JRedoStepFlash(javax.swing.JPanel p, DrawProcess dp)Constructs a new JRedoStepFlash with the specified JPanel and DrawProcess.- Parameters:
p- the JPanel to associate with this JRedoStepFlashdp- the DrawProcess to be used for the redo step
-
-
Method Detail
-
draw
public boolean draw(java.awt.Graphics2D g2)
Draws the flashing effect on the specified Graphics2D context.
-
stop
public void stop()
Stops the flashing effect and performs the redo step in the drawing process.
-
start
public void start()
Starts the flashing effect by stopping it first.
-
isrRunning
public boolean isrRunning()
Checks if the flashing effect is currently running.- Overrides:
isrRunningin classJFlash- Returns:
- false as the flashing effect is not running
-
isfinished
public boolean isfinished()
Checks if the flashing effect has finished.- Overrides:
isfinishedin classJFlash- Returns:
- true if the flashing effect has finished, false otherwise
-
-