Method Summary |
|
public void | addActivityEdgeMenuItems(IMenuManager manager) |
public void | addAssociationAndAggregationEdgeMenuItems(IMenuManager manager, IElement pLinkElement) Adds Association and Aggregation Edge specific items. |
public void | addAssociationEndLabelsPullright(IMenuManager manager) Adds the Association menu items when the location is CMPK_END or CMPK_START. |
public void | addAssociationEndSetMultiplicityMenuItems(IMenuManager manager) Adds the Association set multiplicity items. |
public void | addAssociationMultiLabelSelectionsPullright(IMenuManager manager, boolean bInMiddle) Adds the Association menu items for controlling name, both ends and both multiplicities. |
public void | addBindLabelPullright(IMenuManager manager) Adds the bind label if the edge is a derivation. |
public void | addCompartment(ICompartment pCompartment) |
public void | addCompartment(ICompartment pCompartment, int nPos) |
public void | addCustomizeMenuItems(IMenuManager manager) Adds the menu items that are unique for packages. |
public void | addInterfaceEdgeMenuItems(IMenuManager manager) Adds Interface Edge specific stuff. |
public void | addNameLabelPullright(IDrawEngine pEngine, IMenuManager manager) Adds the name label if the edge has a name. |
public void | addQualifiersButton(IMenuManager manager) |
public void | addSeparatorMenuItem(IMenuManager manager) |
public void | addStereotypeLabelPullright(IDrawEngine pEngine, IMenuManager manager) Adds the stereotype label if the edge has a stereotype. |
public void | addVisibleCompartment(ICompartment compartment) Adds a compartment to the end of our list of visible compartments. |
public void | affectModelElementDeletion() |
public long | anchorMouseEvent(MouseEvent pMouseEvent, ICompartment pCompartment) |
public IETSize | calculateOptimumSize(IDrawInfo pDrawInfo, boolean bAt100Pct) |
public void | clearCompartments() |
public void | clearVisibleCompartments() Clears our list of visible compartments. |
public Object | clone() |
public boolean | copy(IDrawEngine pConstDrawEngine) |
public ICompartment | createAndAddCompartment(String sCompartmentID) Creates and adds the compartment to our drawengine. |
public ICompartment | createAndAddCompartment(String sCompartmentID, int nPos) Creates and adds the compartment to our drawengine.
Parameters: sCompartmentID - The compartment class name. |
public void | createCompartments() Create and initalizes all compartments. |
protected ILabelManager | createLabelManager() |
public ContextMenuActionClass | createMenuAction(String text, String menuID) |
protected SmartDragTool | createSmartDragTool(MouseEvent pEvent) |
public void | delayedDeleteAndReinitializeAllLabels() |
public void | delayedSizeToContents() |
public void | dispatchDrawToCompartments(IDrawInfo pInfo, IETRect pDeviceBounds) |
public boolean | displayColorDialog(int nKind, int pCOLORREF) |
public boolean | displayColorDialog(IColorProperty pProperty) |
public void | displayFontDialog(int pCOLORREF, Object pUserSelectedFont, boolean bUserSelectedFontOrColor) |
public boolean | displayFontDialog(IFontProperty pProperty) |
public void | displayNavigationDialog() |
abstract public void | doDraw(IDrawInfo pDrawInfo) |
public void | dumpToFile(String sFile, boolean bDumpChildren, boolean bAppendToExistingFile) |
public boolean | findCompartment(ICompartment pCompartment) |
public ICompartment | findCompartmentByCompartmentID(String sCompartmentID) |
public ICompartment | findCompartmentByTitle(String sName) |
public ICompartment | findCompartmentContainingElement(IElement pElement) |
public IListCompartment | findListCompartmentContainingCompartment(ICompartment pCompartment) |
public IListCompartment | findListCompartmentContainingElement(IElement pElement) |
public AccessibleContext | getAccessibleContext() |
public ICompartment | getAnchoredCompartment() |
public IETRect | getBoundingRect() |
public boolean | getCheckSyncStateDuringDraw() |
public int | getColorID(int nColorStringID) |
public ICompartment | getCompartment(int index) Returns the compartment at the argument index. |
public ICompartment | getCompartmentAtPoint(IETPoint pCurrentPos) |
public Type | getCompartmentByKind(Class interfacetype) |
public ETList<ICompartment> | getCompartments() |
public ICompartment | getDefaultCompartment() |
public IDiagram | getDiagram() |
abstract public String | getDrawEngineID() |
public String | getDrawEngineMatchID() This is the string to be used when looking for other similar drawengines. |
public IDrawingAreaControl | getDrawingArea() |
public ETList<IDrawingProperty> | getDrawingProperties() |
public String | getElementType() |
public IEventManager | getEventManager() Retrieves the event manager that the draw engine uses. |
public IElement | getFirstModelElement() |
public int | getFontID(int nFontStringID) |
protected String | getForcedStereotypeText() |
public IDrawEngine | getGraphicalContainer() |
protected String | getInitializationString() |
public boolean | getIsGraphicalContainer() |
public ILabelManager | getLabelManager() |
public double | getLastDrawPointWorldY() |
public int | getLastDrawPointY() |
public int | getLastResizeOriginator() |
public IETRect | getLogicalBoundingRect(boolean bIncludeLabels) The rectangle used for last drawing operation, in logical coordinates. |
public IETRect | getLogicalBoundingRect() Calculates the node's device coordinates given a Tom Sawyer mouse event. |
public String | getManagerMetaType(int nManagerKind) Returns the metatype of the manager we should use. |
protected String | getMetaTypeOfElement() Returns the meta type of the IElement this draw engine represents. |
public int | getNumCompartments() Returns the number of compartments. |
protected int | getNumSelectableCompartments() There are two categories of compartments. |
public int | getNumVisibleCompartments() |
public IElement[] | getOLEDragElements() |
public IETGraphObjectUI | getParent() |
public ITSGraphObject | getParentETElement() |
public IGraphPresentation | getPresentation() |
protected IPresentationElement | getPresentationElement() Returns the node's Presentation Element. |
abstract public String | getPresentationType() |
public boolean | getReadOnly() |
public String | getResourceName(int nKind) |
public UIResources | getResources() |
protected ICompartment | getSelectableCompartment(int index) |
public ETList<ICompartment> | getSelectedCompartments() |
public String | getTaggedValuesText(IElement pElement) |
public IETGraphObjectUI | getUI() |
protected ICompartment | getVisibleCompartment(int index) Returns the visible compartment at the argument index. |
public int | getWindow() |
public boolean | handleAccelerator(String accelerator) |
abstract public boolean | handleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos) |
abstract public boolean | handleLeftMouseButton(MouseEvent pEvent) |
abstract public boolean | handleLeftMouseButtonDoubleClick(MouseEvent pEvent) |
public boolean | handleLeftMouseButtonPressed(MouseEvent pEvent) |
abstract public boolean | handleLeftMouseDrag(IETPoint pStartPos, IETPoint pCurrentPos) |
abstract public boolean | handleLeftMouseDrop(IETPoint pCurrentPos, List pElements, boolean bMoving) |
abstract public boolean | handleRightMouseButton(MouseEvent pEvent) |
public boolean | handleSetCursor(ISetCursorEvent event) |
public boolean | hasSelectedCompartments() Does this draw engine have selected compartments. |
public void | init() |
public void | initCompartments(IPresentationElement pElement) |
public void | initResources() |
public long | invalidate() |
public void | invalidateProvider() |
public long | invalidateRect(IETRect rect) |
public boolean | isDrawEngineValidForModelElement() |
public boolean | isInitialized() |
protected boolean | isParentDiagramReadOnly() Tests to determine if the associated parent diagram is readonly. |
public void | layout() |
public String | loadString(String key) |
public long | modelElementDeleted(INotificationTargets pTargets) |
public long | modelElementHasChanged(INotificationTargets pTargets) Notifier that the model element has changed, if available the changed IFeature is passed along. |
public boolean | onCharTyped(char ch) |
public long | onCompartmentCollapsed(ICompartment pCompartment, boolean bCollapsed) |
public long | onContextMenu(IProductContextMenu pContextMenu, int logicalX, int logicalY) |
public void | onContextMenu(IMenuManager manager) |
public long | onContextMenuHandleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem) |
public void | onDiscardParentETElement() |
public void | onGraphEvent(int nKind) |
public boolean | onHandleButton(ActionEvent e, String id) |
public boolean | onKeydown(int nKeyCode, int nShift) |
public boolean | onKeyup(int KeyCode, int Shift) |
public void | onResized() |
public boolean | parentDiagramIsReadOnly() |
public long | performDeepSynch() |
protected void | postInvalidate() Posts and invalidate to the drawing area. |
public long | postLoad() |
public boolean | preHandleNameCollision(ICompartment pCompartmentBeingEdited, INamedElement pElement, INamedElement pFirstCollidingElement) |
public long | queryToolTipData(IToolTipData pToolTipData) |
public long | readFromArchive(IProductArchive pProductArchive, IProductArchiveElement pParentElement) Restore draw engine presentation attributes from the product archive. |
public long | reinitCompartments(IPresentationElement pElement) |
public void | removeCompartment(ICompartment compartment) Remove this compartment to this list, optionally deletes its model element. |
public void | removeCompartment(ICompartment compartment, boolean deleteElement) Remove this compartment to this list, optionally deletes its model element.
Parameters: pCompartment - The compartment to remove Parameters: bDeleteElement - Indicates whether the compartment's model element should be removed from the active model. |
public void | resetGraphicalContainer() |
public void | resetToDefaultResource(String sDrawEngineName, String sResourceName, String sResourceType) |
public void | resetToDefaultResources() |
public void | resetToDefaultResources2(String sDrawEngineName) |
public void | saveColor(String sDrawEngineType, String sResourceName, int nColor) |
public void | saveColor2(IColorProperty pProperty) |
public void | saveFont(String sDrawEngineName, String sResourceName, String sFaceName, int nHeight, int nWeight, boolean bItalic, int nColor) |
public void | saveFont2(IFontProperty pProperty) |
public IETSize | scaleSize(IETSize sizeAtOneHundred, TSTransform windowTransform) |
public void | selectAllCompartments(boolean bSelected) |
public void | selectExtendCompartments(MouseEvent pEvent) |
public long | setAnchoredCompartment(ICompartment pCompartment) |
public void | setCheckSyncStateDuringDraw(boolean value) |
public void | setColorResource(int resourceKind, Color color) |
public void | setDefaultCompartment(ICompartment pCompartment) |
public void | setFontResource(int resourceKind, Font font) |
public long | setIsDirty() |
public void | setLastDrawPointWorldY(double i) |
public void | setLastDrawPointY(int i) |
public void | setLastResizeOriginator(int i) |
public void | setManagerBackpointer(IGraphObjectManager pManager) |
public void | setParent(IETGraphObjectUI pParent) |
public void | setReadOnly(boolean value) |
public boolean | setSensitivityAndCheck(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem, int buttonKind) |
public boolean | setSensitivityAndCheck(String id, ContextMenuActionClass pClass) |
public void | setupOwner() |
public void | sizeToContents() |
public void | updateColorPreferenceToCurrent(int nKind) |
public void | updateLastDrawPointWorldY(double d) |
public void | updateLastDrawPointY(double d) |
public boolean | validateNode() |
public Dimension | validateResize(int x, int y) |
public boolean | verifyDrawEngineStringID() |
public long | writeToArchive(IProductArchive pProductArchive, IProductArchiveElement pElement) Saves the draw engine and compartment stuff to the product archive. |