|
|||||||||||
| 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
cytoscape.editor.impl.BasicCytoShapeEntity
The BasicCytoShapeEntity class defines draggable/droppable visual components in the Cytoscape editor framework. The framework provides for dragging and dropping graphical entities from palette onto the canvas. BasicCytoShapeEntity objects are associated with semantic objects, i.e. nodes and edges, that are created when the graphical entities are dropped onto the canvas.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 | |
BasicCytoShapeEntity(java.lang.String attributeName,
java.lang.String attributeValue,
javax.swing.Icon image,
java.lang.String title)
|
|
| Method Summary | |
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent e)
|
java.awt.Image |
get_image()
get the image for the icon used on the palette to represent the graphical entity |
java.lang.String |
getAttributeName()
returns the name of the attribute associated with the Graphical Entity. |
java.lang.String |
getAttributeValue()
returns the value of the attribute associated with the Graphical Entity. |
javax.swing.Icon |
getIcon()
get the icon used on the palette to represent the graphical entity |
java.awt.dnd.DragSource |
getMyDragSource()
retrieves the source of the drag operation, used when dragging a graphical entity from the palette onto the canvas |
java.lang.String |
getTitle()
get the Title of the graphical entity |
void |
set_image(java.awt.Image _img)
set the image for the icon used on the palette to represent the graphical entity |
void |
setAttributeName(java.lang.String attributeName)
sets the name of the attribute associated with the Graphical Entity. |
void |
setAttributeValue(java.lang.String attributeValue)
sets the value of the attribute associated with the Graphical Entity. |
void |
setIcon(javax.swing.Icon _image)
set the icon used on the palette to represent the graphical entity |
void |
setMyDragSource(java.awt.dnd.DragSource myDragSource)
defines the source of the drag operation, used when dragging a graphical entity from the palette onto the canvas |
void |
setTitle(java.lang.String title)
set the Title of the graphical entity |
| 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, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, 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, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicCytoShapeEntity(java.lang.String attributeName,
java.lang.String attributeValue,
javax.swing.Icon image,
java.lang.String title)
attributeName - attribute name for the shape, should be one of "NodeType" or "EdgeType"attributeValue - value for the attribute assigned to the shape, for example a "NodeType" of "protein"image - the icon for the shapetitle - the title of the shape| Method Detail |
public java.lang.String getTitle()
GraphicalEntity
getTitle in interface GraphicalEntitypublic void setTitle(java.lang.String title)
GraphicalEntity
setTitle in interface GraphicalEntitytitle - The title to set.public java.awt.dnd.DragSource getMyDragSource()
GraphicalEntity
getMyDragSource in interface GraphicalEntitypublic void setMyDragSource(java.awt.dnd.DragSource myDragSource)
GraphicalEntity
setMyDragSource in interface GraphicalEntitymyDragSource - The DragSource to set.public javax.swing.Icon getIcon()
GraphicalEntity
getIcon in interface GraphicalEntitypublic void setIcon(javax.swing.Icon _image)
GraphicalEntity
setIcon in interface GraphicalEntity_image - the icon to set for the shapepublic java.awt.Image get_image()
GraphicalEntity
get_image in interface GraphicalEntitypublic void set_image(java.awt.Image _img)
GraphicalEntity
set_image in interface GraphicalEntity_img - The _img to set.public java.lang.String getAttributeName()
GraphicalEntity
getAttributeName in interface GraphicalEntitypublic void setAttributeName(java.lang.String attributeName)
GraphicalEntity
setAttributeName in interface GraphicalEntityattributeName - The attributeName to set.public java.lang.String getAttributeValue()
GraphicalEntity
getAttributeValue in interface GraphicalEntitypublic void setAttributeValue(java.lang.String attributeValue)
GraphicalEntity
setAttributeValue in interface GraphicalEntityattributeValue - The attributeValue to set.public void dragGestureRecognized(java.awt.dnd.DragGestureEvent e)
dragGestureRecognized in interface java.awt.dnd.DragGestureListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||