| java.lang.Object org.netbeans.modules.visualweb.gravy.Flasher
Flasher | public class Flasher implements Timeoutable(Code) | | Flasher is a utility class allowing to highlight special point by drawing a cross with
this point as center. It can be useful when it's necessary to see where is given point situated
version: 1.0 Mar 15, 2005 |
Inner Class :protected class FlashPane extends JPanel | |
Constructor Summary | |
public | Flasher() | public | Flasher(boolean separateThread) |
DEFAULT_COLOR | final public static Color DEFAULT_COLOR(Code) | | Default color of the cross. Now it's red.
|
WAIT_TIME | protected static long WAIT_TIME(Code) | | |
len | final protected static int len(Code) | | |
separateThread | protected boolean separateThread(Code) | | By default, flash is executed in the main thread
|
timeouts | protected Timeouts timeouts(Code) | | |
Flasher | public Flasher()(Code) | | Constructs new object ready for flashing
|
Flasher | public Flasher(boolean separateThread)(Code) | | Constructs new object ready for flashing
Parameters: separateThread - If true, flash will be started in separate threadand test execution continues without delay |
doFlash | protected void doFlash(Component comp, Point p)(Code) | | Draws a cross. Called from flash() in the main thread or in a
separate thread depending on separateThread field value
|
flash | public void flash(ComponentOperator op, Point p)(Code) | | Draws a cross with center in specified point of component
Delays by "Flasher.FlashTimeout" timeout, then cross disappears
Parameters: p - Center of the cross Parameters: op - Operator for parent component of the point |
flash | public void flash(ComponentOperator op, int x, int y)(Code) | | Draws a cross with center in specified point of component
Delays by "Flasher.FlashTimeout" timeout, then cross disappears
Parameters: x - x-coordinate of center of the cross Parameters: y - x-coordinate of center of the cross Parameters: op - Operator for parent component of the point |
flash | public void flash(Component comp, int x, int y)(Code) | | Draws a cross with center in specified point of component
Delays by "Flasher.FlashTimeout" timeout, then cross disappears
Parameters: x - x-coordinate of center of the cross Parameters: y - x-coordinate of center of the cross Parameters: comp - Parent component of the point |
flash | public void flash(Component comp, Point p)(Code) | | Draws a cross with center in specified point of component
Delays by "Flasher.FlashTimeout" timeout, then cross disappears
Parameters: p - Center of the cross Parameters: comp - Parent component of the point |
getTimeouts | public Timeouts getTimeouts()(Code) | | |
setColor | public void setColor(Color color)(Code) | | Sets color of the cross. Must be used before flash() call
Parameters: color - New color |
setTimeouts | public void setTimeouts(Timeouts timeouts)(Code) | | |
|
|