rename this feller

This commit is contained in:
Ben Fry
2015-05-12 18:47:00 -04:00
parent 05aae468df
commit 9d17ac383a
3 changed files with 10 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ import processing.mode.java.runner.Runner;
import processing.mode.java.tweak.ColorControlBox;
import processing.mode.java.tweak.Handle;
import processing.mode.java.tweak.SketchParser;
import processing.mode.java.tweak.UDPTweakClient;
import processing.mode.java.tweak.TweakClient;
public class JavaEditor extends Editor {
@@ -2557,12 +2557,11 @@ public class JavaEditor extends Editor {
// TWEAK MODE
public static final String prefTweakPort = "tweak.port";
public static final String prefTweakShowCode = "tweak.showcode";
static final String prefTweakPort = "tweak.port";
static final String prefTweakShowCode = "tweak.showcode";
public String[] baseCode;
UDPTweakClient tweakClient;
TweakClient tweakClient;
protected void startInteractiveMode() {
@@ -2776,7 +2775,7 @@ public class JavaEditor extends Editor {
}
// create the client that will send the new values to the sketch
tweakClient = new UDPTweakClient(port);
tweakClient = new TweakClient(port);
// update handles with a reference to the client object
for (int tab=0; tab<code.length; tab++) {
for (Handle h : handles.get(tab)) {
@@ -2827,7 +2826,7 @@ public class JavaEditor extends Editor {
}
// add the server code that will receive the value change messages
header += UDPTweakClient.getServerCode(port, numOfInts>0, numOfFloats>0);
header += TweakClient.getServerCode(port, numOfInts>0, numOfFloats>0);
header += "TweakModeServer tweakmode_Server;\n";
header += "void tweakmode_initAllVars() {\n";

View File

@@ -55,7 +55,7 @@ public class Handle {
String textFormat;
// the client that sends the changes
UDPTweakClient tweakClient;
TweakClient tweakClient;
public Handle(String t, String n, int vi, String v, int ti, int l, int sc,
@@ -253,7 +253,7 @@ public class Handle {
}
public void setTweakClient(UDPTweakClient client) {
public void setTweakClient(TweakClient client) {
tweakClient = client;
}

View File

@@ -24,7 +24,7 @@ import java.net.*;
import java.nio.ByteBuffer;
public class UDPTweakClient {
public class TweakClient {
private DatagramSocket socket;
private InetAddress address;
private boolean initialized;
@@ -35,7 +35,7 @@ public class UDPTweakClient {
static final int SHUTDOWN = 0xffffffff;
public UDPTweakClient(int sketchPort) {
public TweakClient(int sketchPort) {
this.sketchPort = sketchPort;
try {