merlinvn / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

Implement Range.setArrayValue #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Range.setArrayValue(new float[]{(float)1.f,(float)2.f}) 

What is the expected output? What do you see instead?
Does not trigger any events and does not update the internal state of Range.

Please provide any additional information below.
Implement a Range.setArrayValue which calls super.setArrayValue and update()

public void setArrayValue(float[] theArray) {
    super.setArrayValue(theArray);
    update();                  
}

Original issue reported on code.google.com by malek.ma...@gmail.com on 25 Dec 2011 at 12:34

GoogleCodeExporter commented 8 years ago
Range.setLowValue((float)animationRunnerStart);
Range.setHighValue((float)animationRunnerEnd);

Generates two event broadcasts which in some cases has undesired side effets 
that requires additional code to counter act.

Original comment by malek.ma...@gmail.com on 25 Dec 2011 at 12:37

GoogleCodeExporter commented 8 years ago

Original comment by soj...@gmail.com on 18 Jan 2012 at 6:11

GoogleCodeExporter commented 8 years ago
implemented with version 0.7.0, instead of using setArrayValue(float[]) use 
setRangeValues(float,float)

Original comment by soj...@gmail.com on 18 Jan 2012 at 10:55