protected TableFontStyle getColumnFontStyle ( byte [ ] data , int offset , Map < Integer , FontBase > fontBases ) { int uniqueID = MPPUtility . getInt ( data , offset ) ; FieldType fieldType = MPPTaskField . getInstance ( MPPUtility . getShort ( data , offset + 4 ) ) ; Integer index = Integer . valueOf ( MPPUtility . getByte ( data , offset + 8 ) ) ; int style = MPPUtility . getByte ( data , offset + 9 ) ; ColorType color = ColorType . getInstance ( MPPUtility . getByte ( data , offset + 10 ) ) ; int change = MPPUtility . getByte ( data , offset + 12 ) ; FontBase fontBase = fontBases . get ( index ) ; boolean bold = ( ( style & 0x01 ) != 0 ) ; boolean italic = ( ( style & 0x02 ) != 0 ) ; boolean underline = ( ( style & 0x04 ) != 0 ) ; boolean boldChanged = ( ( change & 0x01 ) != 0 ) ; boolean underlineChanged = ( ( change & 0x02 ) != 0 ) ; boolean italicChanged = ( ( change & 0x04 ) != 0 ) ; boolean colorChanged = ( ( change & 0x08 ) != 0 ) ; boolean fontChanged = ( ( change & 0x10 ) != 0 ) ; boolean backgroundColorChanged = ( uniqueID == - 1 ) ; boolean backgroundPatternChanged = ( uniqueID == - 1 ) ; return ( new TableFontStyle ( uniqueID , fieldType , fontBase , italic , bold , underline , false , color . getColor ( ) , Color . BLACK , BackgroundPattern . TRANSPARENT , italicChanged , boldChanged , underlineChanged , false , colorChanged , fontChanged , backgroundColorChanged , backgroundPatternChanged ) ) ; }
Retrieve column font details from a block of property data .