Skip to content

Commit 989c70a

Browse files
committed
rename this feller
1 parent 9021bbc commit 989c70a

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

java/src/processing/mode/java/JavaEditor.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import processing.mode.java.tweak.ColorControlBox;
4646
import processing.mode.java.tweak.Handle;
4747
import processing.mode.java.tweak.SketchParser;
48-
import processing.mode.java.tweak.UDPTweakClient;
48+
import processing.mode.java.tweak.TweakClient;
4949

5050

5151
public class JavaEditor extends Editor {
@@ -2557,12 +2557,11 @@ protected void applyPreferences() {
25572557

25582558
// TWEAK MODE
25592559

2560-
public static final String prefTweakPort = "tweak.port";
2561-
public static final String prefTweakShowCode = "tweak.showcode";
2560+
static final String prefTweakPort = "tweak.port";
2561+
static final String prefTweakShowCode = "tweak.showcode";
25622562

25632563
public String[] baseCode;
2564-
2565-
UDPTweakClient tweakClient;
2564+
TweakClient tweakClient;
25662565

25672566

25682567
protected void startInteractiveMode() {
@@ -2776,7 +2775,7 @@ protected boolean automateSketch(Sketch sketch, SketchParser parser) {
27762775
}
27772776

27782777
// create the client that will send the new values to the sketch
2779-
tweakClient = new UDPTweakClient(port);
2778+
tweakClient = new TweakClient(port);
27802779
// update handles with a reference to the client object
27812780
for (int tab=0; tab<code.length; tab++) {
27822781
for (Handle h : handles.get(tab)) {
@@ -2827,7 +2826,7 @@ protected boolean automateSketch(Sketch sketch, SketchParser parser) {
28272826
}
28282827

28292828
// add the server code that will receive the value change messages
2830-
header += UDPTweakClient.getServerCode(port, numOfInts>0, numOfFloats>0);
2829+
header += TweakClient.getServerCode(port, numOfInts>0, numOfFloats>0);
28312830
header += "TweakModeServer tweakmode_Server;\n";
28322831

28332832
header += "void tweakmode_initAllVars() {\n";

java/src/processing/mode/java/tweak/Handle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Handle {
5555
String textFormat;
5656

5757
// the client that sends the changes
58-
UDPTweakClient tweakClient;
58+
TweakClient tweakClient;
5959

6060

6161
public Handle(String t, String n, int vi, String v, int ti, int l, int sc,
@@ -253,7 +253,7 @@ public void setColorBox(ColorControlBox box) {
253253
}
254254

255255

256-
public void setTweakClient(UDPTweakClient client) {
256+
public void setTweakClient(TweakClient client) {
257257
tweakClient = client;
258258
}
259259

java/src/processing/mode/java/tweak/UDPTweakClient.java renamed to java/src/processing/mode/java/tweak/TweakClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.nio.ByteBuffer;
2525

2626

27-
public class UDPTweakClient {
27+
public class TweakClient {
2828
private DatagramSocket socket;
2929
private InetAddress address;
3030
private boolean initialized;
@@ -35,7 +35,7 @@ public class UDPTweakClient {
3535
static final int SHUTDOWN = 0xffffffff;
3636

3737

38-
public UDPTweakClient(int sketchPort) {
38+
public TweakClient(int sketchPort) {
3939
this.sketchPort = sketchPort;
4040

4141
try {

0 commit comments

Comments
 (0)