Documentation of 'org.apache.poi.hssf.util.HSSFColor' Java class
HSSFColor
org.apache.poi.hssf.util

Class HSSFColor

    • Constructor Detail

      • HSSFColor

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

      • getIndexHash

        public static final java.util.Map<java.lang.Integer,HSSFColor> getIndexHash()
        This function returns all the colours in an unmodifiable Map. The map is cached on first use.
        Returns:
        a Map containing all colours keyed by Integer excel-style palette indexes
      • getMutableIndexHash

        public static final java.util.Hashtable<java.lang.Integer,HSSFColor> getMutableIndexHash()
        This function returns all the Colours, stored in a Hashtable that can be edited. No caching is performed. If you don't need to edit the table, then call getIndexHash() which returns a statically cached imuatable map of colours.
      • getTripletHash

        public static final java.util.Hashtable<java.lang.String,HSSFColor> 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 keyed by String gnumeric-like triplets
      • getIndex

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

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

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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.