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()
PreviewPanelstop in interface PreviewPanelpublic void finish()
finish in interface PreviewPanelpublic java.awt.Component getGui()
PreviewPanelgetGui in interface PreviewPanelpublic boolean isHeavy()
PreviewPanelisHeavy in interface PreviewPanelpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic static boolean canView(java.lang.String url)
Copyright 2004-2015 Wandora Team