Method Summary |
|
public void | addAssociatedDiagram(String sDiagramXMIID) |
public void | addAssociatedDiagram2(IProxyDiagram pDiagram) |
public void | addAssociatedElement(String sTopLevelElementXMIID, String sModelElementXMIID) |
public void | addAssociatedElement2(IElement pElement) |
public void | addDrawingAreaToolSelectionSink(IDrawingAreaSelectStateEnteredSink drawingAreaSelectStateEnteredListener) Adds listener to listen when drawing area changes to 'select' state. |
public TSEdge | addEdge(String edgeInitString, TSNode pSourceNode, TSNode pTargetNode, boolean bSelect, boolean bDeselectAllOthers) Adds an edge to the diagram. |
public TSEdge | addEdge(String edgeInitString, TSNode pSourceNode, TSNode pTargetNode, boolean bSelect, boolean bDeselectAllOthers, IElement elementToAssignToEdge) Adds an edge to the diagram.
Parameters: edgeInitString - The initialization string for the edge. Parameters: pSourceNode - The source for the edge. Parameters: pTargetNode - The target for the edge. Parameters: bSelect - Should we select this new graph object? Parameters: bDeselectAllOthers - Should we deselect all other objects? Parameters: pElementToAssignToEdge - The element to assign to the edge The created edge. |
public ETEdge | addEdgeForType(String metaType, ETNode sourceNode, ETNode targetNode, boolean bSelected, boolean bDeselectAllOthers) Adds an edge to the diagram. |
public ETNode | addNode(IElement element, IETPoint pt) Adds a node to the diagram.
Parameters: nodeInitString - The initialization string for the node. Parameters: location - The center location for the node. Parameters: bSelect - Should we select this new graph object? Parameters: bDeselectAllOthers - Should we deselect all other objects? Parameters: pElementToAssignToNode - The element to assign the node to The created node. |
public TSNode | addNode(String nodeInitString, IETPoint location, boolean bSelect, boolean bDeselectAllOthers) Adds a node to the diagram. |
public TSNode | addNode(String nodeInitString, IETPoint location, boolean bSelect, boolean bDeselectAllOthers, IElement pElementToAssignToNode) Adds a node to the diagram and assigns that node to the incoming IElement. |
public ETNode | addNodeForType(String metaDataType, IETPoint location, boolean bSelect, boolean bDeselectAllOthers) Adds a node to the diagram. |
public void | addPresentationElementToTrackBar(IPresentationElement pElement) |
public void | addReadWriteItem(IETGraphObject pItem) Adds an item to the ETL read/write list. |
public boolean | alignBottom() Align selected elements to the bottom position of the first selected element. |
public boolean | alignHorizontalCenter() Align selected elements horizontally to the center position of the first selected element. |
public boolean | alignLeft() Align selected elements to the left position of the first selected element. |
public boolean | alignRight() Align selected elements to the right position of the first selected element. |
public boolean | alignTop() Align selected elements to the top position of the first selected element. |
public boolean | alignVerticalCenter() Align selected elements vertically to the cener position of the first selected element. |
public void | beginEditContext(ICompartment pCompartment) |
public void | beginOLEDrag(TSGraphObject graphObject) Begins dragging all selected elements on the graphObject, or all selected elements on all selected graphObjects if NULL. |
public void | centerPresentationElement(IPresentationElement pPresentationElement, boolean bSelectIt, boolean bDeselectAllOthers) Centers the drawing area on the presentation element. |
public void | centerPresentationElement2(String sXMIID, boolean bSelectIt, boolean bDeselectAllOthers) Centers the drawing area on the presentation element with this XMIID. |
public void | changeEdgeDescription(String newVal) Changes the edge description without changing the current tool. |
public void | clearClipboard() |
public void | copy() |
public void | crossDiagramPaste(java.awt.Point location) |
public void | cut() |
public void | delayedLayoutStyle(int nLayoutStyle, boolean bIgnoreContainment) |
public void | deleteChildGraph(TSGraphObject pGraphObject) |
public void | deleteSelected(boolean bAskUser) |
public IETPoint | deviceToLogicalPoint(IETPoint pDevice) Transforms a point from device coordinates to logical coordinates. |
public IETPoint | deviceToLogicalPoint(int x, int y) Transforms a point from device coordinates to logical coordinates. |
public IETRect | deviceToLogicalRect(IETRect pDevice) Transforms a rect from device coordinates to logical coordinates. |
public IETRect | deviceToLogicalRect(double left, double top, double width, double height) Transforms a rect from device coordinates to logical coordinates. |
public void | elementDeleted(INotificationTargets pTargets) Alerts the nodes attached to this model element of changes. |
public void | elementModified(INotificationTargets pTargets) Alerts the nodes attached to this model element of changes. |
public void | elementTransformed(IClassifier classifier) Alerts the nodes attached to this model element of the transformation. |
public void | endEditContext() |
public void | endOnDrawZoom() Tells the drawing area that on draw has ended. |
public void | enterMode(int nDrawingToolKind) |
public void | enterModeFromButton(String sButtonID) Puts the drawing area into a specific mode based on the sButtonID. |
public void | executeRelationshipDiscovery() Executes the Relationship Disovery Command. |
public void | executeStackingCommand(int pStackingCommand, boolean pRedraw) Execute this stacking command. |
public void | executeStackingCommand(IPresentationElement pPresentationElement, int pStackingCommand, boolean pRedraw) Execute this stacking command on just this object. |
public void | executeStackingCommand(ETList<IPresentationElement> pPresentationElements, int pStackingCommand, boolean pRedraw) Execute this stacking command on this list of objects. |
public IPresentationElement | findPresentationElement(String sXMLID) |
public void | fireDrawingAreaContextMenuSelected(IProductContextMenu contextMenu, IProductContextMenuItem selectedItem) Fires an event out the interface saying that a context menu button has been selected. |
public void | fireSelectEvent(TSGraphObject pGraphObject) This method just fires the selection notification it doesn't change the state of the graph object. |
public void | fireSelectEvent(List pSelectedGraphObjs) |
public void | fireTooltipEvent(IPresentationElement pPE, IToolTipData pTooltip) Let folks know that tooltips are about to be displayed. |
public void | fireUnselectEvent(TSGraphObject pGraphObject) This method just fires the deslection notification it doesn't change the state of the graph object. |
public void | fitInWindow() Fit the current diagram to the window. |
public String | getAlias() Get/Set the alias of this drawing. |
public ETList<IPresentationElement> | getAllByType(String sType) |
public ETList<IPresentationElement> | getAllEdgesViaRect(IETRect pRect, boolean bTouchingRect) Returns all the edge presentation elements contained in or touching the input rectangle. |
public ETList<IPresentationElement> | getAllElementsByDrawEngineType(String sType) |
public ETList<IElement> | getAllElementsByType(String sType) |
public ETList<TSObject> | getAllGraphObjects() Returns all the graph objects. |
public ETList<IPresentationElement> | getAllItems() Returns a list of all the items. |
public ETList<IPresentationElement> | getAllItems(String topLevelId, String meid) |
public ETList<IPresentationElement> | getAllItems2(IElement pModelElement) Returns a list of all the items that represent the IElement. |
public ETList<IElement> | getAllItems3() Returns a list of all the model elements on the diagram. |
public ETList<IETGraphObject> | getAllItems4() Returns a list of all the product elements on the diagram. |
public ETList<IETLabel> | getAllItems5() Returns a list of all the product labels on the diagram. |
public ETList<IETGraphObject> | getAllItems6() Returns a list of all the product graph objects on the diagram. |
public ETList<IPresentationElement> | getAllNodeItems(IElement pModelElement) Returns a list of all the node presentation elements that represent the IElement. |
public ETList<IPresentationElement> | getAllNodesViaRect(IETRect pRect, boolean bTouchingRect) Returns all the node presentation elements contained in or touching the input rectangle. |
public boolean | getAreTooltipsEnabled() |
public ETList<IProxyDiagram> | getAssociatedDiagrams() |
public ETList<IElement> | getAssociatedElements() |
public TSEGraph | getCurrentGraph() Returns the current graph. |
public TSGraphManager | getCurrentGraphManager() Returns the current graph manager. |
public double | getCurrentZoom() What is the current zoom of the diagram. |
public IDiagram | getDiagram() |
public IDiagramEngine | getDiagramEngine() |
public int | getDiagramKind() Get/Set the type of this drawing. |
public String | getDiagramKind2() Get/Set the type of this drawing. |
public int | getDiagramWindowHandle() Returns the HWND to the drawing area. |
public String | getDocumentation() Sets / Gets the documentation for this diagram. |
public IDrawingAreaEventDispatcher | getDrawingAreaDispatcher() |
public String | getEdgeDescription() Set the view description for edges. |
public ETPairT<Double, Double> | getExtremeZoomValues() Get the extreme values for the zoom. |
public String | getFilename() |
public TSGraphObject | getGraphObjectAtMouse(int logicalX, int logicalY) |
public ADGraphWindow | getGraphWindow() |
public int | getGridSize() |
public int | getGridType() |
public boolean | getHasChildGraph(TSNode pNode) |
public boolean | getHasParentGraph() |
public boolean | getHasSelected(boolean bDeep) |
public boolean | getHasSelectedEdges(boolean bDeep) |
public boolean | getHasSelectedLabels(boolean bDeep) |
public boolean | getHasSelectedNodes(boolean bDeep) |
public boolean | getIsDirty() |
public boolean | getIsDisplayed(IElement pModelElement) Returns true if the model element is displayed in the diagram. |
public boolean | getIsGraphPreferencesDialogOpen() Is the graph preferences window open. |
public boolean | getIsLayoutPropertiesDialogOpen() Is the layout properties window open. |
public boolean | getIsOverviewWindowOpen() Is the overview window open. |
public int | getLastSelectedButton() Used to set sticky buttons. |
public boolean | getLayoutRunning() Is the diagram currently undergoing layout. |
public int | getLayoutStyle() Set/Get the current layout style. |
public IETPoint | getMidPoint(TSEdge pEdge) Gets the mid point of the edge. |
public boolean | getModeLocked() Get/Set the locked state for the current mode. |
public IElement | getModelElement() |
public String | getName() Get/Set the name of this drawing. |
public String | getNameWithAlias() Sets / Gets the name or alias of this element. |
public INamespace | getNamespace() |
public INamespace | getNamespaceForCreatedElements() Returns the the namespace to use when elements are created on the diagram. |
public String | getNodeDescription() Set the view description. |
public IETRect | getOverviewWindowRect() Returns the window rect of the overview window, if it is open. |
public Frame | getOwnerFrame() |
public boolean | getPopulating() |
public String | getPreferenceValue(String sPath, String sName) The drawing area can cache up preferences. |
public IPresentationTypesMgr | getPresentationTypesMgr() |
public IProductArchive | getProductArchive() |
public IProject | getProject() |
public IProxyDiagram | getProxyDiagram() |
public String | getQualifiedName() Retrieves the fully qualified name of the element. |
public boolean | getReadOnly() |
public ICoreRelationshipDiscovery | getRelationshipDiscovery() |
public ADDrawingAreaResourceBundle | getResources() |
public ETList<IPresentationElement> | getSelected() Returns a list of the selected items. |
public ETList<IETGraphObject> | getSelected2() Returns a list of the selected items (nodes and edges). |
public ETList<IETGraphObject> | getSelected3() Returns a list of the selected items (nodes, edges and labels). |
public ETList<IElement> | getSelected4() Returns a list of the selected items as IETElements. |
public ETList<IPresentationElement> | getSelectedByType(String sType) Returns a list of the selected items that are of the indicated type (ie Class). |
public ETList<IETLabel> | getSelectedLabels() Returns a list of the selected labels. |
public String | getSelectedPaletteButton() |
public boolean | getShowGrid() |
public JToolBar | getToolbar() |
public Object | getTrackBar() |
public int | getWindowHandle() Returns the HWND to the GET. |
public void | goToChildGraph(TSNode pNode) |
public void | goToParentGraph() |
public void | graphPreferencesDialog(boolean bShow) Show/Close the graph preferences window. |
public void | handleDeepSyncBroadcast(IElement[] pElements, boolean bSizeToContents) |
public boolean | handleKeyDown(int nKeyCode, int nShift, boolean bAskUserAboutDelete) Handles keystrokes, including VK_DELETE which does deletions from the GET. |
public boolean | hasChildren(IPresentationElement pPE, boolean bHidden) |
public long | hasEdges(boolean bHasEdges) |
public long | hasGraphObjects(boolean bHasObjects) |
public long | hasLabels(boolean bHasLabels) |
public long | hasNodes(boolean bHasNodes) |
public boolean | hasParents(IPresentationElement pPE, boolean bHidden) |
public void | hide(IPresentationElement pPE, int numLevels, boolean bChildren) Hide 'num' number of children levels for the input node. |
public void | immediatelySetLayoutStyle(int nLayoutStyle, boolean bSilent) Immediately sets the layout style. |
public void | initializeNewDiagram(INamespace pNamespace, String sName, int pKind) Initialize a newly created diagram. |
public void | invertSelection() Inverts the selected objects. |
public boolean | isAllowedOnDiagram(IElement pElement) |
public boolean | isAssociatedDiagram(String sDiagramXMIID) |
public boolean | isAssociatedDiagram2(IProxyDiagram pDiagram) |
public boolean | isAssociatedElement(String sModelElementXMIID) |
public boolean | isAssociatedElement2(IElement pElement) |
public boolean | isAutoFitInWindow() |
public boolean | isFocused() Returns true if the diagram is the focus owner; false otherwise. |
public boolean | isSame(IDiagram pDiagram) |
public boolean | isStackingCommandAllowed(int pStackingCommand) Does the stacking command nStackingCommand make sense? Used for update of stacking order buttons. |
public boolean | itemsOnClipboard() |
public void | killTooltip() Kills the tooltip if it happens to be up. |
public void | layoutPropertiesDialog(boolean bShow) Show/Close the layout property window. |
public int | load(String sFilename, boolean fitToZoom) Load this diagram from a .etl file. |
public void | loadPrintSetupDialog() |
public IETPoint | logicalToDevicePoint(IETPoint pLogical) Transforms a point from logical coordinates to device coordinates. |
public IETPoint | logicalToDevicePoint(double x, double y) Transforms a point from logical coordinates to device coordinates. |
public IETRect | logicalToDeviceRect(IETRect pLogical) Transforms a rect from logical coordinates to device coordinates. |
public IETRect | logicalToDeviceRect(double left, double top, double right, double bottom) Transforms a rect from logical coordinates to device coordinates. |
public void | onCustomZoom() |
public void | onDrop(DropTargetDropEvent event, TSEObject graphObject) |
public void | onGraphEvent(int pGraphEventKind, IETPoint pStartPoint, IETPoint pEndPoint, ETList<IETGraphObject> affectedObjects) |
public void | onInteractiveObjCreated(TSEObjectUI ui) |
public void | onMoveBackward() |
public void | onMoveForward() |
public void | onMoveToBack() |
public void | onMoveToFront() |
public void | overviewWindow(boolean bShowIt) Show/Hide the overview window. |
public void | paste() |
public void | postAddObject(ITSGraphObject graphObj, boolean resize) |
public void | postDelayedAction(IDelayedAction pAction) Posts a delayed action to the diagram. |
public void | postDeletePresentationElement(IPresentationElement pPE) Posts a message to delete this IPresentationElement. |
public void | postDeletePresentationElement(TSGraphObject pGraphObject) Posts a message to delete this graph object. |
public void | postEditLabel(ILabelPresentation pPE) |
public void | postInvalidate(IPresentationElement pPresentationElement) |
public void | postSelectEvent() |
public void | postSimpleDelayedAction(int nKind) |
public void | postSimplePresentationDelayedAction(IPresentationElement pPE, int nKind) |
public void | postSimplePresentationDelayedAction(ETList<IPresentationElement> pPEs, int nKind) |
public void | preClose() Allows the drawing area control to perform some cleanup before the diagram
is actually closed. |
public boolean | preferencesChanged(IPropertyElement[] pProperties) One or more drawing preferences has been changed, update the diagram with the new preference values. |
public void | printGraph(boolean bShowDialog) |
public void | printPreview(String sTitle, boolean bCanMoveParent) |
public IElement | processOnDropElement(IElement pElementBeingDropped) |
public void | pumpMessages(boolean bJustDrawingMessages) |
public void | questionUserAboutNameCollision(ICompartment pCompartmentBeingEdited, INamedElement pElement, String sProposedName, ETList<INamedElement> pCollidingElements, IResultCell pCell) |
public void | receiveBroadcast(IBroadcastAction pAction) Receives notification of a broadcast. |
public boolean | reconnectLink(IPresentationElement pLink, IPresentationElement pOldNode, IPresentationElement pNewNode) Try to reconnect the link from pOldNode to pNewNode. |
public void | refresh(boolean bPostMessage) |
public void | refreshRect(IETRect pRefreshRect) |
public void | removeAssociatedDiagram(String sDiagramXMIID) |
public void | removeAssociatedDiagram2(IProxyDiagram pDiagram) |
public void | removeAssociatedElement(String sTopLevelElementXMIID, String sModelElementXMIID) |
public void | removeAssociatedElement2(IElement pElement) |
public void | removeElements(ETList<IPresentationElement> pItemsToRemove) Removes these presentation elements. |
public void | resetDrawEngine(IETGraphObject pETElement, String sNewInitString) Tells the product element to reinitialize the draw engine based on the init string. |
public void | resetDrawEngine2(IETGraphObject pETElement) Tells the product element to reinitialize the draw engine. |
public boolean | resizeDimensions() Resizes elements with custom dimensions. |
public void | save() Save this diagram. |
public boolean | saveAsGraphic(String sFilename, int nKind) Saves the diagram as a BMP, EMF or JPG file. |
public IGraphicExportDetails | saveAsGraphic2(String sFilename, int nKind) Saves the diagram as a BMP, EMF or JPG file. |
public IGraphicExportDetails | saveAsGraphic2(String sFilename, int nKind, double scale) |
public void | selectAll(boolean bSelect) |
public void | selectAllSimilar() |
public void | selectAndFireEvents(TSGraphObject pGraphObject, boolean bSelect, boolean bDeselectAllOthers) Selects the graph object and fires the events. |
public void | setAlias(String value) Get/Set the alias of this drawing. |
public void | setDiagramKind(int value) Get/Set the type of this drawing. |
public void | setDiagramKind2(String value) Get/Set the type of this drawing. |
public void | setDocumentation(String value) Sets / Gets the documentation for this diagram. |
public void | setEdgeDescription(String value) Set the view description for edges. |
public void | setEditCompartment(ETCompartment editCtrl) |
public void | setEnableTooltips(boolean bEnable) Enable/Disable tooltips. |
public void | setFocus() Causes the diagram to take focus. |
public void | setGridSize(int value) |
public void | setGridType(int value) |
public void | setIsDirty(boolean value) |
public void | setLastSelectedButton(int value) Used to set sticky buttons. |
public void | setLayoutStyle(int value) Set/Get the current layout style. |
public void | setLayoutStyleSilently(int value) Set/Get the current layout style - this one does the layout without asking the user if its ok. |
public void | setModeLocked(boolean value) Get/Set the locked state for the current mode. |
public void | setModelElement(IElement value) |
public void | setName(String value) Get/Set the name of this drawing. |
public void | setNameWithAlias(String value) Sets / Gets the name or alias of this element. |
public void | setNamespace(INamespace value) |
public void | setNodeDescription(String value) Set the view description. |
public void | setOnDrawZoom(double nOnDrawZoom) During draw the edges/links override the zoom - this happens during print preview and the overview window. |
public void | setOverviewWindowRect(int nLeft, int nTop, int nWidth, int nHeight) Sets the window rect of the overview window, if it is open. |
public void | setPopulating(boolean busy) |
public void | setReadOnly(boolean value) |
public void | setSelectedPaletteButton(String buttonId) |
public void | setShowDefaultToolbar(boolean bShow) |
public void | setShowGrid(boolean value) |
public void | showImageDialog() Show/Close the image dialog.. |
public void | sizeToContents(boolean bJustSelectedElements) Resizes the elements (selected or all) to their contents. |
public void | sizeToContentsWithTrackBar(IPresentationElement pElement) |
public ETList<IPresentationElement> | sortNodesLeftToRight(ETList<IPresentationElement> pUnsortedList) Sorts the nodes left to right. |
public void | switchToDefaultState() |
public void | syncElements(boolean bOnlySelectedElements) Sync the selected (or all) elements. |
public void | transform(IETGraphObject pETElement, String sToElement) Transforms the IETElement. |
public void | unfoldNode(TSNode pCurrentNode) |
public void | unhide(IPresentationElement pPE, int numLevels, boolean bChildren) Unhide 'num' number of parent levels for the input node. |
public void | updateSecondaryWindows() |
public IDiagramValidationResult | validateDiagram(boolean bOnlySelectedElements, IDiagramValidation pDiagramValidation) Validates the diagram. |
public void | zoom(double nScaleFactor) Zoom the diagram. |
public void | zoomIn() Zoom in. |
public void | zoomOut() Zoom out. |