|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.controls.IToolbarControlProxy com.esri.arcgis.controls.IToolbarControl2Proxy
public class IToolbarControl2Proxy
Provides access to members that control the ToolbarControl.
The IToolbarControl2 interface provides additional members for tasks related to the ToolbarControl, such as setting appearance properties, showing any hidden items on a hidden items menu, and saving and loading the contents of the ToolbarControl.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IToolbarControl2Proxy()
|
|
IToolbarControl2Proxy(Object obj)
|
protected |
IToolbarControl2Proxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getBackColor()
Background color of the ToolbarControl. |
int |
getFadeColor()
Background fade color of the ToolbarControl. |
int |
getFillDirection()
The fill direction of the ToolbarControl background color. |
int |
getIconSize()
The size in pixels of icons displayed on the ToolbarControl. |
int |
getOrientation()
Indicates if the ToolbarControl is horizontally or vertically aligned. |
boolean |
isAlignLeft()
Indicates if the ToolbarControl displays menu and palette items aligned to the left or right. |
boolean |
isShowHiddenItems()
Indicates if the ToolbarControl has a hidden items menu containing items currently not visible. |
boolean |
isThemedDrawing()
Indicates if the ToolbarControl uses themed drawing. |
boolean |
isTransparent()
Indicates if the ToolbarControl has a transparent background. |
void |
loadItems(IStream pStream)
Loads items into the ToolbarControl from a previously saved stream. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
saveItems(IStream pStream)
Saves the ToolbarControl items into a stream. |
void |
setAlignLeft(boolean pVal)
Indicates if the ToolbarControl displays menu and palette items aligned to the left or right. |
void |
setBackColor(int pclr)
Background color of the ToolbarControl. |
void |
setFadeColor(int pVal)
Background fade color of the ToolbarControl. |
void |
setFillDirection(int pVal)
The fill direction of the ToolbarControl background color. |
void |
setIconSize(int pVal)
The size in pixels of icons displayed on the ToolbarControl. |
void |
setOrientation(int pVal)
Indicates if the ToolbarControl is horizontally or vertically aligned. |
void |
setShowHiddenItems(boolean pVal)
Indicates if the ToolbarControl has a hidden items menu containing items currently not visible. |
void |
setThemedDrawing(boolean pVal)
Indicates if the ToolbarControl uses themed drawing. |
void |
setTransparent(boolean pVal)
Indicates if the ToolbarControl has a transparent background. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IToolbarControl2Proxy()
public IToolbarControl2Proxy(Object obj) throws IOException
IOException
protected IToolbarControl2Proxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class IToolbarControlProxy
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class IToolbarControlProxy
IOException
public void setBackColor(int pclr) throws IOException, AutomationException
setBackColor
in interface IToolbarControl2
pclr
- The pclr (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBackColor() throws IOException, AutomationException
Returns or sets the background color of the ToolbarControl. By default BackColor is set to the Windows System '3D Objects' color. Internally the OLE_Color is stored as a long integer where the value may be calculated for any RGB combination as follows:
OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)
Where Red, Green and Blue are Long Integers within the range 0 - 255.
If the BackColor is different to the FadeColor the ToolbarControl background will be shaded between the BackColor and FadeColor by the FillDirection.
The BackColor, FadeColor and FillDirection properties do not affect the visual appearance of the ToolbarControl when Transparent is set to true.
When ThemedDrawing is false the background color of any items on the ToolbarControl is an alpha blend of the BackColor and the Windows System '3D Highlight' color. When ThemedDrawing is true the system controls the background color.
getBackColor
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getOrientation() throws IOException, AutomationException
Returns or sets the orientation of a ToolbarControl. By default the orientation is horizontal.
When a ToolControl is added to a ToolbarControl with a vertical orientation, the ToolControl displays as a button. Clicking the button displays the ToolControl in a seperate window. The ToolControl window can be closed interactively by the end user, or programmatically using the ICompletionNotify::SetComplete method.
getOrientation
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOrientation(int pVal) throws IOException, AutomationException
setOrientation
in interface IToolbarControl2
pVal
- A com.esri.arcgis.controls.esriToolbarOrientation constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isThemedDrawing() throws IOException, AutomationException
Determines whether items on the ToolbarControl display themselves using the current Windows XP theme. This property is false by default, and items display themselves on the ToolbarControl with the Windows Classic look.
isThemedDrawing
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setThemedDrawing(boolean pVal) throws IOException, AutomationException
setThemedDrawing
in interface IToolbarControl2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFadeColor() throws IOException, AutomationException
Returns or sets the fade color of the ToolbarControl. By default FadeColor is set to the Windows System '3D Objects' color. Internally the OLE_Color is stored as a long integer where the value may be calculated for any RGB combination as follows:
OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)
Where Red, Green and Blue are Long Integers within the range 0 - 255.
If the FadeColor is different to the BackColor the ToolbarControl background will be shaded between the BackColor and FadeColor by the FillDirection.
The BackColor, FadeColor and FillDirection properties do not affect the visual appearance of the ToolbarControl when Transparent is set to true.
When ThemedDrawing is false the background color of any items on the ToolbarControl is an alpha blend of the BackColor and the Windows System '3D Highlight' color. When ThemedDrawing is true the system controls the background color.
getFadeColor
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFadeColor(int pVal) throws IOException, AutomationException
setFadeColor
in interface IToolbarControl2
pVal
- The pVal (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFillDirection() throws IOException, AutomationException
Returns or sets the fill direction used to shade the background color of the ToolbarControl between the BackColor and FadeColor. By default a horizontal fill direction will be set.
The BackColor, FadeColor and FillDirection properties do not affect the visual appearance of the ToolbarControl when Transparent is set to true.
When ThemedDrawing is false the background color of any items on the ToolbarControl is an alpha blend of the BackColor and the Windows System '3D Highlight' color. When ThemedDrawing is true the system controls the background color.
getFillDirection
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFillDirection(int pVal) throws IOException, AutomationException
setFillDirection
in interface IToolbarControl2
pVal
- A com.esri.arcgis.controls.esriToolbarFillDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTransparent() throws IOException, AutomationException
Determines whether the background of the ToolbarControl is transparent. This property is false by default.
When Transparent is true, the parent window containing the ToolbarControl must not clip children windows for transparency to work. This ensures the area of the window under the ToolbarControl gets painted.
The BackColor, FadeColor and FillDirection properties do not affect the visual appearance of the ToolbarControl when Transparent is set to true.
isTransparent
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTransparent(boolean pVal) throws IOException, AutomationException
setTransparent
in interface IToolbarControl2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowHiddenItems() throws IOException, AutomationException
Determines whether any hidden items on the ToolbarControl are visible on a 'hidden items menu' when the button containing two chevrons is clicked by the end user. By default this property is false.
When ShowHiddenItems is false, the last visible item on the ToolbarControl may be partially visible only (and all subsequent items will be inaccessible) depending on the size of the ToolbarControl .
The 'hidden items menu' can only be displayed at runtime, when the ToolbarControl is not in Customize mode.
isShowHiddenItems
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowHiddenItems(boolean pVal) throws IOException, AutomationException
setShowHiddenItems
in interface IToolbarControl2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getIconSize() throws IOException, AutomationException
The size in pixels that each item on the ToolbarControl will display the ICommand::Bitmap property. By default bitmaps are stretched to a size of 16 x 16 pixels. The minimum IconSize allowed is 8.
IconSize may not affect the size of an item on the ToolbarControl that contains an object implementing IToolControl. Whether the ToolControl responds to the resize depends on its implementation.
getIconSize
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIconSize(int pVal) throws IOException, AutomationException
setIconSize
in interface IToolbarControl2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAlignLeft() throws IOException, AutomationException
Determines whether ToolbarMenu and ToolbarPalette items (and any sub menus they contain) on the ToolbarControl popup in a position aligned to the left of the ToolbarControl. This property is true by default.
If a ToolbarMenu or ToolbarPalette is to popup in a position so close to edge of a screen display, that it will not be fully visible, the AlignLeft property will be ignored. The ToolbarMenu or ToolbarPalette will popup aligned in a direction that will ensure it is fully visible.
AlignLeft does not affect the alignment of an ICommand::Caption, IToolbarMenu::Caption or IToolbarPalette::Caption displayed on a ToolbarItem. In order to change the direction text is displayed the RTL (right to left) display environment variable need changing. The AlignLeft property will override any RTL (right to left) display environment variables that affect the position of drop downs.
isAlignLeft
in interface IToolbarControl2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlignLeft(boolean pVal) throws IOException, AutomationException
setAlignLeft
in interface IToolbarControl2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadItems(IStream pStream) throws IOException, AutomationException
Loads the specified items into the ToolbarControl. Any items on the ToolbarControl before the LoadItems method is used, will be removed and replaced by the contents of the stream.
Use the LoadItems method in conjunction with the IBlobStream::LoadFromFile method to load any previously saved customizations made to the ToolbarControl by a user with the CustomizeDialog. The stream can be saved into a users profile using the SaveItems method, when an application exits, and the items loaded back into the ToolbarControl when the application is restarted using the LoadItems method.
loadItems
in interface IToolbarControl2
pStream
- 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 saveItems(IStream pStream) throws IOException, AutomationException
Persists the any items on the ToolbarControl out as a MemoryBlobStream.
Use the SaveItems method in conjunction with the IBlobStream::SaveToFile method to save any customizations made to the ToolbarControl by a user with the CustomizeDialog. The stream can be saved into a users profile, when an application exits, and the items loaded back into the ToolbarControl when the application is restarted using the LoadItems method.
saveItems
in interface IToolbarControl2
pStream
- A reference to a com.esri.arcgis.system.IStream (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 |