public void setLinkedEmitter ( ConfigurableEmitter emitter ) { // set the title Window w = SwingUtilities . windowForComponent ( this ) ; if ( w instanceof Frame ) ( ( Frame ) w ) . setTitle ( "Whiskas Gradient Editor (" + emitter . name + ")" ) ; // clear all values properties . removeAllItems ( ) ; values . clear ( ) ; panel . setInterpolator ( null ) ; enableControls ( ) ; }
Set the emitter that is being controlled