Hmmm,

Just looked at the HSSFColor.AQUA class and the index value is 49. I mistakenly thought the index was referencing an element in an array - it's just a public static final variable. However, I'm sure that this shouldn't be the case though. Public static final variable names are supposed to be UPPERCASE to make it obvious to java developers that this is a global constant.

For example:
org.apache.poi.hssf.usermodel.HSSFSimpleShape
public static final short OBJECT_TYPE_LINE 1
public static final short OBJECT_TYPE_OVAL 3
public static final short OBJECT_TYPE_RECTANGLE 2

org.apache.poi.hssf.usermodel.HSSFWorkbook
public static final byte ENCODING_COMPRESSED_UNICODE 0
public static final byte ENCODING_UTF_16 1
public static final int INITIAL_CAPACITY 3

org.apache.poi.hssf.util.HSSFColor.AQUA
public static final java.lang.String hexString "3333:CCCC:CCCC"
public static final short index 49

Why is org.apache.poi.hssf.util.HSSFColor.AQUA.index not org.apache.poi.hssf.util.HSSFColor.AQUA.INDEX?

Strange...

Cheers

Larry Ducie



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.