Use new jlayer
This commit is contained in:
@@ -47,7 +47,6 @@ public class AudioManager implements AudioFinishedListener {
|
||||
audioPlaylist.shuffle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void audioFinished(String key, URL resource) {
|
||||
playingKeys.remove(key);
|
||||
if (playingKeys.size() == 0)
|
||||
@@ -92,8 +91,6 @@ public class AudioManager implements AudioFinishedListener {
|
||||
if (currThread != null)
|
||||
return;
|
||||
currThread = new Thread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
try
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.flaremicro.visualforecast;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
import java.io.Writer;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
import com.flaremicro.util.Util;
|
||||
@@ -23,12 +23,12 @@ public class PropertyManager {
|
||||
|
||||
public boolean load() {
|
||||
synchronized(prop){
|
||||
Reader reader = null;
|
||||
InputStream reader = null;
|
||||
try
|
||||
{
|
||||
if (propFile.exists())
|
||||
{
|
||||
reader = new FileReader(propFile);
|
||||
reader = new FileInputStream(propFile);
|
||||
prop.load(reader);
|
||||
return true;
|
||||
}
|
||||
@@ -48,10 +48,10 @@ public class PropertyManager {
|
||||
|
||||
public boolean store() {
|
||||
synchronized(prop){
|
||||
Writer writer = null;
|
||||
OutputStream writer = null;
|
||||
try
|
||||
{
|
||||
writer = new FileWriter(propFile);
|
||||
writer = new FileOutputStream(propFile);
|
||||
prop.store(writer, "VisualForecast 1000 Properties file. Functional provider must be set for successful boot!");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -256,7 +256,6 @@ public class RenderPanel extends JPanel implements Tickable, ComponentListener {
|
||||
addRedrawBound(x, y, w, h, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentResized(ComponentEvent e) {
|
||||
loseRedrawRegion();
|
||||
}
|
||||
@@ -272,19 +271,16 @@ public class RenderPanel extends JPanel implements Tickable, ComponentListener {
|
||||
this.currentFlavour.redrawRegionlost(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentMoved(ComponentEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentShown(ComponentEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentHidden(ComponentEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
@@ -97,7 +97,6 @@ public class VisualForecastFrame extends JFrame implements WindowListener, KeyLi
|
||||
executor = new Executor(this.renderPane, 30);
|
||||
executor.begin();
|
||||
timer = new Timer(33, new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
renderPane.performPaintIfNeeded();
|
||||
}
|
||||
@@ -133,55 +132,46 @@ public class VisualForecastFrame extends JFrame implements WindowListener, KeyLi
|
||||
addKeyListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowOpened(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowClosing(WindowEvent e) {
|
||||
|
||||
end();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowClosed(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowIconified(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowDeiconified(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowActivated(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowDeactivated(WindowEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyTyped(KeyEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_F11)
|
||||
{
|
||||
@@ -200,7 +190,6 @@ public class VisualForecastFrame extends JFrame implements WindowListener, KeyLi
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class HourlyForecastDisplay implements Display {
|
||||
private int townIndex;
|
||||
|
||||
private int ticksBeforeChange = 200;
|
||||
private int animationTicks = -1;
|
||||
// private int animationTicks = -1;
|
||||
|
||||
private byte[] windchill = null;
|
||||
private byte[] tempval = null;
|
||||
|
||||
Reference in New Issue
Block a user