public class ApplicationZMachine extends java.lang.Object implements java.awt.event.ActionListener, PreviewPanel
Modifier and Type | Field and Description |
---|---|
private org.zmpp.swingui.ZmppPanel |
gamePanel |
private java.lang.String |
locator |
private org.zmpp.vm.Machine |
machine |
private javax.swing.JPanel |
ui |
Constructor and Description |
---|
ApplicationZMachine(java.lang.String loc) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static boolean |
canView(java.lang.String url) |
void |
finish() |
java.awt.Component |
getGui()
Is called to get the actual preview component.
|
protected javax.swing.JComponent |
getJToolBar() |
boolean |
isHeavy()
This is a deprecated method to tell the preview is a heavy weight
AWT component.
|
private javax.swing.JPanel |
makeUI() |
void |
runStory(java.lang.String locator) |
private static java.io.File |
searchForResources(java.io.File storyfile)
Tries to find a resource file in Blorb format.
|
void |
stop()
Called whenever the PreviewPanel should stop i.e.
|
private java.lang.String locator
private javax.swing.JPanel ui
private org.zmpp.swingui.ZmppPanel gamePanel
private org.zmpp.vm.Machine machine
public void runStory(java.lang.String locator)
private static java.io.File searchForResources(java.io.File storyfile)
storyfile
- the storyfileprivate javax.swing.JPanel makeUI()
protected javax.swing.JComponent getJToolBar()
public void stop()
PreviewPanel
stop
in interface PreviewPanel
public void finish()
finish
in interface PreviewPanel
public java.awt.Component getGui()
PreviewPanel
getGui
in interface PreviewPanel
public boolean isHeavy()
PreviewPanel
isHeavy
in interface PreviewPanel
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public static boolean canView(java.lang.String url)
Copyright 2004-2015 Wandora Team