Package wprover
Class JTLineFlash
- java.lang.Object
-
- wprover.JFlash
-
- wprover.JTLineFlash
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class JTLineFlash extends JFlash implements java.awt.event.ActionListener
JTLineFlash is a class that extends JFlash and implements ActionListener. It is used to create a flashing effect on two lines in a JPanel.
-
-
Constructor Summary
Constructors Constructor Description JTLineFlash(javax.swing.JPanel p)Constructs a new JTLineFlash with the specified JPanel.JTLineFlash(javax.swing.JPanel p, CPoint p1, CPoint p2, CPoint p3, CPoint p4)Constructs a new JTLineFlash with the specified JPanel and four CPoints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)booleancontainPt(CPoint p)booleandraw(java.awt.Graphics2D g2)Draws the flashing effect on the specified Graphics2D context.voiddrawTTFoot(java.awt.Graphics2D g2, double x, double y, CPoint p1, CPoint p2)voidstop()Stops the flash effect.-
Methods inherited from class wprover.JFlash
drawALine3, drawALine3Short, getColor, getRatioColor, getvisibleType, isfinished, isrRunning, isZero, recalculate, setColor, setDealy, setDrawDash, setDrawDashFb2, start, updateTimer
-
-
-
-
Constructor Detail
-
JTLineFlash
public JTLineFlash(javax.swing.JPanel p)
Constructs a new JTLineFlash with the specified JPanel.- Parameters:
p- the JPanel to associate with this JTLineFlash
-
JTLineFlash
public JTLineFlash(javax.swing.JPanel p, CPoint p1, CPoint p2, CPoint p3, CPoint p4)Constructs a new JTLineFlash with the specified JPanel and four CPoints.- Parameters:
p- the JPanel to associate with this JTLineFlashp1- the first CPoint of the first linep2- the second CPoint of the first linep3- the first CPoint of the second linep4- the second CPoint of the second line
-
-
Method Detail
-
draw
public boolean draw(java.awt.Graphics2D g2)
Draws the flashing effect on the specified Graphics2D context.
-
drawTTFoot
public void drawTTFoot(java.awt.Graphics2D g2, double x, double y, CPoint p1, CPoint p2)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
stop
public void stop()
Description copied from class:JFlashStops the flash effect.
-
containPt
public boolean containPt(CPoint p)
-
-