public class InteractiveTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FRAME_TITLE |
static long |
INTERACTIVE_DELAY |
protected JFrame |
jf |
protected JLabel |
label |
protected boolean |
removeLoadingLabel |
| Constructor and Description |
|---|
InteractiveTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTest() |
static void |
annotate(BufferedImage img,
String annotation) |
protected void |
append(BufferedImage image) |
protected void |
append(BufferedImage image,
boolean direct) |
protected void |
append(BufferedImage image,
String annotation) |
protected void |
append(BufferedImage image,
String annotation,
boolean direct) |
protected void |
append(Component c) |
protected void |
appendImage(BufferedImage image) |
void |
beforeTest() |
protected JFrame |
createTestJFrame() |
static BufferedImage |
deepCopy(BufferedImage bi) |
JPanel |
getContainer() |
protected void |
openWindow() |
protected void |
openWindow(boolean reuse) |
protected void |
openWindowWait() |
protected void |
saveWindowAsImage(String filename) |
protected void |
setupListeners(JFrame jf) |
static void |
waitForSwing() |
protected void |
waitForWindowClosing() |
protected void |
waitForWindowClosing(boolean waitForManualClose) |
protected void |
waitForWindowClosingManual() |
public static final long INTERACTIVE_DELAY
public static final String FRAME_TITLE
protected JFrame jf
protected JLabel label
protected boolean removeLoadingLabel
public static void waitForSwing()
public void beforeTest()
public void afterTest()
throws InterruptedException,
InvocationTargetException
protected void openWindow()
protected void openWindow(boolean reuse)
reuse - set to true if you want to re-use an existing presentation windowprotected void openWindowWait()
throws InterruptedException,
InvocationTargetException
protected void waitForWindowClosingManual()
throws InterruptedException
InterruptedExceptionprotected void waitForWindowClosing()
throws InterruptedException
InterruptedExceptionprotected void waitForWindowClosing(boolean waitForManualClose)
throws InterruptedException
InterruptedExceptionprotected void setupListeners(JFrame jf)
protected JFrame createTestJFrame()
public static void annotate(BufferedImage img, String annotation)
protected void append(BufferedImage image, String annotation) throws InvocationTargetException, InterruptedException
protected void append(BufferedImage image, String annotation, boolean direct) throws InvocationTargetException, InterruptedException
protected void append(BufferedImage image) throws InvocationTargetException, InterruptedException
protected void append(BufferedImage image, boolean direct) throws InvocationTargetException, InterruptedException
protected void appendImage(BufferedImage image) throws InvocationTargetException, InterruptedException
protected void append(Component c) throws InvocationTargetException, InterruptedException
public static BufferedImage deepCopy(BufferedImage bi)
protected void saveWindowAsImage(String filename)
public JPanel getContainer()
Copyright © 2016 Github jjYBdx4IL Projects. All rights reserved.