1 2 17 18 package org.apache.poi.ddf; 19 20 25 public class EscherRGBProperty 26 extends EscherSimpleProperty 27 { 28 29 public EscherRGBProperty( short propertyNumber, int rgbColor ) 30 { 31 super( propertyNumber, false, false, rgbColor ); 32 } 33 34 public int getRgbColor() 35 { 36 return propertyValue; 37 } 38 39 public byte getRed() 40 { 41 return (byte) ( propertyValue & 0xFF ); 42 } 43 44 public byte getGreen() 45 { 46 return (byte) ( (propertyValue >> 8) & 0xFF ); 47 } 48 49 public byte getBlue() 50 { 51 return (byte) ( (propertyValue >> 16) & 0xFF ); 52 } 53 54 } 55 | Popular Tags |