|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ibm.able.editor.AbleEditorCanvas
This class is the main canvas class for Able Editor It supports drag/drop and connections of Able beans
| Nested Class Summary |
|---|
| Nested classes inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
boolean |
connectionInProgress
|
javax.swing.JFrame |
frame
|
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AbleEditorCanvas()
|
|
| Method Summary | |
|---|---|
java.awt.Component |
add(java.awt.Component c)
Add a component to the canvas. |
java.lang.Object |
getAgent()
Get the container agent. |
AbleBean |
getSelectedObject()
Get the selected bean object. |
AbleViewObject |
getSelectedViewObject()
Get the selected view object. |
int |
getViewType()
|
java.lang.String |
getWorkingDirectory()
|
void |
mouseClicked(java.awt.event.MouseEvent theEvent)
Handle mouseClicked event Select or deselect a tree node, object on canvas, or canvas. |
void |
mouseDragged(java.awt.event.MouseEvent theEvent)
Handle mouseDragged event. |
void |
mouseEntered(java.awt.event.MouseEvent theEvent)
Handle mouseEntered event. |
void |
mouseExited(java.awt.event.MouseEvent theEvent)
Handle mouseExited event. |
void |
mouseMoved(java.awt.event.MouseEvent theEvent)
Handle mouseMoved event. |
void |
mousePressed(java.awt.event.MouseEvent theEvent)
Handle mousePressed event. |
void |
mouseReleased(java.awt.event.MouseEvent theEvent)
Handle mouseReleased event. |
void |
paintComponent(java.awt.Graphics g)
Paint the objects and their connections. |
void |
popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
|
void |
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
|
void |
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
|
void |
remove(java.awt.Component c)
Remove a component from the canvas. |
static void |
removeBean(java.lang.Object theBean)
Remove a bean from the container. |
void |
removeListeners()
|
void |
setAgentViewObject(AbleViewObject anAgentView)
Set the container agent. |
void |
setFrame(javax.swing.JFrame theFrame)
Sets the frame. |
void |
setNoSelectedViewObject()
Deselect the selected view object. |
void |
setSelectedViewObject(AbleViewObject theViewObj,
boolean setTreeToo)
Set the selected view object. |
void |
setStatus(java.lang.String text)
Write text to the AbleEditor status line. |
void |
setTreeView(javax.swing.JTree aTree)
Set the tree view. |
void |
setViewType(int viewType)
|
void |
setWorkingDirectory(java.lang.String theDir)
|
void |
showPopup(java.awt.event.MouseEvent theEvent,
AbleViewObject theViewObj)
Show the canvas (agent) or object context menu. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
| Field Detail |
public boolean connectionInProgress
public javax.swing.JFrame frame
| Constructor Detail |
public AbleEditorCanvas()
| Method Detail |
public void setAgentViewObject(AbleViewObject anAgentView)
anAgentView - A container agent objectpublic java.lang.Object getAgent()
public void setFrame(javax.swing.JFrame theFrame)
theFrame - public int getViewType()
public void setViewType(int viewType)
public void setTreeView(javax.swing.JTree aTree)
aTree -
public static void removeBean(java.lang.Object theBean)
throws AbleException
theBean - The AbleBean to remove.
AbleExceptionpublic AbleBean getSelectedObject()
public java.awt.Component add(java.awt.Component c)
c - An AbleViewObjectpublic void remove(java.awt.Component c)
c - An AbleViewObjectpublic AbleViewObject getSelectedViewObject()
public void setSelectedViewObject(AbleViewObject theViewObj,
boolean setTreeToo)
theViewObj - An AbleViewObjectpublic void setNoSelectedViewObject()
public void mouseClicked(java.awt.event.MouseEvent theEvent)
mouseClicked in interface java.awt.event.MouseListenertheEvent - A MouseEventpublic void mousePressed(java.awt.event.MouseEvent theEvent)
mousePressed in interface java.awt.event.MouseListenertheEvent - A MouseEventpublic void mouseReleased(java.awt.event.MouseEvent theEvent)
mouseReleased in interface java.awt.event.MouseListenertheEvent - A MouseEventpublic void mouseEntered(java.awt.event.MouseEvent theEvent)
mouseEntered in interface java.awt.event.MouseListenertheEvent - A MouseEvent.public void mouseExited(java.awt.event.MouseEvent theEvent)
mouseExited in interface java.awt.event.MouseListenertheEvent - A MouseEventpublic void mouseDragged(java.awt.event.MouseEvent theEvent)
mouseDragged in interface java.awt.event.MouseMotionListenertheEvent - A MouseEventpublic void mouseMoved(java.awt.event.MouseEvent theEvent)
mouseMoved in interface java.awt.event.MouseMotionListenertheEvent - A MouseEventpublic void removeListeners()
public void showPopup(java.awt.event.MouseEvent theEvent,
AbleViewObject theViewObj)
theEvent - A MouseEventtheViewObj - An AbleView objectpublic void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListenerpublic void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
popupMenuCanceled in interface javax.swing.event.PopupMenuListenerpublic java.lang.String getWorkingDirectory()
public void setWorkingDirectory(java.lang.String theDir)
public void paintComponent(java.awt.Graphics g)
g - A Graphics context
public void setStatus(java.lang.String text)
text - The text to write to the status line
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||