public abstract class ImageSource extends Properties
| Modifier and Type | Field and Description |
|---|---|
protected String |
source
The source.
|
any| Constructor and Description |
|---|
ImageSource() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
get()
Gets the image prepared for processing by calling
run(). |
String |
getSource()
Gets the source location.
|
abstract BufferedImage |
retrieve()
Retrieve the image from defined source.
|
void |
run()
Run the future task retrieving image from source to prepare image for later processing.
|
void |
setSource(String value)
Sets the source location.
|
getAny, getProperty, getProperty, getProperty, include, setProperty, sizeprotected String source
public abstract BufferedImage retrieve() throws Exception
Exception - the exception@Nullify(value=VisualSuiteResult.class) public String getSource()
public void setSource(String value)
value - the new sourcepublic void run()
public BufferedImage get() throws ExecutionException, InterruptedException
run().ExecutionException - the execution exceptionInterruptedException - the interrupted exceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.