Code example for SeekBar

Methods: getMaxgetProgress

1
        /** 
         * process cross hair cursor 
         * @param seekBar 
         */ 
        private void processCrosshair(SeekBar seekBar) {
            double prog = seekBar.getProgress();
            double max = seekBar.getMax();
            double percent = prog / max;
 
            double value = subView.getHorizontalAxisValue(percent);
 
            setTableData(value);
        } 
 
        /** 
         * set table data 
         * @param xx 
         */ 
        private void setTableData(double xx) {
            // update the table... 
            OHLCSeries series = subView.getSeries();