Package wprover
Class JObjectFlash
- java.lang.Object
-
- wprover.JFlash
-
- wprover.JObjectFlash
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class JObjectFlash extends JFlash implements java.awt.event.ActionListener
A class that represents a flashing effect for graphical objects.
-
-
Constructor Summary
Constructors Constructor Description JObjectFlash(javax.swing.JPanel p)Constructs a new JObjectFlash 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.voidaddFlashObject(CClass obj)Adds an object to the list of objects to be flashed.booleandraw(java.awt.Graphics2D g2)Draws the flashing objects on the specified Graphics2D context.voidsetAt(javax.swing.JPanel p, java.util.Vector list)Sets the panel and list of objects to be flashed.voidstart()Starts the flashing effect.voidstop()Stops the flashing effect.-
Methods inherited from class wprover.JFlash
drawALine3, drawALine3Short, getColor, getRatioColor, getvisibleType, isfinished, isrRunning, isZero, recalculate, setColor, setDealy, setDrawDash, setDrawDashFb2, updateTimer
-
-
-
-
Method Detail
-
draw
public boolean draw(java.awt.Graphics2D g2)
Draws the flashing objects 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
-
setAt
public void setAt(javax.swing.JPanel p, java.util.Vector list)Sets the panel and list of objects to be flashed.- Parameters:
p- the JPanel to associate with this JObjectFlashlist- the list of objects to be flashed
-
addFlashObject
public void addFlashObject(CClass obj)
Adds an object to the list of objects to be flashed.- Parameters:
obj- the object to add
-
-