public SeriesColorMarkerLineStyle getNextSeriesColorMarkerLineStyle ( ) { // 1. Color - cycle through colors one by one if ( colorCounter >= seriesColorList . length ) { colorCounter = 0 ; strokeCounter ++ ; } Color seriesColor = seriesColorList [ colorCounter ++ ] ; // 2. Stroke - cycle through strokes one by one but only after a color cycle if ( strokeCounter >= seriesLineStyleList . length ) { strokeCounter = 0 ; } BasicStroke seriesLineStyle = seriesLineStyleList [ strokeCounter ] ; // 3. Marker - cycle through markers one by one if ( markerCounter >= seriesMarkerList . length ) { markerCounter = 0 ; } Marker marker = seriesMarkerList [ markerCounter ++ ] ; return new SeriesColorMarkerLineStyle ( seriesColor , marker , seriesLineStyle ) ; }
Get the next ColorMarkerLineStyle