|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.display.CmykColor
public class CmykColor
A color in the CMYK(Cyan Magenta Yellow, Black) color system.

| Constructor Summary | |
|---|---|
CmykColor()
Constructs a CmykColor using ArcGIS Engine. |
|
CmykColor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CmykColor theCmykColor = (CmykColor) obj; |
|
| Method Summary | |
|---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
int |
getBlack()
The black component of an ICmykColor (0-255). |
void |
getCIELAB(double[] l,
double[] a,
double[] b)
The CIELAB value of color. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCMYK()
The CMYK value of color. |
int |
getCyan()
The cyan component of an ICmykColor (0-255). |
int |
getMagenta()
The magenta component of an ICmykColor (0-255). |
int |
getRGB()
The RGB value of color. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getSpotDescription()
The description of the spot plate. |
short |
getSpotPercentage()
The saturation of the spot plate. |
byte |
getTransparency()
The Alpha Blending value. |
int |
getYellow()
The yellow component of an ICmykColor (0-255). |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isNullColor()
Indicates whether this color is null. |
boolean |
isOverprint()
Indicates if the color overprints. |
boolean |
isSpotColor()
Indicates if the color is a spot color. |
boolean |
isUseWindowsDithering()
Indicates if colors should be dithered to simulate colors that aren't supported by the display. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setBlack(int black)
The black component of an ICmykColor (0-255). |
void |
setCIELAB(double l,
double a,
double b)
The CIELAB value of color. |
void |
setCMYK(int cMYK)
The CMYK value of color. |
void |
setCyan(int cyan)
The cyan component of an ICmykColor (0-255). |
void |
setMagenta(int magenta)
The magenta component of an ICmykColor (0-255). |
void |
setNullColor(boolean flag)
Indicates whether this color is null. |
void |
setOverprint(boolean flag)
Indicates if the color overprints. |
void |
setRGB(int rGB)
The RGB value of color. |
void |
setSpotColor(boolean isSpot)
Indicates if the color is a spot color. |
void |
setSpotDescription(String desc)
The description of the spot plate. |
void |
setSpotPercentage(short percent)
The saturation of the spot plate. |
void |
setTransparency(byte alphaValue)
The Alpha Blending value. |
void |
setUseWindowsDithering(boolean useDithering)
Indicates if colors should be dithered to simulate colors that aren't supported by the display. |
void |
setYellow(int yellow)
The yellow component of an ICmykColor (0-255). |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public CmykColor()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public CmykColor(Object obj)
throws IOException
CmykColor theCmykColor = (CmykColor) obj;
obj to CmykColor.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setCyan(int cyan)
throws IOException,
AutomationException
setCyan in interface ICmykColorcyan - The cyan (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCyan()
throws IOException,
AutomationException
getCyan in interface ICmykColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMagenta(int magenta)
throws IOException,
AutomationException
setMagenta in interface ICmykColormagenta - The magenta (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMagenta()
throws IOException,
AutomationException
getMagenta in interface ICmykColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setYellow(int yellow)
throws IOException,
AutomationException
setYellow in interface ICmykColoryellow - The yellow (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getYellow()
throws IOException,
AutomationException
getYellow in interface ICmykColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBlack(int black)
throws IOException,
AutomationException
setBlack in interface ICmykColorblack - The black (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBlack()
throws IOException,
AutomationException
getBlack in interface ICmykColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRGB(int rGB)
throws IOException,
AutomationException
setRGB in interface IColorrGB - The rGB (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.It is easiest to specify the rgb values in hexadecimal. The following code creates an RGBColor for black -
RGBColor black = new RGBColor();
black.setRGB(0xFFFFFF);
public int getRGB()
throws IOException,
AutomationException
getRGB in interface IColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCMYK(int cMYK)
throws IOException,
AutomationException
setCMYK in interface IColorcMYK - The cMYK (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCMYK()
throws IOException,
AutomationException
CMYK returns the Long (ASCII) number calculated from the Cyan, Magenta, Yellow and Black color attributes.
getCMYK in interface IColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseWindowsDithering(boolean useDithering)
throws IOException,
AutomationException
setUseWindowsDithering in interface IColoruseDithering - The useDithering (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseWindowsDithering()
throws IOException,
AutomationException
isUseWindowsDithering in interface IColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCIELAB(double l,
double a,
double b)
throws IOException,
AutomationException
setCIELAB in interface IColorl - The l (in)a - The a (in)b - The b (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getCIELAB(double[] l,
double[] a,
double[] b)
throws IOException,
AutomationException
getCIELAB in interface IColorl - The l (out: use single element array)a - The a (out: use single element array)b - The b (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTransparency(byte alphaValue)
throws IOException,
AutomationException
setTransparency in interface IColoralphaValue - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte getTransparency()
throws IOException,
AutomationException
getTransparency in interface IColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNullColor(boolean flag)
throws IOException,
AutomationException
Boolean indicator that specifies if the color will be Null or Transparent. The default for NullColor is False.
setNullColor in interface IColorflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNullColor()
throws IOException,
AutomationException
Boolean indicator that specifies if the color will be Null or Transparent. The default for NullColor is False.
isNullColor in interface IColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOverprint(boolean flag)
throws IOException,
AutomationException
setOverprint in interface IPostScriptColorflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOverprint()
throws IOException,
AutomationException
isOverprint in interface IPostScriptColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpotColor(boolean isSpot)
throws IOException,
AutomationException
setSpotColor in interface IPostScriptColorisSpot - The isSpot (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSpotColor()
throws IOException,
AutomationException
isSpotColor in interface IPostScriptColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpotDescription(String desc)
throws IOException,
AutomationException
setSpotDescription in interface IPostScriptColordesc - The desc (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSpotDescription()
throws IOException,
AutomationException
getSpotDescription in interface IPostScriptColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpotPercentage(short percent)
throws IOException,
AutomationException
setSpotPercentage in interface IPostScriptColorpercent - The percent (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getSpotPercentage()
throws IOException,
AutomationException
getSpotPercentage in interface IPostScriptColorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IClone esri_clone()
throws IOException,
AutomationException
esri_clone in interface ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IClone other)
throws IOException,
AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIdentical(IClone other)
throws IOException,
AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws IOException,
AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||