mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353499 13f79535-47bb-0310-9956-ffa450edef68
38 lines
670 B
Java
38 lines
670 B
Java
package org.apache.poi.ddf;
|
|
|
|
/**
|
|
* A color property.
|
|
*
|
|
* @author Glen Stampoultzis (glens at apache.org)
|
|
*/
|
|
public class EscherRGBProperty
|
|
extends EscherSimpleProperty
|
|
{
|
|
|
|
public EscherRGBProperty( short propertyNumber, int rgbColor )
|
|
{
|
|
super( propertyNumber, false, false, rgbColor );
|
|
}
|
|
|
|
public int getRgbColor()
|
|
{
|
|
return propertyValue;
|
|
}
|
|
|
|
public byte getRed()
|
|
{
|
|
return (byte) ( propertyValue & 0xFF );
|
|
}
|
|
|
|
public byte getGreen()
|
|
{
|
|
return (byte) ( (propertyValue >> 8) & 0xFF );
|
|
}
|
|
|
|
public byte getBlue()
|
|
{
|
|
return (byte) ( (propertyValue >> 16) & 0xFF );
|
|
}
|
|
|
|
}
|