Package wprover
Class JPointEnlargeFlash
- java.lang.Object
-
- wprover.JFlash
-
- wprover.JPointEnlargeFlash
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class JPointEnlargeFlash extends JFlash implements java.awt.event.ActionListener
JPointEnlargeFlash is a class that extends JFlash and implements ActionListener. It is used to create a flashing effect on a point in a JPanel.
-
-
Constructor Summary
Constructors Constructor Description JPointEnlargeFlash(javax.swing.JPanel p, CPoint pt)Constructs a new JPointEnlargeFlash with the specified JPanel and CPoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)Handles action events for the timer.booleandraw(java.awt.Graphics2D g2)Draws the flashing effect on the specified Graphics2D context.voidstop()Stops the flashing effect and resets the point's radius.-
Methods inherited from class wprover.JFlash
drawALine3, drawALine3Short, getColor, getRatioColor, getvisibleType, isfinished, isrRunning, isZero, recalculate, setColor, setDealy, setDrawDash, setDrawDashFb2, start, updateTimer
-
-
-
-
Constructor Detail
-
JPointEnlargeFlash
public JPointEnlargeFlash(javax.swing.JPanel p, CPoint pt)Constructs a new JPointEnlargeFlash with the specified JPanel and CPoint.- Parameters:
p- the JPanel to associate with this JPointEnlargeFlashpt- the CPoint to apply the flashing effect on
-
-
Method Detail
-
draw
public boolean draw(java.awt.Graphics2D g2)
Draws the flashing effect on the specified Graphics2D context.
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Handles action events for the timer.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
e- the action event
-
-