MCPcopy Index your code
hub / github.com/processing/processing / sendNewValue

Method sendNewValue

java/src/processing/mode/java/tweak/Handle.java:261–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259
260
261 public void sendNewValue() {
262 int index = varIndex;
263 try {
264 if ("int".equals(type)) {
265 tweakClient.sendInt(index, newValue.intValue());
266 } else if ("hex".equals(type)) {
267 tweakClient.sendInt(index, newValue.intValue());
268 } else if ("webcolor".equals(type)) {
269 tweakClient.sendInt(index, newValue.intValue());
270 } else if ("float".equals(type)) {
271 tweakClient.sendFloat(index, newValue.floatValue());
272 }
273 } catch (Exception e) {
274 System.out.println("error sending new value!");
275 }
276 }
277
278
279 public String toString() {

Callers 1

setValueMethod · 0.95

Calls 4

sendIntMethod · 0.80
sendFloatMethod · 0.80
equalsMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected