public class ApplicationC64 extends java.lang.Object implements java.awt.event.ActionListener, PreviewPanel, java.awt.event.ComponentListener
Modifier and Type | Field and Description |
---|---|
private boolean |
automaticTurboMode |
private de.joergjahnke.c64.core.C64 |
c64 |
private de.joergjahnke.c64.swing.C64Canvas |
c64canvas |
private javax.swing.JPanel |
c64wrapper |
private int |
driveEmulationMode |
private java.lang.String |
imageData |
private int |
joystickPort |
private java.lang.String |
locator |
private int |
mouseEmulationMode |
private static javax.swing.Icon |
selectedIcon |
private static java.util.Properties |
settings |
private int |
sizeScaler |
private javax.swing.JPanel |
ui |
private static javax.swing.Icon |
unselectedIcon |
private java.lang.String |
userInput |
private de.joergjahnke.common.extendeddevices.WavePlayer |
wavePlayer |
Constructor and Description |
---|
ApplicationC64(java.lang.String locator) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
private void |
attach(java.lang.String data) |
private void |
autoloadProgram() |
static boolean |
canView(java.lang.String url) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
private void |
detachImages()
Detach all images from all drives
|
void |
finish() |
java.awt.Component |
getGui()
Is called to get the actual preview component.
|
protected javax.swing.JComponent |
getJToolBar() |
javax.swing.JButton |
getMenuButton() |
javax.swing.JPopupMenu |
getOptionsMenu() |
boolean |
isHeavy()
This is a deprecated method to tell the preview is a heavy weight
AWT component.
|
private DataURL |
makeScreenCapture() |
private DataURL |
makeSnapshot() |
private void |
refreshSize() |
private void |
runProgram() |
private void |
saveToTopic(DataURL dataUrl) |
private void |
setActiveJoystick(int port) |
private void |
setDriveEmulation(int emulationMode) |
private void |
setMouseUsage(int emulationMode) |
private void |
setScaling(int scale) |
private void |
setTurboMode(boolean throttling,
boolean autoTurbo) |
void |
stop()
Called whenever the PreviewPanel should stop i.e.
|
private void |
stopC64() |
private java.lang.String locator
private java.lang.String imageData
private de.joergjahnke.common.extendeddevices.WavePlayer wavePlayer
private de.joergjahnke.c64.swing.C64Canvas c64canvas
private de.joergjahnke.c64.core.C64 c64
private javax.swing.JPanel c64wrapper
private javax.swing.JPanel ui
private static java.util.Properties settings
private int sizeScaler
private int joystickPort
private int driveEmulationMode
private int mouseEmulationMode
private boolean automaticTurboMode
private java.lang.String userInput
private static final javax.swing.Icon selectedIcon
private static final javax.swing.Icon unselectedIcon
public void stop()
PreviewPanel
stop
in interface PreviewPanel
public void finish()
finish
in interface PreviewPanel
private void stopC64()
public java.awt.Component getGui()
PreviewPanel
getGui
in interface PreviewPanel
protected javax.swing.JComponent getJToolBar()
public javax.swing.JButton getMenuButton()
public javax.swing.JPopupMenu getOptionsMenu()
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
private void setScaling(int scale)
private void setActiveJoystick(int port)
private void setMouseUsage(int emulationMode)
private void setDriveEmulation(int emulationMode)
private void setTurboMode(boolean throttling, boolean autoTurbo)
public boolean isHeavy()
PreviewPanel
isHeavy
in interface PreviewPanel
public static boolean canView(java.lang.String url)
private void refreshSize()
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
private void attach(java.lang.String data)
private void detachImages()
private void autoloadProgram()
private void runProgram()
private DataURL makeSnapshot()
private DataURL makeScreenCapture()
private void saveToTopic(DataURL dataUrl)
Copyright 2004-2015 Wandora Team