| org.netbeans.modules.uml.ui.products.ad.drawengines.ETDrawEngine org.netbeans.modules.uml.ui.products.ad.drawengines.ETEdgeDrawEngine org.netbeans.modules.uml.ui.products.ad.diagramengines.sequencediagram.MessageEdgeDrawEngine
MessageEdgeDrawEngine | public class MessageEdgeDrawEngine extends ETEdgeDrawEngine implements IMessageEdgeDrawEngine(Code) | | The MessageEdgeDrawEngine provides drawing support for an TSGraphObject.
There is a one to one relationship between an TSGraphObject and an
MessageEdgeDrawEngine.
author: Trey Spiva |
MessageEdgeDrawEngine | public MessageEdgeDrawEngine()(Code) | | |
doDraw | public void doDraw(IDrawInfo drawInfo)(Code) | | Performs the rendering of the message.
|
getActivationBarConnector | protected TSConnector getActivationBarConnector(TSEEdge edge)(Code) | | Retrieve the connector that connects the edge to an activation bar.
Parameters: edge - The edge that should connect to an activation bar. The Tom Sawyer connector. |
getAllowReconnection | public boolean getAllowReconnection()(Code) | | |
getDrawEngineID | public String getDrawEngineID()(Code) | | This is the name of the drawengine used when storing and reading from
the product archive
A unique identifier for this draw engine. Used when persisting to the etlp file. |
getEndArrowKind | protected int getEndArrowKind()(Code) | | Determines the end type of arrow head to draw from the
IPresentationElement's initialization string.
The kind of arrowhead for this message. The value will be oneof the DrawEngineArrowheadKindEnum values. See Also: DrawEngineArrowheadKindEnum |
getLineKind | protected int getLineKind()(Code) | | Determines the type of line to draw from the IPresentationElement's
initialization string
The kind of line for this message. The value will be oneof the DrawEngineArrowheadKindEnum values. See Also: DrawEngineArrowheadKindEnum |
getLogicalBoundingRect | public IETRect getLogicalBoundingRect(boolean bIncludeLabels)(Code) | | The rectangle used for last drawing operation, in logical coordinates
|
getMessageKind | protected int getMessageKind()(Code) | | Determines the message kind from either the atached message, or the
initialization string
The message type. The value will be one of the IMessageKind values. See Also: IMessageKind |
getResultFromSender | protected IMessage getResultFromSender(IMessage message)(Code) | | Retrieves the result message associated with the input sending message
|
getShow | public boolean getShow()(Code) | | |
getShowMessageType | public int getShowMessageType()(Code) | | |
getStartArrowKind | protected int getStartArrowKind()(Code) | | Determines the type of arrow head to draw from the IPresentationElement's
initialization string.
The kind of arrowhead for this message. The value will be oneof the DrawEngineArrowheadKindEnum values. See Also: DrawEngineArrowheadKindEnum |
handleLeftMouseBeginDrag | public boolean handleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code) | | |
handleLeftMouseButtonPressed | public boolean handleLeftMouseButtonPressed(MouseEvent pEvent)(Code) | | |
handleSetCursor | public boolean handleSetCursor(ISetCursorEvent event)(Code) | | Activate the smart drag tool so we can move the edges up and down, maintaining their
horizontal alignment.
Parameters: pMouseEvent - [in] Information about the event that just occured Parameters: pTool - [out] Return a tool here to make it the current tool on the GET Parameters: bHandled - [out] true to cancel the event. This indicates we handled it. |
initLineStyle | protected void initLineStyle()(Code) | | Determines the type of line, and arrow head to draw from the
IPresentationElement's initialization string
|
initResources | public void initResources()(Code) | | |
initializePieceSelf | protected void initializePieceSelf(TSEEdge edge)(Code) | | Inializes the member m_PieceSelf
|
modelElementHasChanged | public long modelElementHasChanged(INotificationTargets targets)(Code) | | Notifier that the model element has changed, if available the changed
IFeature is passed along.
|
move | public void move(double nY, boolean bDoItNow)(Code) | | |
moveConnector | protected void moveConnector(TSConnector connector, double nY, boolean doItNow)(Code) | | Move the connector within its associated compartment
connector[in] |
onGraphEvent | public void onGraphEvent(int nKind)(Code) | | Notifies the node an event has been generated at the graph.
|
onPreDeleteGatherSelected | public void onPreDeleteGatherSelected()(Code) | | Handles the PreDeleteGatherSelected event by selecting the other end of a message to self
|
readFromArchive | public long readFromArchive(IProductArchive productArchive, IProductArchiveElement parentElement)(Code) | | Tells the draw engine to read its data to the IProductArchive
Parameters: productArchive - [in] The archive we're reading from Parameters: pEngineElement - [in] The element where this draw engine's information should exist. |
setShow | public void setShow(boolean bShow)(Code) | | |
setShowMessageType | public void setShowMessageType(int type)(Code) | | |
writeToArchive | public long writeToArchive(IProductArchive productArchive, IProductArchiveElement parentElement)(Code) | | Tells the draw engine to write its data to the IProductArchive
Parameters: productArchive - [in] The archive we're saving to Parameters: parentElement - [in] The current element, or parent for any new attributes or elements. |
Fields inherited from org.netbeans.modules.uml.ui.products.ad.drawengines.ETEdgeDrawEngine | protected static ETStrokeCache m_stokeCache(Code)(Java Doc)
|
Methods inherited from org.netbeans.modules.uml.ui.products.ad.drawengines.ETEdgeDrawEngine | public void addStandardLabelsToPullright(int kind, IMenuManager manager)(Code)(Java Doc) protected IETArrowHead createArrowHead(int nArrowheadKind)(Code)(Java Doc) public void doDraw(IDrawInfo pDrawInfo)(Code)(Java Doc) protected boolean drawArrowHead(IDrawInfo pInfo, int nArrowheadKind, ETPairT<TSConstPoint, TSConstPoint> segment)(Code)(Java Doc) protected boolean drawArrowHead(IDrawInfo pInfo, int nArrowheadKind, ETPairT<TSConstPoint, TSConstPoint> segment, TSEColor color)(Code)(Java Doc) protected boolean drawArrowHead(IDrawInfo pInfo, IETArrowHead pArrowHead, ETPairT<TSConstPoint, TSConstPoint> segment, TSEColor color)(Code)(Java Doc) public boolean drawEdge(IDrawInfo pInfo, int nStartArrowheadKind, int nEndArrowheadKind, int nLineKind)(Code)(Java Doc) protected void drawPathDigraph(IDrawInfo pInfo, IETArrowHead pFromArrow, IETArrowHead pToArrow)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public boolean getAllowReconnection()(Code)(Java Doc) public TSEColor getColor()(Code)(Java Doc) public Color getColor(int colorID)(Code)(Java Doc) public String getDrawEngineID()(Code)(Java Doc) protected IETPoint getETPoint(MouseEvent pEvent)(Code)(Java Doc) public TSEEdge getEdge()(Code)(Java Doc) public IEdgePresentation getEdgePresentationElement()(Code)(Java Doc) public TSEEdgeUI getEdgeUI()(Code)(Java Doc) protected int getEndArrowKind()(Code)(Java Doc) public ETPairT<TSConstPoint, TSConstPoint> getFromLineSegment()(Code)(Java Doc) public IEdgePresentation getIEdgePresentation()(Code)(Java Doc) public Color getLineColor()(Code)(Java Doc) protected int getLineKind()(Code)(Java Doc) protected Stroke getLineStroke(int nLineKind, float width)(Code)(Java Doc) public String getMetaTypeInitString()(Code)(Java Doc) protected IElement getNodeElement(TSENode tsNode)(Code)(Java Doc) protected IETNode getNodeFromID(int nodeID)(Code)(Java Doc) public TSGraphObject getOwnerGraphObject()(Code)(Java Doc) protected ETPairT<List, List> getPathNodeAndEdges()(Code)(Java Doc) protected int getPenWidth()(Code)(Java Doc) public String getPresentationType()(Code)(Java Doc) protected ETPairT<List, List> getReconnectEdgeBendPoints()(Code)(Java Doc) public TSEColor getSelectedColor()(Code)(Java Doc) protected IElement getSourceElement()(Code)(Java Doc) protected IETRect getSourcePtBounds()(Code)(Java Doc) protected int getStartArrowKind()(Code)(Java Doc) public TSEColor getStateColor()(Code)(Java Doc) protected IElement getTargetElement()(Code)(Java Doc) protected IETRect getTargetPtBounds()(Code)(Java Doc) public ETPairT<TSConstPoint, TSConstPoint> getToLineSegment()(Code)(Java Doc) public IETGraphObjectUI getUIAt(IETPoint pt)(Code)(Java Doc) public boolean handleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)(Java Doc) public boolean handleLeftMouseButton(MouseEvent pEvent)(Code)(Java Doc) public boolean handleLeftMouseButtonDoubleClick(MouseEvent pEvent)(Code)(Java Doc) public boolean handleLeftMouseDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)(Java Doc) public boolean handleLeftMouseDrop(IETPoint pCurrentPos, List pElements, boolean bMoving)(Code)(Java Doc) public boolean handleRightMouseButton(MouseEvent pEvent)(Code)(Java Doc) protected boolean handleStandardLabelSelection(ActionEvent e, String id)(Code)(Java Doc) protected boolean handleStandardLabelSensitivityAndCheck(String id, ContextMenuActionClass pClass)(Code)(Java Doc) public boolean handleStereotypeSensitivityAndCheck(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem, int buttonKind)(Code)(Java Doc) protected boolean hitEndPoint(IETPoint pPos)(Code)(Java Doc) protected boolean isReconnecting()(Code)(Java Doc) protected boolean isReconnectingTarget()(Code)(Java Doc) public long performDeepSynch()(Code)(Java Doc) public long postLoad()(Code)(Java Doc) protected void postSwapEdgeEnds()(Code)(Java Doc) public boolean setEdgeEnds(IETNode newSourceNode, IETNode newTargetNode)(Code)(Java Doc) public int setLineColor(String resourceName, int r, int g, int b)(Code)(Java Doc) public int setLineColor(String resourceName, Color color)(Code)(Java Doc) public boolean simpleDrawEdge(IDrawInfo pInfo, int nLineKind)(Code)(Java Doc) public long swapEdgeEnds(int nNewSourceEndID, int nNewTargetEndID)(Code)(Java Doc) public void verifyEdgeEnds()(Code)(Java Doc)
|
Methods inherited from org.netbeans.modules.uml.ui.products.ad.drawengines.ETDrawEngine | public void addActivityEdgeMenuItems(IMenuManager manager)(Code)(Java Doc) public void addAssociationAndAggregationEdgeMenuItems(IMenuManager manager, IElement pLinkElement)(Code)(Java Doc) public void addAssociationEndLabelsPullright(IMenuManager manager)(Code)(Java Doc) public void addAssociationEndSetMultiplicityMenuItems(IMenuManager manager)(Code)(Java Doc) public void addAssociationMultiLabelSelectionsPullright(IMenuManager manager, boolean bInMiddle)(Code)(Java Doc) public void addBindLabelPullright(IMenuManager manager)(Code)(Java Doc) public void addCompartment(ICompartment pCompartment)(Code)(Java Doc) public void addCompartment(ICompartment pCompartment, int nPos)(Code)(Java Doc) public void addCustomizeMenuItems(IMenuManager manager)(Code)(Java Doc) public void addInterfaceEdgeMenuItems(IMenuManager manager)(Code)(Java Doc) public void addNameLabelPullright(IDrawEngine pEngine, IMenuManager manager)(Code)(Java Doc) public void addQualifiersButton(IMenuManager manager)(Code)(Java Doc) public void addSeparatorMenuItem(IMenuManager manager)(Code)(Java Doc) public void addStereotypeLabelPullright(IDrawEngine pEngine, IMenuManager manager)(Code)(Java Doc) public void addVisibleCompartment(ICompartment compartment)(Code)(Java Doc) public void affectModelElementDeletion()(Code)(Java Doc) public long anchorMouseEvent(MouseEvent pMouseEvent, ICompartment pCompartment)(Code)(Java Doc) public IETSize calculateOptimumSize(IDrawInfo pDrawInfo, boolean bAt100Pct)(Code)(Java Doc) public void clearCompartments()(Code)(Java Doc) public void clearVisibleCompartments()(Code)(Java Doc) public Object clone()(Code)(Java Doc) public boolean copy(IDrawEngine pConstDrawEngine)(Code)(Java Doc) public ICompartment createAndAddCompartment(String sCompartmentID)(Code)(Java Doc) public ICompartment createAndAddCompartment(String sCompartmentID, int nPos)(Code)(Java Doc) public void createCompartments() throws ETException(Code)(Java Doc) protected ILabelManager createLabelManager()(Code)(Java Doc) public ContextMenuActionClass createMenuAction(String text, String menuID)(Code)(Java Doc) protected SmartDragTool createSmartDragTool(MouseEvent pEvent)(Code)(Java Doc) public void delayedDeleteAndReinitializeAllLabels()(Code)(Java Doc) public void delayedSizeToContents()(Code)(Java Doc) public void dispatchDrawToCompartments(IDrawInfo pInfo, IETRect pDeviceBounds)(Code)(Java Doc) public boolean displayColorDialog(int nKind, int pCOLORREF)(Code)(Java Doc) public boolean displayColorDialog(IColorProperty pProperty)(Code)(Java Doc) public void displayFontDialog(int pCOLORREF, Object pUserSelectedFont, boolean bUserSelectedFontOrColor)(Code)(Java Doc) public boolean displayFontDialog(IFontProperty pProperty)(Code)(Java Doc) public void displayNavigationDialog()(Code)(Java Doc) abstract public void doDraw(IDrawInfo pDrawInfo)(Code)(Java Doc) public void dumpToFile(String sFile, boolean bDumpChildren, boolean bAppendToExistingFile)(Code)(Java Doc) public boolean findCompartment(ICompartment pCompartment)(Code)(Java Doc) public ICompartment findCompartmentByCompartmentID(String sCompartmentID)(Code)(Java Doc) public ICompartment findCompartmentByTitle(String sName)(Code)(Java Doc) public ICompartment findCompartmentContainingElement(IElement pElement)(Code)(Java Doc) public IListCompartment findListCompartmentContainingCompartment(ICompartment pCompartment)(Code)(Java Doc) public IListCompartment findListCompartmentContainingElement(IElement pElement)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public ICompartment getAnchoredCompartment()(Code)(Java Doc) public IETRect getBoundingRect()(Code)(Java Doc) public boolean getCheckSyncStateDuringDraw()(Code)(Java Doc) public int getColorID(int nColorStringID)(Code)(Java Doc) public ICompartment getCompartment(int index)(Code)(Java Doc) public ICompartment getCompartmentAtPoint(IETPoint pCurrentPos)(Code)(Java Doc) public Type getCompartmentByKind(Class interfacetype)(Code)(Java Doc) public ETList<ICompartment> getCompartments()(Code)(Java Doc) public ICompartment getDefaultCompartment()(Code)(Java Doc) public IDiagram getDiagram()(Code)(Java Doc) abstract public String getDrawEngineID()(Code)(Java Doc) public String getDrawEngineMatchID()(Code)(Java Doc) public IDrawingAreaControl getDrawingArea()(Code)(Java Doc) public ETList<IDrawingProperty> getDrawingProperties()(Code)(Java Doc) public String getElementType()(Code)(Java Doc) public IEventManager getEventManager()(Code)(Java Doc) public IElement getFirstModelElement()(Code)(Java Doc) public int getFontID(int nFontStringID)(Code)(Java Doc) protected String getForcedStereotypeText()(Code)(Java Doc) public IDrawEngine getGraphicalContainer()(Code)(Java Doc) protected String getInitializationString()(Code)(Java Doc) public boolean getIsGraphicalContainer()(Code)(Java Doc) public ILabelManager getLabelManager()(Code)(Java Doc) public double getLastDrawPointWorldY()(Code)(Java Doc) public int getLastDrawPointY()(Code)(Java Doc) public int getLastResizeOriginator()(Code)(Java Doc) public IETRect getLogicalBoundingRect(boolean bIncludeLabels)(Code)(Java Doc) public IETRect getLogicalBoundingRect()(Code)(Java Doc) public String getManagerMetaType(int nManagerKind)(Code)(Java Doc) protected String getMetaTypeOfElement()(Code)(Java Doc) public int getNumCompartments()(Code)(Java Doc) protected int getNumSelectableCompartments()(Code)(Java Doc) public int getNumVisibleCompartments()(Code)(Java Doc) public IElement[] getOLEDragElements()(Code)(Java Doc) public IETGraphObjectUI getParent()(Code)(Java Doc) public ITSGraphObject getParentETElement()(Code)(Java Doc) public IGraphPresentation getPresentation()(Code)(Java Doc) protected IPresentationElement getPresentationElement()(Code)(Java Doc) abstract public String getPresentationType()(Code)(Java Doc) public boolean getReadOnly()(Code)(Java Doc) public String getResourceName(int nKind)(Code)(Java Doc) public UIResources getResources()(Code)(Java Doc) protected ICompartment getSelectableCompartment(int index)(Code)(Java Doc) public ETList<ICompartment> getSelectedCompartments()(Code)(Java Doc) public String getTaggedValuesText(IElement pElement)(Code)(Java Doc) public IETGraphObjectUI getUI()(Code)(Java Doc) protected ICompartment getVisibleCompartment(int index)(Code)(Java Doc) public int getWindow()(Code)(Java Doc) public boolean handleAccelerator(String accelerator)(Code)(Java Doc) abstract public boolean handleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)(Java Doc) abstract public boolean handleLeftMouseButton(MouseEvent pEvent)(Code)(Java Doc) abstract public boolean handleLeftMouseButtonDoubleClick(MouseEvent pEvent)(Code)(Java Doc) public boolean handleLeftMouseButtonPressed(MouseEvent pEvent)(Code)(Java Doc) abstract public boolean handleLeftMouseDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)(Java Doc) abstract public boolean handleLeftMouseDrop(IETPoint pCurrentPos, List pElements, boolean bMoving)(Code)(Java Doc) abstract public boolean handleRightMouseButton(MouseEvent pEvent)(Code)(Java Doc) public boolean handleSetCursor(ISetCursorEvent event)(Code)(Java Doc) public boolean hasSelectedCompartments()(Code)(Java Doc) public void init() throws ETException(Code)(Java Doc) public void initCompartments(IPresentationElement pElement)(Code)(Java Doc) public void initResources()(Code)(Java Doc) public long invalidate()(Code)(Java Doc) public void invalidateProvider()(Code)(Java Doc) public long invalidateRect(IETRect rect)(Code)(Java Doc) public boolean isDrawEngineValidForModelElement()(Code)(Java Doc) public boolean isInitialized()(Code)(Java Doc) protected boolean isParentDiagramReadOnly()(Code)(Java Doc) public void layout()(Code)(Java Doc) public String loadString(String key)(Code)(Java Doc) public long modelElementDeleted(INotificationTargets pTargets)(Code)(Java Doc) public long modelElementHasChanged(INotificationTargets pTargets)(Code)(Java Doc) public boolean onCharTyped(char ch)(Code)(Java Doc) public long onCompartmentCollapsed(ICompartment pCompartment, boolean bCollapsed)(Code)(Java Doc) public long onContextMenu(IProductContextMenu pContextMenu, int logicalX, int logicalY)(Code)(Java Doc) public void onContextMenu(IMenuManager manager)(Code)(Java Doc) public long onContextMenuHandleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem)(Code)(Java Doc) public void onDiscardParentETElement()(Code)(Java Doc) public void onGraphEvent(int nKind)(Code)(Java Doc) public boolean onHandleButton(ActionEvent e, String id)(Code)(Java Doc) public boolean onKeydown(int nKeyCode, int nShift)(Code)(Java Doc) public boolean onKeyup(int KeyCode, int Shift)(Code)(Java Doc) public void onResized()(Code)(Java Doc) public boolean parentDiagramIsReadOnly()(Code)(Java Doc) public long performDeepSynch()(Code)(Java Doc) protected void postInvalidate()(Code)(Java Doc) public long postLoad()(Code)(Java Doc) public boolean preHandleNameCollision(ICompartment pCompartmentBeingEdited, INamedElement pElement, INamedElement pFirstCollidingElement)(Code)(Java Doc) public long queryToolTipData(IToolTipData pToolTipData)(Code)(Java Doc) public long readFromArchive(IProductArchive pProductArchive, IProductArchiveElement pParentElement)(Code)(Java Doc) public long reinitCompartments(IPresentationElement pElement)(Code)(Java Doc) public void removeCompartment(ICompartment compartment)(Code)(Java Doc) public void removeCompartment(ICompartment compartment, boolean deleteElement)(Code)(Java Doc) public void resetGraphicalContainer()(Code)(Java Doc) public void resetToDefaultResource(String sDrawEngineName, String sResourceName, String sResourceType)(Code)(Java Doc) public void resetToDefaultResources()(Code)(Java Doc) public void resetToDefaultResources2(String sDrawEngineName)(Code)(Java Doc) public void saveColor(String sDrawEngineType, String sResourceName, int nColor)(Code)(Java Doc) public void saveColor2(IColorProperty pProperty)(Code)(Java Doc) public void saveFont(String sDrawEngineName, String sResourceName, String sFaceName, int nHeight, int nWeight, boolean bItalic, int nColor)(Code)(Java Doc) public void saveFont2(IFontProperty pProperty)(Code)(Java Doc) public IETSize scaleSize(IETSize sizeAtOneHundred, TSTransform windowTransform)(Code)(Java Doc) public void selectAllCompartments(boolean bSelected)(Code)(Java Doc) public void selectExtendCompartments(MouseEvent pEvent)(Code)(Java Doc) public long setAnchoredCompartment(ICompartment pCompartment)(Code)(Java Doc) public void setCheckSyncStateDuringDraw(boolean value)(Code)(Java Doc) public void setColorResource(int resourceKind, Color color)(Code)(Java Doc) public void setDefaultCompartment(ICompartment pCompartment)(Code)(Java Doc) public void setFontResource(int resourceKind, Font font)(Code)(Java Doc) public long setIsDirty()(Code)(Java Doc) public void setLastDrawPointWorldY(double i)(Code)(Java Doc) public void setLastDrawPointY(int i)(Code)(Java Doc) public void setLastResizeOriginator(int i)(Code)(Java Doc) public void setManagerBackpointer(IGraphObjectManager pManager)(Code)(Java Doc) public void setParent(IETGraphObjectUI pParent)(Code)(Java Doc) public void setReadOnly(boolean value)(Code)(Java Doc) public boolean setSensitivityAndCheck(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem, int buttonKind)(Code)(Java Doc) public boolean setSensitivityAndCheck(String id, ContextMenuActionClass pClass)(Code)(Java Doc) public void setupOwner()(Code)(Java Doc) public void sizeToContents()(Code)(Java Doc) public void updateColorPreferenceToCurrent(int nKind)(Code)(Java Doc) public void updateLastDrawPointWorldY(double d)(Code)(Java Doc) public void updateLastDrawPointY(double d)(Code)(Java Doc) public boolean validateNode()(Code)(Java Doc) public Dimension validateResize(int x, int y)(Code)(Java Doc) public boolean verifyDrawEngineStringID()(Code)(Java Doc) public long writeToArchive(IProductArchive pProductArchive, IProductArchiveElement pElement)(Code)(Java Doc)
|
|
|