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