| java.lang.Object org.netbeans.modules.uml.ui.products.ad.viewfactory.ETBaseUI
ETBaseUI | public class ETBaseUI (Code) | | author: sumitabhk |
Method Summary | |
public static void | attach(IElement modEle, String initStr, IETGraphObjectUI ui) This routine is called when a node or edge needs to be attached to an existing model element.
For example, during a drag and drop operation a model element could be dragged off of the
project tree and dropped onto the drawing area. | public static void | attachAndCreatePresentationElement(IElement pElem, String initStr, boolean bCreateEngine, IETGraphObjectUI ui) This routine is called when a node or edge needs to be attached to an existing model element.
For example, during a drag and drop operation a model element could be dragged off of the
project tree and dropped onto the drawing area. | public static IElement | create(INamespace pNamespace, String initStr, IETGraphObjectUI ui) This routine is called when a TSENodeView needs to be created from scratch. | public static void | createDrawEngine(String initStr, IETGraphObjectUI ui) | public static void | createDrawEngineOneTime(IETGraphObjectUI ui) | public static IETRect | getDeviceBounds(TSTransform transform, IETGraphObjectUI ui) | public static IETRect | getDeviceBounds(TSEGraphics graphics, IETGraphObjectUI ui) | public static IETRect | getDeviceBounds(IETGraphObjectUI ui) | public static IDrawInfo | getDrawInfo(TSEGraphics graphics, IETGraphObjectUI ui) | public static IDrawingAreaControl | getDrawingArea(IETGraphObjectUI ui) | public static IDrawingAreaControl | getDrawingArea(TSEGraphWindow graphWindow) | public static TSEGraphWindow | getGraphWindow(IETGraphObjectUI ui) | public static IETRect | getLogicalBounds(IETGraphObjectUI ui) | public static IETRect | getLogicalUIBounds(IETGraphObjectUI ui) | public static String | getMetaType(IETGraphObjectUI ui) | public static void | initializeEngine(IPresentationElement pElement, IETGraphObjectUI ui) | public static boolean | isLogicalRectOnScreen(TSEGraphWindow graphWindow, TSConstRect rect) | public static boolean | isLogicalRectOnScreen(TSEGraph graph, TSConstRect rect) | public static boolean | isLogicalRectOnScreen(TSEGraphics g, TSConstRect rect) | public static boolean | isOnTheScreen(TSEGraphics g, IETGraphObjectUI ui) | public static boolean | onCharTyped(char ch, IETGraphObjectUI ui) | public static void | onContextMenu(IMenuManager manager, IETGraphObjectUI ui) | public static void | onGraphEvent(int nKind, IETGraphObjectUI ui) | public static boolean | onKeyDown(int nKeyCode, int nShift, IETGraphObjectUI ui) | public static void | onPostAddLink(IETGraphObject newLink, boolean isFromNode, IETGraphObjectUI ui) Called to notify the node that a link has been added. | public static void | readFromArchive(IProductArchive prodArch, IProductArchiveElement archEle, IETGraphObjectUI ui) | public static void | reattach(IElement pElement, String sInitializationString, IETGraphObjectUI ui) | public static void | resetDrawEngine(String sInitializationString, IETGraphObjectUI ui) | public static void | save(IProductArchive prodArch, IETGraphObjectUI ui) | public static void | writeToArchive(IProductArchive prodArch, IProductArchiveElement archEle, IETGraphObjectUI ui) |
attach | public static void attach(IElement modEle, String initStr, IETGraphObjectUI ui)(Code) | | This routine is called when a node or edge needs to be attached to an existing model element.
For example, during a drag and drop operation a model element could be dragged off of the
project tree and dropped onto the drawing area. The drawing area activeX control calls
attach on the node so that the node can create a presentation element, attach the model element
presentation element and then create the appropriate draw engine.
Parameters: pElement - [in] The element to attach to Parameters: sInitializationString - [in] A string coming from the presentation types file telling us howto initialize |
attachAndCreatePresentationElement | public static void attachAndCreatePresentationElement(IElement pElem, String initStr, boolean bCreateEngine, IETGraphObjectUI ui)(Code) | | This routine is called when a node or edge needs to be attached to an existing model element.
For example, during a drag and drop operation a model element could be dragged off of the
project tree and dropped onto the drawing area. The drawing area activeX control calls
attach on the node so that the node can create a presentation element, attach the model element
presentation element and then create the appropriate draw engine.
This version allows you to specify if the draw engine should be created. Right now you only
specify false when reloading from a file because the .etld file is read in first and then the
.etlp. We don't want the .etld file to create an engine only to destroy it when we re-created one based on
the .etlp file.
Parameters: pElement - [in] The element to attach to Parameters: sInitializationString - [in] A string coming from the presentation types file telling us howto initialize Parameters: bCreateEngine - [in] true to create the draw engine. |
create | public static IElement create(INamespace pNamespace, String initStr, IETGraphObjectUI ui)(Code) | | This routine is called when a TSENodeView needs to be created from scratch. The user has dropped
a TS node on the tree and we need to create the appropriate model element and presentation elements and
tie them together. After all that is done look at the initialization string and create the correct engine.
|
createDrawEngine | public static void createDrawEngine(String initStr, IETGraphObjectUI ui)(Code) | | Creates a drawing engine based on the initialization string
Parameters: szInitializationString - [in] The initialization string used to create the engine |
getMetaType | public static String getMetaType(IETGraphObjectUI ui)(Code) | | Returns the type of model element to create based on the initialization string
The metatype that should be created when this graph object is created. |
isLogicalRectOnScreen | public static boolean isLogicalRectOnScreen(TSEGraphWindow graphWindow, TSConstRect rect)(Code) | | |
isLogicalRectOnScreen | public static boolean isLogicalRectOnScreen(TSEGraph graph, TSConstRect rect)(Code) | | |
isLogicalRectOnScreen | public static boolean isLogicalRectOnScreen(TSEGraphics g, TSConstRect rect)(Code) | | |
onPostAddLink | public static void onPostAddLink(IETGraphObject newLink, boolean isFromNode, IETGraphObjectUI ui)(Code) | | Called to notify the node that a link has been added.
Parameters: pNewLink - [in] The link about to be added Parameters: bIsFromNode - [in] true if this is the from node. |
|
|