public void addSection ( final Section SECTION ) { sections . add ( SECTION ) ; init ( getInnerBounds ( ) . width , getInnerBounds ( ) . height ) ; repaint ( getInnerBounds ( ) ) ; }
Adds a given section to the list of sections The sections could be defined by a start value a stop value and a color . One has to create a Section object from the class Section . The sections are stored in a ArrayList so there could be multiple . This might be a useful feature if you need to have exactly defined areas that you could not visualize with the track feature .