private void link ( Value value , ValuePanel panel ) { controlToData . put ( panel , value ) ; if ( value instanceof SimpleValue ) panel . setValue ( ( int ) ( ( SimpleValue ) value ) . getValue ( 0 ) ) ; else if ( value instanceof RandomValue ) panel . setValue ( ( int ) ( ( RandomValue ) value ) . getValue ( ) ) ; }
Link a emitter configurable value to a value panel