Class HSSFColor

    • Constructor Detail

      • HSSFColor

        public HSSFColor()
        Creates a new instance of HSSFColor
    • Method Detail

      • getIndexHash

        public static final Hashtable getIndexHash()
        this function returns all colors in a hastable. Its not implemented as a static member/staticly initialized because that would be dirty in a server environment as it is intended. This means you'll eat the time it takes to create it once per request but you will not hold onto it if you have none of those requests.
        Returns:
        a hashtable containing all colors mapped to their excel-style pallette index
      • getTripletHash

        public static final Hashtable getTripletHash()
        this function returns all colors in a hastable. Its not implemented as a static member/staticly initialized because that would be dirty in a server environment as it is intended. This means you'll eat the time it takes to create it once per request but you will not hold onto it if you have none of those requests.
        Returns:
        a hashtable containing all colors mapped to their gnumeric-like triplet string
      • getIndex

        public short getIndex()
        Returns:
        index to the standard palette
      • getTriplet

        public short[] getTriplet()
        Returns:
        triplet representation like that in Excel
      • getHexString

        public String getHexString()
        Returns:
        a hex string exactly like a gnumeric triplet