Package wprover
Class JAreaFlash
- java.lang.Object
-
- wprover.JFlash
-
- wprover.JAreaFlash
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class JAreaFlash extends JFlash implements java.awt.event.ActionListener
JAreaFlash is a class that extends JFlash and implements ActionListener. It is used to create a flashing area effect on a JPanel.
-
-
Constructor Summary
Constructors Constructor Description JAreaFlash(javax.swing.JPanel p, int cindex)Constructs a new JAreaFlash with the specified JPanel and color index.
-
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.voidaddAPoint(CPoint p)Adds a point to the list of points defining the flashing area.booleandraw(java.awt.Graphics2D g2)Draws the flashing area on the specified Graphics2D context.-
Methods inherited from class wprover.JFlash
drawALine3, drawALine3Short, getColor, getRatioColor, getvisibleType, isfinished, isrRunning, isZero, recalculate, setColor, setDealy, setDrawDash, setDrawDashFb2, start, stop, updateTimer
-
-
-
-
Method Detail
-
draw
public boolean draw(java.awt.Graphics2D g2)
Draws the flashing area on the specified Graphics2D context.
-
addAPoint
public void addAPoint(CPoint p)
Adds a point to the list of points defining the flashing area.- Parameters:
p- the point to add
-
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
-
-