You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Ozge Erenoglu [Oyak Bank]" <OE...@oyakbank.com.tr> on 2005/04/05 11:57:23 UTC

where to find color definitions

Hello, 
where can I find the colors by short to use in setcellfont. For example 0xc
is black etc ..

HSSFCellStyle boldbicem = wb.createCellStyle();
HSSFFont f = wb.createFont();
f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
//set font 1 to 12 point type
f.setFontHeightInPoints((short) 10);
//make it blue
f.setColor((short)0xc );
// make it bold
fbold.setColor((short)0xc );
boldbicem.setFont(fbold);
boldbicemmavi.setFont(f);
s1h1.setCellStyle(boldbicem); 

thank you 



Kişiye özel bu mesaj ve içeriğindeki bilgiler gizlidir. Oyak Bank bu mesajın içeriği ve ekleri ile ilgili olarak hukuksal hiçbir sorumluluk kabul etmez.Yetkili alıcılardan biri değilseniz, bu mesajın herhangi bir şekilde ifşa edilmesi, kullanılması, kopyalanması,yayılması veya mesajda yeralan hususlarla ilgili olarak herhangi bir işlem yapılmasının kesinlikle yasak olduğunu bildiririz.Böyle bir durumda lütfen hemen mesajın göndericisini bilgilendiriniz ve mesajı sisteminizden siliniz.Internet ortamında gönderilen e-posta mesajlarındaki hata ve/veya eksikliklerden veya virüslerden dolayı mesajın göndericisi herhangi bir sorumluluk kabul etmemektedir.Teşekkür ederiz.
The information contained in this communication may contain confidential or legally privileged information. Oyak Bank doesn't accept any legal responsibility for the contents and attachments of this message. If you are not the intended recipient you are hereby notified that any disclosure, use, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify the sender immediately by responding to this e-mail and then delete it from your system. The sender does not accept any liability for any errors or omissions or any viruses in the context of this message which arise as a result of internet transmission. Thank you.

Re: where to find color definitions

Posted by Sanjiv Jivan <sa...@gmail.com>.
Refer to the constants defined in org.apache.poi.hssf.util.HSSFColor.

For example, the color index for blue is : HSSFColor.BLUE.getIndex()

Regards,
Sanjiv


On Apr 5, 2005 4:57 AM, Ozge Erenoglu [Oyak Bank]
<OE...@oyakbank.com.tr> wrote:
> Hello,
> where can I find the colors by short to use in setcellfont. For example 0xc
> is black etc ..
> 
> HSSFCellStyle boldbicem = wb.createCellStyle();
> HSSFFont f = wb.createFont();
> f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
> //set font 1 to 12 point type
> f.setFontHeightInPoints((short) 10);
> //make it blue
> f.setColor((short)0xc );
> // make it bold
> fbold.setColor((short)0xc );
> boldbicem.setFont(fbold);
> boldbicemmavi.setFont(f);
> s1h1.setCellStyle(boldbicem);
> 
> thank you
> 
> Kişiye özel bu mesaj ve içeriğindeki bilgiler gizlidir. Oyak Bank bu mesajın içeriği ve ekleri ile ilgili olarak hukuksal hiçbir sorumluluk kabul etmez.Yetkili alıcılardan biri değilseniz, bu mesajın herhangi bir şekilde ifşa edilmesi, kullanılması, kopyalanması,yayılması veya mesajda yeralan hususlarla ilgili olarak herhangi bir işlem yapılmasının kesinlikle yasak olduğunu bildiririz.Böyle bir durumda lütfen hemen mesajın göndericisini bilgilendiriniz ve mesajı sisteminizden siliniz.Internet ortamında gönderilen e-posta mesajlarındaki hata ve/veya eksikliklerden veya virüslerden dolayı mesajın göndericisi herhangi bir sorumluluk kabul etmemektedir.Teşekkür ederiz.
> The information contained in this communication may contain confidential or legally privileged information. Oyak Bank doesn't accept any legal responsibility for the contents and attachments of this message. If you are not the intended recipient you are hereby notified that any disclosure, use, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify the sender immediately by responding to this e-mail and then delete it from your system. The sender does not accept any liability for any errors or omissions or any viruses in the context of this message which arise as a result of internet transmission. Thank you.
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/