public class ImageToZxSpec
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_STATUS_MESSAGE
The message to show when idle
|
static javax.swing.ImageIcon |
IMAGE_ICON |
static javax.swing.JPanel |
p
The panel for rendering the images
|
| Constructor and Description |
|---|
ImageToZxSpec() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.JToolBar |
createToolbar() |
static void |
createUserInterface()
Create the natty UI/preview window.
|
(package private) static void |
disableInput()
Disable the UI state to prevent input
|
static void |
enableInput()
Reset's the UI state to enable input
|
static java.io.File[] |
getInFiles() |
static java.io.File |
getOutFolder() |
static boolean |
isCancelled() |
static boolean |
isSupported(java.io.File f) |
static void |
main(java.lang.String[] args)
Create a single thread for the rendering and inits the UI
|
static void |
processFiles()
Method to begin the WIP preview which submits work to the work engine
and controls the UI settings and validates the content being loaded.
|
static void |
processPreview()
Method to begin the (multi dither, not WIP) preview
which submits work to the work engine and controls the
UI settings and validates the content being loaded.
|
static void |
setInFiles(java.io.File[] inFiles) |
static void |
setOutFolder(java.io.File outFolder) |
static void |
setStatusMessage(java.lang.String message)
Sets a status or error message above the convert button
|
static void |
showPreview() |
public static final javax.swing.ImageIcon IMAGE_ICON
public static final java.lang.String DEFAULT_STATUS_MESSAGE
public static javax.swing.JPanel p
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exceptionpublic static void createUserInterface()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static boolean isSupported(java.io.File f)
public static void processPreview()
public static javax.swing.JToolBar createToolbar()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static void processFiles()
public static void setStatusMessage(java.lang.String message)
message - public static void enableInput()
static void disableInput()
public static java.io.File[] getInFiles()
public static void setInFiles(java.io.File[] inFiles)
public static void setOutFolder(java.io.File outFolder)
public static java.io.File getOutFolder()
public static void showPreview()
public static boolean isCancelled()