Package jxl.format

Examples of jxl.format.Colour


  protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell, int col, int row) throws JRException
  {
    addMergeRegion(gridCell, col, row);

    Colour forecolor = getWorkbookColour(frame.getForecolor());
    Colour backcolor = WHITE;
    Pattern mode = backgroundMode;

    if (frame.getModeValue() == ModeEnum.OPAQUE)
    {
      mode = Pattern.SOLID;
View Full Code Here


    // Initialize the array with all the default colours
    Colour[] colours = Colour.getAllColours();

    for (int i = 0; i < colours.length; i++)
    {
      Colour c = colours[i];
      setColourRGB(c,
                   c.getDefaultRGB().getRed(),
                   c.getDefaultRGB().getGreen(),
                   c.getDefaultRGB().getBlue());
    }
  }
View Full Code Here

   * @param hex a string which presents "#RRGGBB" 
   * @return colour a jxl.format.Colour object
   */
  public static jxl.format.Colour hexToJxlColour(String hex){
    // #RRGGBB
    Colour color = (Colour)_colourMap.get(hex);
    if(color == null)
      color = Colour.PALETTE_BLACK;
    return color;
  }
View Full Code Here

TOP

Related Classes of jxl.format.Colour

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.