question: private void plotPoint ( int x , int y , int width , int height , double [ ] probs , boolean update ) { Graphics osg = m_osi . getGraphics ( ) ; if ( update ) { osg . setXORMode ( Color . white ) ; osg . drawLine ( 0 , y , m_panelWidth - 1 , y ) ; update ( ) ; osg . drawLine ( 0 , y , m_panelWidth - 1 , y ) ; } osg . setPaintMode ( ) ; float [ ] colVal = new float [ 3 ] ; float [ ] tempCols = new float [ 3 ] ; for ( int k = 0 ; k < probs . length ; k ++ ) { Color curr = m_Colors . get ( k % m_Colors . size ( ) ) ; curr . getRGBColorComponents ( tempCols ) ; for ( int z = 0 ; z < 3 ; z ++ ) { colVal [ z ] += probs [ k ] * tempCols [ z ] ; } } for ( int z = 0 ; z < 3 ; z ++ ) { if ( colVal [ z ] < 0 ) { colVal [ z ] = 0 ; } else if ( colVal [ z ] > 1 ) { colVal [ z ] = 1 ; } } osg . setColor ( new Color ( colVal [ 0 ] , colVal [ 1 ] , colVal [ 2 ] ) ) ; osg . fillRect ( x , y , width , height ) ; }
target:  Plot a point in our visualization on-screen.