|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.esri.arcgis.beans.toolbar.ToolbarBean
public class ToolbarBean
The ToolbarBean
is a wrapper class of ToolbarControl
to
facilitate the use of ToolbarControl
at the design time. Users could access
the actual control by getToolbarControl
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected ToolbarControl |
m_toolbarControl
|
static javax.swing.ImageIcon |
TOOLBARBEAN_ICON
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.esri.arcgis.display.IConnectionPointContainer |
---|
IID, IIDb196b284_bab4_101a_b69c_00aa00341d07, xxDummy |
Fields inherited from interface com.esri.arcgis.geodatabase.IPersistStreamInit |
---|
IID, IID7fd52380_4e07_101b_ae2d_08002b2ec713, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IPersist |
---|
IID0000010c_0000_0000_c000_000000000046 |
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo |
---|
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ToolbarBean()
Default constructor |
Method Summary | |
---|---|
void |
aboutBox()
Displays a dialog of information about the ToolbarControl. |
int |
addItem(java.lang.Object commandOrMenu,
int subtype,
int index,
boolean beginGroup,
int groupSpacing,
int style)
Adds an item to the ToolbarControl. |
void |
addIToolbarControlEventsListener(IToolbarControlEventsAdapter theListener)
|
int |
addMenuItem(java.lang.Object menu,
int index,
boolean beginGroup,
int groupSpacing)
Adds a menu item to the ToolbarControl. |
int |
addToolbarDef(java.lang.Object toolbarDef,
int startIndex,
boolean group,
int groupSpacing,
int style)
Appends the contents of the toolbar definition, specified by Guid or ToolbarDef, to the toolbar control. |
void |
enumConnectionPoints(IEnumConnectionPoints[] iEnumConnectionPointsArray)
enumConnectionPoints |
boolean |
esri_isEnabled()
Indicates whether the ToolbarControl can respond to user generated events. |
void |
esri_setEnabled(boolean rhs1)
Indicates whether the ToolbarControl can respond to user generated events. |
int |
find(java.lang.Object commandOrMenu)
Returns the index of the first item containing the given command, menu or palette. |
void |
findConnectionPoint(GUID gUID,
IConnectionPoint[] iConnectionPointArray)
findConnectionPoint |
int |
getAppearance()
The appearance of the ToolbarControl. |
int |
getBackColor()
Background color of the ToolbarControl. |
int |
getBorderStyle()
The border style of the ToolbarControl. |
java.lang.Object |
getBuddy()
The object that will have its current tool managed by the toolbar. |
BuddyControl |
getBuddyControl()
|
void |
getClassID(GUID[] gUIDArray)
getClassID |
ICommandPool |
getCommandPool()
The command pool used by the ToolbarControl to manage command objects. |
int |
getCount()
The number of items on the ToolbarControl. |
ITool |
getCurrentTool()
The current tool of the buddy. |
java.lang.Object |
getCustomProperty()
A property to associate data with a control. |
int |
getFadeColor()
Background fade color of the ToolbarControl. |
int |
getFillDirection()
The fill direction of the ToolbarControl background color. |
int |
getHWnd()
Handle to the window associated with the ToolbarControl. |
int |
getIconSize()
The size in pixels of icons displayed on the ToolbarControl. |
IToolbarItem |
getItem(int index)
Returns the item at the specified index from the ToolbarControl. |
int |
getItemAppearance()
The appearance of the items on the ToolbarControl. |
void |
getItemRect(int index,
int[] top,
int[] left,
int[] bottom,
int[] right)
Returns the dimensions of the item at the specified index. |
java.lang.String |
getItemsString()
Return the items String |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
|
int |
getKeyIntercept()
A property that specifies interception of key strokes that are normally handled by the container. |
Picture |
getMouseIcon()
Custom mouse icon used if MousePointer is 99. |
int |
getMousePointer()
The mouse pointer displayed over the ToolbarControl. |
java.lang.Object |
getObject()
A property that returns the underlying control. |
IOperationStack |
getOperationStack()
The operation stack used for undo and redo functionality. |
int |
getOrientation()
Indicates if the ToolbarControl is horizontally or vertically aligned. |
void |
getSizeMax(_ULARGE_INTEGER[] _ULARGE_INTEGERArray)
getSizeMax |
int |
getTextAlignment()
The caption placement for all items on the ToolbarControl. |
ToolbarControl |
getToolbarControl()
Returns the actula ToolbarControl |
int |
getUpdateInterval()
The frequency in millisecs that update method is called on the ToolbarControl. |
int |
hitTest(int x,
int y,
boolean nearest)
Returns the index of the item at the specified x and y coordinates. |
void |
initNew()
initNew |
void |
interfaceSupportsErrorInfo(GUID gUID)
interfaceSupportsErrorInfo |
boolean |
isAlignLeft()
Indicates if the ToolbarControl displays menu and palette items aligned to the left or right. |
boolean |
isCustomize()
Indicates if the ToolbarControl is in customize mode. |
void |
isDirty()
isDirty |
boolean |
isLargeIcons()
Indicates if large icons are shown on all items on the ToolbarControl. |
boolean |
isMenuTracking()
Indicates if menu tracking is enabled on the ToolbarControl. |
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 |
isToolTips()
Indicates if the items tooltips are shown. |
boolean |
isTransparent()
Indicates if the ToolbarControl has a transparent background. |
void |
load(IStream pStm)
load |
void |
loadItems(IStream iStream)
Loads items into the ToolbarControl from a previously saved stream. |
void |
moveItem(int startIndex,
int finalIndex)
Moves an item from one index to another. |
void |
paint(java.awt.Graphics g)
Paints this component. |
void |
release()
|
void |
removeAllItems()
The method will remove all tool items in the toolbar. |
void |
removeIToolbarControlEventsListener(IToolbarControlEventsAdapter theListener)
|
void |
save(IStream pStm,
int fClearDirty)
save |
void |
saveItems(IStream iStream)
Saves the ToolbarControl items into a stream. |
void |
setAlignLeft(boolean _boolean)
Indicates if the ToolbarControl displays menu and palette items aligned to the left or right. |
void |
setAppearance(int appearance)
The appearance of the ToolbarControl. |
void |
setBackColor(int color)
Background color of the ToolbarControl. |
void |
setBorderStyle(int rhs1)
The border style of the ToolbarControl. |
void |
setBuddyControl(BuddyControl buddy)
|
void |
setBuddyControl(java.lang.Object pToolbarBuddy)
Sets a control to be a buddy of the toolbar, this control must support IToolbarBuddy. |
void |
setCommandPoolByRef(ICommandPool rhs1)
The command pool used by the ToolbarControl to manage command objects. |
void |
setCurrentToolByRef(ITool rhs1)
The current tool of the buddy. |
void |
setCustomize(boolean rhs1)
Indicates if the ToolbarControl is in customize mode. |
void |
setCustomProperty(java.lang.Object rhs1)
A property to associate data with a control. |
void |
setFadeColor(int color)
Background fade color of the ToolbarControl. |
void |
setFillDirection(int direction)
The fill direction of the ToolbarControl background color. |
void |
setIconSize(int size)
The size in pixels of icons displayed on the ToolbarControl. |
void |
setItemAppearance(int itemapp)
The appearance of the items on the ToolbarControl. |
void |
setItemsString(java.lang.String items)
|
void |
setKeyIntercept(int key)
A property that specifies interception of key strokes that are normally handled by the container. |
void |
setLargeIcons(boolean large)
Indicates if large icons are shown on all items on the ToolbarControl. |
void |
setLayout(java.awt.LayoutManager layout)
Overrides the setLayout method of super class. |
void |
setMenuTracking(boolean menuTracking)
Indicates if menu tracking is enabled on the ToolbarControl. |
void |
setMouseIconByRef(Picture picture)
Custom mouse icon used if MousePointer is 99. |
void |
setMousePointer(int pointer)
The mouse pointer displayed over the ToolbarControl. |
void |
setOperationStackByRef(IOperationStack rhs1)
The operation stack used for undo and redo functionality. |
void |
setOrientation(int orientation)
Indicates if the ToolbarControl is horizontally or vertically aligned. |
void |
setShowHiddenItems(boolean _boolean)
Indicates if the ToolbarControl has a hidden items menu containing items currently not visible. |
void |
setTextAlignment(int align)
The caption placement for all items on the ToolbarControl. |
void |
setThemedDrawing(boolean _boolean)
Indicates if the ToolbarControl uses themed drawing. |
void |
setToolTips(boolean tooltips)
Indicates if the items tooltips are shown. |
void |
setTransparent(boolean _boolean)
Indicates if the ToolbarControl has a transparent background. |
void |
setUpdateInterval(int interval)
The frequency in millisecs that update method is called on the ToolbarControl. |
void |
update(int index,
boolean fullUpdate)
Updates the enabled state of the specified item or all items if an index of -1 is specified. |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.controls.IToolbarControlDefault |
---|
remove, removeAll |
Methods inherited from interface com.esri.arcgis.controls.IToolbarControl |
---|
remove, removeAll |
Field Detail |
---|
protected ToolbarControl m_toolbarControl
public static javax.swing.ImageIcon TOOLBARBEAN_ICON
Constructor Detail |
---|
public ToolbarBean()
Method Detail |
---|
public void setLayout(java.awt.LayoutManager layout)
setLayout
method of super class.
setLayout
in class java.awt.Container
layout
- LayoutManager - a LayoutManager object.public ToolbarControl getToolbarControl()
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
g
- the graphics context to use for paintingpublic void setItemsString(java.lang.String items)
setItemsString
in interface IToolbarItems
string
- public java.lang.String getItemsString()
getItemsString
in interface IToolbarItems
public void removeAllItems() throws java.io.IOException
java.io.IOException
public int getAppearance() throws java.io.IOException
getAppearance
in interface IToolbarControl
getAppearance
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAppearance(int appearance) throws java.io.IOException
setAppearance
in interface IToolbarControl
setAppearance
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriControlsAppearance constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBorderStyle() throws java.io.IOException
getBorderStyle
in interface IToolbarControl
getBorderStyle
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBorderStyle(int rhs1) throws java.io.IOException
setBorderStyle
in interface IToolbarControl
setBorderStyle
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriControlsBorderStyle constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMousePointer() throws java.io.IOException
getMousePointer
in interface IToolbarControl
getMousePointer
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMousePointer(int pointer) throws java.io.IOException
setMousePointer
in interface IToolbarControl
setMousePointer
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriControlsMousePointer constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean esri_isEnabled() throws java.io.IOException
esri_isEnabled
in interface IToolbarControl
esri_isEnabled
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void esri_setEnabled(boolean rhs1) throws java.io.IOException
esri_setEnabled
in interface IToolbarControl
esri_setEnabled
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getKeyIntercept() throws java.io.IOException
getKeyIntercept
in interface IToolbarControl
getKeyIntercept
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setKeyIntercept(int key) throws java.io.IOException
setKeyIntercept
in interface IToolbarControl
setKeyIntercept
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBuddyControl(BuddyControl buddy) throws java.io.IOException
java.io.IOException
public BuddyControl getBuddyControl()
public void setItemAppearance(int itemapp) throws java.io.IOException
setItemAppearance
in interface IToolbarControl
setItemAppearance
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriControlsAppearance constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getItemAppearance() throws java.io.IOException
getItemAppearance
in interface IToolbarControl
getItemAppearance
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTextAlignment(int align) throws java.io.IOException
setTextAlignment
in interface IToolbarControl
setTextAlignment
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriToolbarTextAlignment constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTextAlignment() throws java.io.IOException
getTextAlignment
in interface IToolbarControl
getTextAlignment
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUpdateInterval(int interval) throws java.io.IOException
setUpdateInterval
in interface IToolbarControl
setUpdateInterval
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getUpdateInterval() throws java.io.IOException
getUpdateInterval
in interface IToolbarControl
getUpdateInterval
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLargeIcons(boolean large) throws java.io.IOException
setLargeIcons
in interface IToolbarControl
setLargeIcons
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLargeIcons() throws java.io.IOException
isLargeIcons
in interface IToolbarControl
isLargeIcons
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToolTips(boolean tooltips) throws java.io.IOException
setToolTips
in interface IToolbarControl
setToolTips
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isToolTips() throws java.io.IOException
isToolTips
in interface IToolbarControl
isToolTips
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMenuTracking(boolean menuTracking) throws java.io.IOException
setMenuTracking
in interface IToolbarControl
setMenuTracking
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isMenuTracking() throws java.io.IOException
isMenuTracking
in interface IToolbarControl
isMenuTracking
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addItem(java.lang.Object commandOrMenu, int subtype, int index, boolean beginGroup, int groupSpacing, int style) throws java.io.IOException, AutomationException
addItem
in interface IToolbarControl
addItem
in interface IToolbarControlDefault
item
- A Variant (in)subType
- The subType (in, optional, pass 0 if not required)index
- The index (in, optional, pass -1 if not required)beginGroup
- The beginGroup (in, optional, pass false if not required)groupSpacing
- The groupSpacing (in, optional, pass 0 if not required)style
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in, optional, pass 1 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addIToolbarControlEventsListener(IToolbarControlEventsAdapter theListener) throws java.io.IOException
java.io.IOException
public void removeIToolbarControlEventsListener(IToolbarControlEventsAdapter theListener) throws java.io.IOException
java.io.IOException
public IToolbarItem getItem(int index) throws java.io.IOException, AutomationException
getItem
in interface IToolbarControl
getItem
in interface IToolbarControlDefault
index
- The index (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws java.io.IOException, AutomationException
getCount
in interface IToolbarControl
getCount
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void update(int index, boolean fullUpdate) throws java.io.IOException, AutomationException
update
in interface IToolbarControl
update
in interface IToolbarControlDefault
index
- The index (in, optional, pass -1 if not required)fullUpdate
- The fullUpdate (in, optional, pass false if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getBuddy() throws java.io.IOException, AutomationException
getBuddy
in interface IToolbarControl
getBuddy
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITool getCurrentTool() throws java.io.IOException, AutomationException
getCurrentTool
in interface IToolbarControl
getCurrentTool
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getObject() throws java.io.IOException, AutomationException
getObject
in interface IToolbarControl
getObject
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHWnd() throws java.io.IOException, AutomationException
getHWnd
in interface IToolbarControl
getHWnd
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentToolByRef(ITool rhs1) throws java.io.IOException, AutomationException
setCurrentToolByRef
in interface IToolbarControl
setCurrentToolByRef
in interface IToolbarControlDefault
rhs1
- A reference to a com.esri.arcgis.systemUI.ITool (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int find(java.lang.Object commandOrMenu) throws java.io.IOException, AutomationException
find
in interface IToolbarControl
find
in interface IToolbarControlDefault
item
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandPool getCommandPool() throws java.io.IOException, AutomationException
getCommandPool
in interface IToolbarControl
getCommandPool
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCommandPoolByRef(ICommandPool rhs1) throws java.io.IOException, AutomationException
setCommandPoolByRef
in interface IToolbarControl
setCommandPoolByRef
in interface IToolbarControlDefault
rhs1
- A reference to a com.esri.arcgis.controls.ICommandPool (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addToolbarDef(java.lang.Object toolbarDef, int startIndex, boolean group, int groupSpacing, int style) throws java.io.IOException, AutomationException
addToolbarDef
in interface IToolbarControl
addToolbarDef
in interface IToolbarControlDefault
toolbarDef
- A Variant (in)startIndex
- The startIndex (in, optional, pass -1 if not required)group
- The group (in, optional, pass false if not required)groupSpacing
- The groupSpacing (in, optional, pass 4 if not required)style
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in, optional, pass 1 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCustomize() throws java.io.IOException, AutomationException
isCustomize
in interface IToolbarControl
isCustomize
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomize(boolean rhs1) throws java.io.IOException, AutomationException
setCustomize
in interface IToolbarControl
setCustomize
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int hitTest(int x, int y, boolean nearest) throws java.io.IOException, AutomationException
hitTest
in interface IToolbarControl
hitTest
in interface IToolbarControlDefault
x
- The x (in)y
- The y (in)nearest
- The nearest (in, optional, pass false if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveItem(int startIndex, int finalIndex) throws java.io.IOException, AutomationException
moveItem
in interface IToolbarControl
moveItem
in interface IToolbarControlDefault
startIndex
- The startIndex (in)finalIndex
- The finalIndex (in, optional, pass -1 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getItemRect(int index, int[] top, int[] left, int[] bottom, int[] right) throws java.io.IOException, AutomationException
getItemRect
in interface IToolbarControl
getItemRect
in interface IToolbarControlDefault
index
- The index (in)top
- The top (in/out: use single element array)left
- The left (in/out: use single element array)bottom
- The bottom (in/out: use single element array)right
- The right (in/out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IOperationStack getOperationStack() throws java.io.IOException, AutomationException
getOperationStack
in interface IToolbarControl
getOperationStack
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOperationStackByRef(IOperationStack rhs1) throws java.io.IOException, AutomationException
setOperationStackByRef
in interface IToolbarControl
setOperationStackByRef
in interface IToolbarControlDefault
rhs1
- A reference to a com.esri.arcgis.systemUI.IOperationStack (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getCustomProperty() throws java.io.IOException, AutomationException
getCustomProperty
in interface IToolbarControl
getCustomProperty
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(java.lang.Object rhs1) throws java.io.IOException, AutomationException
setCustomProperty
in interface IToolbarControl
setCustomProperty
in interface IToolbarControlDefault
rhs1
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBuddyControl(java.lang.Object pToolbarBuddy) throws java.io.IOException, AutomationException
setBuddyControl
in interface IToolbarControl
setBuddyControl
in interface IToolbarControlDefault
pToolbarBuddy
- A reference to another Automation Object (IDispatch) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addMenuItem(java.lang.Object menu, int index, boolean beginGroup, int groupSpacing) throws java.io.IOException, AutomationException
addMenuItem
in interface IToolbarControl
addMenuItem
in interface IToolbarControlDefault
menu
- A Variant (in)index
- The index (in, optional, pass -1 if not required)beginGroup
- The beginGroup (in, optional, pass false if not required)groupSpacing
- The groupSpacing (in, optional, pass 4 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pStm) throws java.io.IOException, AutomationException
load
in interface IPersistStreamInit
pStm
- A reference to a com.esri.arcgis.system.IStream (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pStm, int fClearDirty) throws java.io.IOException, AutomationException
save
in interface IPersistStreamInit
pStm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void setMouseIconByRef(Picture picture) throws java.io.IOException, AutomationException
setMouseIconByRef
in interface IToolbarControl
setMouseIconByRef
in interface IToolbarControlDefault
rhs1
- A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Picture getMouseIcon() throws java.io.IOException, AutomationException
getMouseIcon
in interface IToolbarControl
getMouseIcon
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void aboutBox() throws java.io.IOException, AutomationException
aboutBox
in interface IToolbarControl
aboutBox
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enumConnectionPoints(IEnumConnectionPoints[] iEnumConnectionPointsArray) throws java.io.IOException, AutomationException
enumConnectionPoints
in interface IConnectionPointContainer
ppEnum
- A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findConnectionPoint(GUID gUID, IConnectionPoint[] iConnectionPointArray) throws java.io.IOException, AutomationException
findConnectionPoint
in interface IConnectionPointContainer
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP
- A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] gUIDArray) throws java.io.IOException, AutomationException
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws java.io.IOException, AutomationException
isDirty
in interface IPersistStreamInit
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] _ULARGE_INTEGERArray) throws java.io.IOException, AutomationException
getSizeMax
in interface IPersistStreamInit
pCbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initNew() throws java.io.IOException, AutomationException
initNew
in interface IPersistStreamInit
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID gUID) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBackColor(int color) throws java.io.IOException, AutomationException
setBackColor
in interface IToolbarControlDefault
rhs1
- The rhs1 (A COM typedef) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBackColor() throws java.io.IOException, AutomationException
getBackColor
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getOrientation() throws java.io.IOException, AutomationException
getOrientation
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOrientation(int orientation) throws java.io.IOException, AutomationException
setOrientation
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriToolbarOrientation constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isThemedDrawing() throws java.io.IOException, AutomationException
isThemedDrawing
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setThemedDrawing(boolean _boolean) throws java.io.IOException, AutomationException
setThemedDrawing
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFadeColor() throws java.io.IOException, AutomationException
getFadeColor
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFadeColor(int color) throws java.io.IOException, AutomationException
setFadeColor
in interface IToolbarControlDefault
rhs1
- The rhs1 (A COM typedef) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFillDirection() throws java.io.IOException, AutomationException
getFillDirection
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFillDirection(int direction) throws java.io.IOException, AutomationException
setFillDirection
in interface IToolbarControlDefault
rhs1
- A com.esri.arcgis.controls.esriToolbarFillDirection constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTransparent() throws java.io.IOException, AutomationException
isTransparent
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTransparent(boolean _boolean) throws java.io.IOException, AutomationException
setTransparent
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowHiddenItems() throws java.io.IOException, AutomationException
isShowHiddenItems
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowHiddenItems(boolean _boolean) throws java.io.IOException, AutomationException
setShowHiddenItems
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getIconSize() throws java.io.IOException, AutomationException
getIconSize
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIconSize(int size) throws java.io.IOException, AutomationException
setIconSize
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAlignLeft() throws java.io.IOException, AutomationException
isAlignLeft
in interface IToolbarControlDefault
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlignLeft(boolean _boolean) throws java.io.IOException, AutomationException
setAlignLeft
in interface IToolbarControlDefault
rhs1
- The rhs1 (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadItems(IStream iStream) throws java.io.IOException, AutomationException
loadItems
in interface IToolbarControlDefault
pStream
- A reference to a com.esri.arcgis.system.IStream (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveItems(IStream iStream) throws java.io.IOException, AutomationException
saveItems
in interface IToolbarControlDefault
pStream
- A reference to a com.esri.arcgis.system.IStream (in)
java.io.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 |