au.com.swz.swttocom.swt.types
Class OleColor

java.lang.Object
  extended by au.com.swz.swttocom.swt.types.OleColor

public class OleColor
extends java.lang.Object

An OLE_COLOR is a Windows defined data type. It is 32 bits in size therefore maps to a Java integer. The most significant byte may have one of three values. If it has a value of 0x00 then the remaining three bytes are used to define an RGB color where a byte is used per primary. If the most significant byte has a value of 0x80 then the remaining bytes define a system color such as vbButtonFace or vbWindowBackground. Finally, if the most significant byte has a value of 0x01 then the least significant byte defines an offset into an external palette.

Author:
Mark Richter

Constructor Summary
OleColor(org.eclipse.swt.graphics.Color color)
           
OleColor(int oleColor)
           
OleColor(int red, int green, int blue)
           
OleColor(org.eclipse.swt.graphics.RGB rgb)
           
OleColor(org.eclipse.swt.ole.win32.Variant vOleColor)
           
 
Method Summary
 int getOleColor()
           
 org.eclipse.swt.graphics.Color getSwtColor()
           
 org.eclipse.swt.graphics.Color getSwtColor(org.eclipse.swt.widgets.Display display)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OleColor

public OleColor(org.eclipse.swt.ole.win32.Variant vOleColor)

OleColor

public OleColor(int oleColor)

OleColor

public OleColor(org.eclipse.swt.graphics.Color color)

OleColor

public OleColor(org.eclipse.swt.graphics.RGB rgb)

OleColor

public OleColor(int red,
                int green,
                int blue)
Method Detail

getOleColor

public int getOleColor()

getSwtColor

public org.eclipse.swt.graphics.Color getSwtColor()

getSwtColor

public org.eclipse.swt.graphics.Color getSwtColor(org.eclipse.swt.widgets.Display display)