Package org.openoffice.xmerge.util

Examples of org.openoffice.xmerge.util.ColourConverter


      fTextAttr[1] |= BOTTOM_BORDER;
    }
   
    Color background = fmt.getBackground();
    if( background != null ) {
      ColourConverter cc = new ColourConverter(PocketExcelConstants.cLookup);
      icvFill = EndianConverter.writeShort(cc.convertFromRGB(background));
    } else {
      icvFill    = new byte[] {(byte)0xFF,(byte)0x00};
    }
   
      icvFore    = new byte[] {(byte)0xFF,(byte)0x00};
View Full Code Here


   */
  public Color getBackground() {
    short rgb = EndianConverter.readShort(icvFill);
    Color c = null;
    if(rgb!=0xFF) {
      ColourConverter cc = new ColourConverter(PocketExcelConstants.cLookup);
      c = cc.convertToRGB(rgb);
    }
    return c;
  }
View Full Code Here

TOP

Related Classes of org.openoffice.xmerge.util.ColourConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.