|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.arcgis.framework.ColorPalette
public class ColorPalette
Esri Color Palette object.
The ColorPalette is a popup menu displaying a choice of the colors defined by your currently selected Styles or, alternatively, a set of colors you specify.
The ColorPalette coclass defines a popup menu that can be used to allow interactive selection of colors. The colors included in the menu include all the colors in the Styles currently referenced by the StyleGallery. By selecting the More Colors option on the menu, the ColorSelector will be displayed.
Constructor Summary | |
---|---|
ColorPalette()
Constructs a ColorPalette using ArcGIS Engine. |
|
ColorPalette(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ColorPalette theColorPalette = (ColorPalette) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IColor |
getColor()
The Selected Color. |
int |
hashCode()
the hashcode for this object |
void |
setColorSetByRef(ISet rhs1)
The Color Objects. |
boolean |
trackPopupMenu(tagRECT rect,
IColor currentColor,
boolean orientation,
int hParentWnd)
Show Color Palette. |
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 ColorPalette() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ColorPalette(Object obj) throws IOException
ColorPalette theColorPalette = (ColorPalette) obj;
obj
to ColorPalette
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean trackPopupMenu(tagRECT rect, IColor currentColor, boolean orientation, int hParentWnd) throws IOException, AutomationException
The TrackPopupMenu method displays the ColorPalette dialog on the screen.
The TrackPopupMenu method controls the display of the palette with four parameters.
trackPopupMenu
in interface IColorPalette
rect
- A Structure: com.esri.arcgis.system.tagRECT (in)currentColor
- A reference to a com.esri.arcgis.display.IColor (in)orientation
- The orientation (in)hParentWnd
- The hParentWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getColor() throws IOException, AutomationException
The Color property of the IColorPalette interface returns the color selected during the TrackPopupMenu method.
The Color property may return the IColor interface of either an RgbColor, HsvColor, HlsColor, CmykColor or GrayColor coclass.
If the user selects a specific color, the Color property will return that selected color. If the user selects the More Colors option and selects a color from the ColorSelector that is then displayed, the IColorPalette Color property will return that color.
getColor
in interface IColorPalette
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColorPalette.trackPopupMenu(com.esri.arcgis.system.tagRECT, com.esri.arcgis.display.IColor, boolean, int)
public void setColorSetByRef(ISet rhs1) throws IOException, AutomationException
Set the ColorSet to a Set coclass. The Set coclass, which supports the ISet interface required by the ColorSet property, should contain the Color objects you wish to display.
Note that since the ISet.Add method passes the item by reference, youmust create a new color object to pass into the method each time.
setColorSetByRef
in interface ICustomColorPalette
rhs1
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |