|
Lines 48-56
Link Here
|
| 48 |
public Color[] getCellBackgrounds() { |
48 |
public Color[] getCellBackgrounds() { |
| 49 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
49 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
| 50 |
Color[] result = new Color[ columnCount ]; |
50 |
Color[] result = new Color[ columnCount ]; |
| 51 |
for( int i = 0; i < result.length; i++ ) { |
51 |
if( data != null ) { |
| 52 |
if( data != null && data[ i ] != null ) { |
52 |
for( int i = 0; i < data.length; i++ ) { |
| 53 |
result[ i ] = data[ i ].background; |
53 |
if( data[ i ] != null ) { |
|
|
54 |
result[ i ] = data[ i ].background; |
| 55 |
} |
| 54 |
} |
56 |
} |
| 55 |
} |
57 |
} |
| 56 |
return result; |
58 |
return result; |
|
Lines 59-67
Link Here
|
| 59 |
public Color[] getCellForegrounds() { |
61 |
public Color[] getCellForegrounds() { |
| 60 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
62 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
| 61 |
Color[] result = new Color[ columnCount ]; |
63 |
Color[] result = new Color[ columnCount ]; |
| 62 |
for( int i = 0; i < result.length; i++ ) { |
64 |
if( data != null ) { |
| 63 |
if( data != null && data[ i ] != null ) { |
65 |
for( int i = 0; i < data.length; i++ ) { |
| 64 |
result[ i ] = data[ i ].foreground; |
66 |
if( data[ i ] != null ) { |
|
|
67 |
result[ i ] = data[ i ].foreground; |
| 68 |
} |
| 65 |
} |
69 |
} |
| 66 |
} |
70 |
} |
| 67 |
return result; |
71 |
return result; |
|
Lines 70-78
Link Here
|
| 70 |
public Font[] getCellFonts() { |
74 |
public Font[] getCellFonts() { |
| 71 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
75 |
int columnCount = Math.max( 1, getParent().getColumnCount() ); |
| 72 |
Font[] result = new Font[ columnCount ]; |
76 |
Font[] result = new Font[ columnCount ]; |
| 73 |
for( int i = 0; i < result.length; i++ ) { |
77 |
if( data != null ) { |
| 74 |
if( data != null && data[ i ] != null ) { |
78 |
for( int i = 0; i < data.length; i++ ) { |
| 75 |
result[ i ] = data[ i ].font; |
79 |
if( data[ i ] != null ) { |
|
|
80 |
result[ i ] = data[ i ].font; |
| 81 |
} |
| 76 |
} |
82 |
} |
| 77 |
} |
83 |
} |
| 78 |
return result; |
84 |
return result; |