public static XColor geColorFromSpPr ( final int index , final CTShapeProperties ctSpPr , final ThemesTable themeTable , final boolean isLineColor ) { CTSolidColorFillProperties colorFill = null ; try { if ( isLineColor ) { colorFill = ctSpPr . getLn ( ) . getSolidFill ( ) ; } else { colorFill = ctSpPr . getSolidFill ( ) ; } } catch ( Exception ex ) { LOG . log ( Level . FINE , "No entry for solidFill" , ex ) ; } XColor xcolor = findAutomaticFillColor ( themeTable , colorFill ) ; if ( xcolor != null ) { return xcolor ; } else { return getXColorWithAutomaticFill ( index , themeTable ) ; } }
get line color of line chart from CTLineSer .