com.esri.arcgis.display
Class CieLabConversion

java.lang.Object
  extended by com.esri.arcgis.display.CieLabConversion
All Implemented Interfaces:
ICieLabConversion, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class CieLabConversion
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ICieLabConversion

COM Class 'CieLabConversion'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriDisplay.olb'

Description 'Use this class to convert colers from and to the device independent CIELab color space using the monitor settings.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.display.ICieLabConversion
IID, IID137e39db_3e98_11d2_aaf7_00c04fa334b3, xxDummy
 
Constructor Summary
CieLabConversion()
          Constructs a CieLabConversion using ArcGIS Engine.
CieLabConversion(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
CieLabConversion theCieLabConversion = (CieLabConversion) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 double getDistance(double l1, double a1, double b1, double l2, double a2, double b2)
          Gets visual difference between two CIELAB colors.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getSettingsVersion()
          The monitor settings version.
 int hashCode()
          the hashcode for this object
 void hsvToLab(short h, byte s, byte v, double[] l, double[] a, double[] b)
          Converts an RGB color to a CIELAB color.
 void labToHsv(short[] h, byte[] s, byte[] v, double l, double a, double b)
          Converts a CIELAB color to an RGB color.
 void labToRgb(int[] rGB, double l, double a, double b)
          Converts a CIELAB color to an RGB color.
 void release()
          Release a CieLabConversion.
 void reloadSettings()
          Reloads the monitor settings from the registry.
 void rgbToLab(int rGB, double[] l, double[] a, double[] b)
          Converts an RGB color to a CIELAB color.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CieLabConversion

public CieLabConversion()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a CieLabConversion using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

CieLabConversion

public CieLabConversion(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
CieLabConversion theCieLabConversion = (CieLabConversion) obj;

Construct a CieLabConversion using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to CieLabConversion.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a CieLabConversion.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

rgbToLab

public void rgbToLab(int rGB,
                     double[] l,
                     double[] a,
                     double[] b)
              throws java.io.IOException,
                     AutomationException
Converts an RGB color to a CIELAB color.

Specified by:
rgbToLab in interface ICieLabConversion
Parameters:
rGB - The rGB (A COM typedef) (in)
l - The l (out: use single element array)
a - The a (in)
b - The b (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

labToRgb

public void labToRgb(int[] rGB,
                     double l,
                     double a,
                     double b)
              throws java.io.IOException,
                     AutomationException
Converts a CIELAB color to an RGB color.

Specified by:
labToRgb in interface ICieLabConversion
Parameters:
rGB - The rGB (A COM typedef) (out: use single element array)
l - The l (in)
a - The a (in)
b - The b (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hsvToLab

public void hsvToLab(short h,
                     byte s,
                     byte v,
                     double[] l,
                     double[] a,
                     double[] b)
              throws java.io.IOException,
                     AutomationException
Converts an RGB color to a CIELAB color.

Specified by:
hsvToLab in interface ICieLabConversion
Parameters:
h - The h (in)
s - An unsigned byte (in)
v - An unsigned byte (in)
l - The l (out: use single element array)
a - The a (in)
b - The b (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

labToHsv

public void labToHsv(short[] h,
                     byte[] s,
                     byte[] v,
                     double l,
                     double a,
                     double b)
              throws java.io.IOException,
                     AutomationException
Converts a CIELAB color to an RGB color.

Specified by:
labToHsv in interface ICieLabConversion
Parameters:
h - The h (out: use single element array)
s - An unsigned byte (out: use single element array)
v - An unsigned byte (out: use single element array)
l - The l (in)
a - The a (in)
b - The b (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDistance

public double getDistance(double l1,
                          double a1,
                          double b1,
                          double l2,
                          double a2,
                          double b2)
                   throws java.io.IOException,
                          AutomationException
Gets visual difference between two CIELAB colors.

Specified by:
getDistance in interface ICieLabConversion
Parameters:
l1 - The l1 (in)
a1 - The a1 (in)
b1 - The b1 (in)
l2 - The l2 (in)
a2 - The a2 (in)
b2 - The b2 (in)
Returns:
The dist
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reloadSettings

public void reloadSettings()
                    throws java.io.IOException,
                           AutomationException
Reloads the monitor settings from the registry.

Specified by:
reloadSettings in interface ICieLabConversion
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSettingsVersion

public int getSettingsVersion()
                       throws java.io.IOException,
                              AutomationException
The monitor settings version.

Specified by:
getSettingsVersion in interface ICieLabConversion
Returns:
The version
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.