Java Doc for ETDrawEngine.java in  » IDE-Netbeans » uml » org » netbeans » modules » uml » ui » products » ad » drawengines » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » uml » org.netbeans.modules.uml.ui.products.ad.drawengines 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.uml.ui.support.viewfactorysupport.ETTransformOwner
   org.netbeans.modules.uml.ui.products.ad.drawengines.ETDrawEngine

All known Subclasses:   org.netbeans.modules.uml.ui.support.viewfactorysupport.LabelDrawEngine,  org.netbeans.modules.uml.ui.products.ad.drawengines.ETNodeDrawEngine,  org.netbeans.modules.uml.ui.products.ad.drawengines.ETEdgeDrawEngine,
ETDrawEngine
abstract public class ETDrawEngine extends ETTransformOwner implements IDrawEngine,IETContextMenuHandler,IDrawingPropertyProvider,IResourceUserHelper,Accessible(Code)

Inner Class :public class AccessibleETDrawEngine extends AccessibleContext implements AccessibleComponent,AccessibleSelection

Field Summary
final public static  intMK_BRIDGEMANAGER
    
final public static  intMK_EVENTMANAGER
    
final public static  intMK_LABELMANAGER
    
public static  intTSE_NODE_RESIZE_ORIGINAL
    
public static  intTSE_NODE_RESIZE_ORIG_INTERACTIVE
    
 AccessibleContextaccessibleContext
    
protected  IEventManagerm_EventManager
    
protected  ILabelManagerm_LabelManager
    
protected  intm_LastResizeOriginator
    
protected  DrawEngineResourceUserm_ResourceUser
    
protected  ICompartmentm_anchoredCompartment
    
 booleanm_bActiveLayout
    
 booleanm_bFindNewContainer
    
protected  booleanm_checkSyncStateDuringDraw
    
 IDrawEnginem_containerDE
    
protected  ICompartmentm_defaultCompartment
    
protected  booleanm_readOnly
    


Method Summary
public  voidaddActivityEdgeMenuItems(IMenuManager manager)
    
public  voidaddAssociationAndAggregationEdgeMenuItems(IMenuManager manager, IElement pLinkElement)
     Adds Association and Aggregation Edge specific items.
public  voidaddAssociationEndLabelsPullright(IMenuManager manager)
     Adds the Association menu items when the location is CMPK_END or CMPK_START.
public  voidaddAssociationEndSetMultiplicityMenuItems(IMenuManager manager)
     Adds the Association set multiplicity items.
public  voidaddAssociationMultiLabelSelectionsPullright(IMenuManager manager, boolean bInMiddle)
     Adds the Association menu items for controlling name, both ends and both multiplicities.
public  voidaddBindLabelPullright(IMenuManager manager)
     Adds the bind label if the edge is a derivation.
public  voidaddCompartment(ICompartment pCompartment)
    
public  voidaddCompartment(ICompartment pCompartment, int nPos)
    
public  voidaddCustomizeMenuItems(IMenuManager manager)
     Adds the menu items that are unique for packages.
public  voidaddInterfaceEdgeMenuItems(IMenuManager manager)
     Adds Interface Edge specific stuff.
public  voidaddNameLabelPullright(IDrawEngine pEngine, IMenuManager manager)
     Adds the name label if the edge has a name.
public  voidaddQualifiersButton(IMenuManager manager)
    
public  voidaddSeparatorMenuItem(IMenuManager manager)
    
public  voidaddStereotypeLabelPullright(IDrawEngine pEngine, IMenuManager manager)
     Adds the stereotype label if the edge has a stereotype.
public  voidaddVisibleCompartment(ICompartment compartment)
     Adds a compartment to the end of our list of visible compartments.
public  voidaffectModelElementDeletion()
    
public  longanchorMouseEvent(MouseEvent pMouseEvent, ICompartment pCompartment)
    
public  IETSizecalculateOptimumSize(IDrawInfo pDrawInfo, boolean bAt100Pct)
    
public  voidclearCompartments()
    
public  voidclearVisibleCompartments()
     Clears our list of visible compartments.
public  Objectclone()
    
public  booleancopy(IDrawEngine pConstDrawEngine)
    
public  ICompartmentcreateAndAddCompartment(String sCompartmentID)
     Creates and adds the compartment to our drawengine.
public  ICompartmentcreateAndAddCompartment(String sCompartmentID, int nPos)
     Creates and adds the compartment to our drawengine.
Parameters:
  sCompartmentID - The compartment class name.
public  voidcreateCompartments()
     Create and initalizes all compartments.
protected  ILabelManagercreateLabelManager()
    
public  ContextMenuActionClasscreateMenuAction(String text, String menuID)
    
protected  SmartDragToolcreateSmartDragTool(MouseEvent pEvent)
    
public  voiddelayedDeleteAndReinitializeAllLabels()
    
public  voiddelayedSizeToContents()
    
public  voiddispatchDrawToCompartments(IDrawInfo pInfo, IETRect pDeviceBounds)
    
public  booleandisplayColorDialog(int nKind, int pCOLORREF)
    
public  booleandisplayColorDialog(IColorProperty pProperty)
    
public  voiddisplayFontDialog(int pCOLORREF, Object pUserSelectedFont, boolean bUserSelectedFontOrColor)
    
public  booleandisplayFontDialog(IFontProperty pProperty)
    
public  voiddisplayNavigationDialog()
    
abstract public  voiddoDraw(IDrawInfo pDrawInfo)
    
public  voiddumpToFile(String sFile, boolean bDumpChildren, boolean bAppendToExistingFile)
    
public  booleanfindCompartment(ICompartment pCompartment)
    
public  ICompartmentfindCompartmentByCompartmentID(String sCompartmentID)
    
public  ICompartmentfindCompartmentByTitle(String sName)
    
public  ICompartmentfindCompartmentContainingElement(IElement pElement)
    
public  IListCompartmentfindListCompartmentContainingCompartment(ICompartment pCompartment)
    
public  IListCompartmentfindListCompartmentContainingElement(IElement pElement)
    
public  AccessibleContextgetAccessibleContext()
    
public  ICompartmentgetAnchoredCompartment()
    
public  IETRectgetBoundingRect()
    
public  booleangetCheckSyncStateDuringDraw()
    
public  intgetColorID(int nColorStringID)
    
public  ICompartmentgetCompartment(int index)
     Returns the compartment at the argument index.
public  ICompartmentgetCompartmentAtPoint(IETPoint pCurrentPos)
    
public  TypegetCompartmentByKind(Class interfacetype)
    
public  ETList<ICompartment>getCompartments()
    
public  ICompartmentgetDefaultCompartment()
    
public  IDiagramgetDiagram()
    
abstract public  StringgetDrawEngineID()
    
public  StringgetDrawEngineMatchID()
     This is the string to be used when looking for other similar drawengines.
public  IDrawingAreaControlgetDrawingArea()
    
public  ETList<IDrawingProperty>getDrawingProperties()
    
public  StringgetElementType()
    
public  IEventManagergetEventManager()
     Retrieves the event manager that the draw engine uses.
public  IElementgetFirstModelElement()
    
public  intgetFontID(int nFontStringID)
    
protected  StringgetForcedStereotypeText()
    
public  IDrawEnginegetGraphicalContainer()
    
protected  StringgetInitializationString()
    
public  booleangetIsGraphicalContainer()
    
public  ILabelManagergetLabelManager()
    
public  doublegetLastDrawPointWorldY()
    
public  intgetLastDrawPointY()
    
public  intgetLastResizeOriginator()
    
public  IETRectgetLogicalBoundingRect(boolean bIncludeLabels)
     The rectangle used for last drawing operation, in logical coordinates.
public  IETRectgetLogicalBoundingRect()
     Calculates the node's device coordinates given a Tom Sawyer mouse event.
public  StringgetManagerMetaType(int nManagerKind)
     Returns the metatype of the manager we should use.
protected  StringgetMetaTypeOfElement()
     Returns the meta type of the IElement this draw engine represents.
public  intgetNumCompartments()
     Returns the number of compartments.
protected  intgetNumSelectableCompartments()
     There are two categories of compartments.
public  intgetNumVisibleCompartments()
    
public  IElement[]getOLEDragElements()
    
public  IETGraphObjectUIgetParent()
    
public  ITSGraphObjectgetParentETElement()
    
public  IGraphPresentationgetPresentation()
    
protected  IPresentationElementgetPresentationElement()
     Returns the node's Presentation Element.
abstract public  StringgetPresentationType()
    
public  booleangetReadOnly()
    
public  StringgetResourceName(int nKind)
    
public  UIResourcesgetResources()
    
protected  ICompartmentgetSelectableCompartment(int index)
    
public  ETList<ICompartment>getSelectedCompartments()
    
public  StringgetTaggedValuesText(IElement pElement)
    
public  IETGraphObjectUIgetUI()
    
protected  ICompartmentgetVisibleCompartment(int index)
     Returns the visible compartment at the argument index.
public  intgetWindow()
    
public  booleanhandleAccelerator(String accelerator)
    
abstract public  booleanhandleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos)
    
abstract public  booleanhandleLeftMouseButton(MouseEvent pEvent)
    
abstract public  booleanhandleLeftMouseButtonDoubleClick(MouseEvent pEvent)
    
public  booleanhandleLeftMouseButtonPressed(MouseEvent pEvent)
    
abstract public  booleanhandleLeftMouseDrag(IETPoint pStartPos, IETPoint pCurrentPos)
    
abstract public  booleanhandleLeftMouseDrop(IETPoint pCurrentPos, List pElements, boolean bMoving)
    
abstract public  booleanhandleRightMouseButton(MouseEvent pEvent)
    
public  booleanhandleSetCursor(ISetCursorEvent event)
    
public  booleanhasSelectedCompartments()
     Does this draw engine have selected compartments.
public  voidinit()
    
public  voidinitCompartments(IPresentationElement pElement)
    
public  voidinitResources()
    
public  longinvalidate()
    
public  voidinvalidateProvider()
    
public  longinvalidateRect(IETRect rect)
    
public  booleanisDrawEngineValidForModelElement()
    
public  booleanisInitialized()
    
protected  booleanisParentDiagramReadOnly()
     Tests to determine if the associated parent diagram is readonly.
public  voidlayout()
    
public  StringloadString(String key)
    
public  longmodelElementDeleted(INotificationTargets pTargets)
    
public  longmodelElementHasChanged(INotificationTargets pTargets)
     Notifier that the model element has changed, if available the changed IFeature is passed along.
public  booleanonCharTyped(char ch)
    
public  longonCompartmentCollapsed(ICompartment pCompartment, boolean bCollapsed)
    
public  longonContextMenu(IProductContextMenu pContextMenu, int logicalX, int logicalY)
    
public  voidonContextMenu(IMenuManager manager)
    
public  longonContextMenuHandleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem)
    
public  voidonDiscardParentETElement()
    
public  voidonGraphEvent(int nKind)
    
public  booleanonHandleButton(ActionEvent e, String id)
    
public  booleanonKeydown(int nKeyCode, int nShift)
    
public  booleanonKeyup(int KeyCode, int Shift)
    
public  voidonResized()
    
public  booleanparentDiagramIsReadOnly()
    
public  longperformDeepSynch()
    
protected  voidpostInvalidate()
     Posts and invalidate to the drawing area.
public  longpostLoad()
    
public  booleanpreHandleNameCollision(ICompartment pCompartmentBeingEdited, INamedElement pElement, INamedElement pFirstCollidingElement)
    
public  longqueryToolTipData(IToolTipData pToolTipData)
    
public  longreadFromArchive(IProductArchive pProductArchive, IProductArchiveElement pParentElement)
     Restore draw engine presentation attributes from the product archive.
public  longreinitCompartments(IPresentationElement pElement)
    
public  voidremoveCompartment(ICompartment compartment)
     Remove this compartment to this list, optionally deletes its model element.
public  voidremoveCompartment(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  voidresetGraphicalContainer()
    
public  voidresetToDefaultResource(String sDrawEngineName, String sResourceName, String sResourceType)
    
public  voidresetToDefaultResources()
    
public  voidresetToDefaultResources2(String sDrawEngineName)
    
public  voidsaveColor(String sDrawEngineType, String sResourceName, int nColor)
    
public  voidsaveColor2(IColorProperty pProperty)
    
public  voidsaveFont(String sDrawEngineName, String sResourceName, String sFaceName, int nHeight, int nWeight, boolean bItalic, int nColor)
    
public  voidsaveFont2(IFontProperty pProperty)
    
public  IETSizescaleSize(IETSize sizeAtOneHundred, TSTransform windowTransform)
    
public  voidselectAllCompartments(boolean bSelected)
    
public  voidselectExtendCompartments(MouseEvent pEvent)
    
public  longsetAnchoredCompartment(ICompartment pCompartment)
    
public  voidsetCheckSyncStateDuringDraw(boolean value)
    
public  voidsetColorResource(int resourceKind, Color color)
    
public  voidsetDefaultCompartment(ICompartment pCompartment)
    
public  voidsetFontResource(int resourceKind, Font font)
    
public  longsetIsDirty()
    
public  voidsetLastDrawPointWorldY(double i)
    
public  voidsetLastDrawPointY(int i)
    
public  voidsetLastResizeOriginator(int i)
    
public  voidsetManagerBackpointer(IGraphObjectManager pManager)
    
public  voidsetParent(IETGraphObjectUI pParent)
    
public  voidsetReadOnly(boolean value)
    
public  booleansetSensitivityAndCheck(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem, int buttonKind)
    
public  booleansetSensitivityAndCheck(String id, ContextMenuActionClass pClass)
    
public  voidsetupOwner()
    
public  voidsizeToContents()
    
public  voidupdateColorPreferenceToCurrent(int nKind)
    
public  voidupdateLastDrawPointWorldY(double d)
    
public  voidupdateLastDrawPointY(double d)
    
public  booleanvalidateNode()
    
public  DimensionvalidateResize(int x, int y)
    
public  booleanverifyDrawEngineStringID()
    
public  longwriteToArchive(IProductArchive pProductArchive, IProductArchiveElement pElement)
     Saves the draw engine and compartment stuff to the product archive.

Field Detail
MK_BRIDGEMANAGER
final public static int MK_BRIDGEMANAGER(Code)



MK_EVENTMANAGER
final public static int MK_EVENTMANAGER(Code)



MK_LABELMANAGER
final public static int MK_LABELMANAGER(Code)



TSE_NODE_RESIZE_ORIGINAL
public static int TSE_NODE_RESIZE_ORIGINAL(Code)



TSE_NODE_RESIZE_ORIG_INTERACTIVE
public static int TSE_NODE_RESIZE_ORIG_INTERACTIVE(Code)



accessibleContext
AccessibleContext accessibleContext(Code)



m_EventManager
protected IEventManager m_EventManager(Code)



m_LabelManager
protected ILabelManager m_LabelManager(Code)



m_LastResizeOriginator
protected int m_LastResizeOriginator(Code)



m_ResourceUser
protected DrawEngineResourceUser m_ResourceUser(Code)



m_anchoredCompartment
protected ICompartment m_anchoredCompartment(Code)



m_bActiveLayout
boolean m_bActiveLayout(Code)



m_bFindNewContainer
boolean m_bFindNewContainer(Code)



m_checkSyncStateDuringDraw
protected boolean m_checkSyncStateDuringDraw(Code)



m_containerDE
IDrawEngine m_containerDE(Code)



m_defaultCompartment
protected ICompartment m_defaultCompartment(Code)



m_readOnly
protected boolean m_readOnly(Code)





Method Detail
addActivityEdgeMenuItems
public void addActivityEdgeMenuItems(IMenuManager manager)(Code)



addAssociationAndAggregationEdgeMenuItems
public void addAssociationAndAggregationEdgeMenuItems(IMenuManager manager, IElement pLinkElement)(Code)
Adds Association and Aggregation Edge specific items. Transform -> To Ordinary Aggregate - accelerator (O) To Composite Aggregate - accelerator (C) Remove Aggregate - accelerator (e) -------------------------------------------- Navigable - accelerator (N) Reverse Ends - acclerator (R) pContextMenu[in] The context menu we're adding to pLinkElement[in] The link element that this context menu applies to



addAssociationEndLabelsPullright
public void addAssociationEndLabelsPullright(IMenuManager manager)(Code)
Adds the Association menu items when the location is CMPK_END or CMPK_START. Show Association Name Show Role Name Show Multiplicity pContextMenu[in] The context menu about to be displayed



addAssociationEndSetMultiplicityMenuItems
public void addAssociationEndSetMultiplicityMenuItems(IMenuManager manager)(Code)
Adds the Association set multiplicity items. Set Multiplicity ->Association Name Both Role Names Both Multiplicities pContextMenu[in] The context menu about to be displayed



addAssociationMultiLabelSelectionsPullright
public void addAssociationMultiLabelSelectionsPullright(IMenuManager manager, boolean bInMiddle)(Code)
Adds the Association menu items for controlling name, both ends and both multiplicities. Show ->Association Name Both Role Names Both Multiplicities pContextMenu[in] The context menu about to be displayed bInMiddle[in] Is the context menu in the middle of the association (true), or on an end (false)



addBindLabelPullright
public void addBindLabelPullright(IMenuManager manager)(Code)
Adds the bind label if the edge is a derivation. pContextMenu[in] The context menu about to be displayed



addCompartment
public void addCompartment(ICompartment pCompartment)(Code)



addCompartment
public void addCompartment(ICompartment pCompartment, int nPos)(Code)



addCustomizeMenuItems
public void addCustomizeMenuItems(IMenuManager manager)(Code)
Adds the menu items that are unique for packages. pContextMenu[in] The context menu about to be displayed



addInterfaceEdgeMenuItems
public void addInterfaceEdgeMenuItems(IMenuManager manager)(Code)
Adds Interface Edge specific stuff. Link Type ->Aggregation Association Link End ->Navigable
Parameters:
  pContextMenu -



addNameLabelPullright
public void addNameLabelPullright(IDrawEngine pEngine, IMenuManager manager)(Code)
Adds the name label if the edge has a name. pEngine[in] The controlling draw engine pContextMenu[in] The context menu about to be displayed



addQualifiersButton
public void addQualifiersButton(IMenuManager manager)(Code)
Adds the qualifiers buttons pContextMenu[in] The context menu about to be displayed



addSeparatorMenuItem
public void addSeparatorMenuItem(IMenuManager manager)(Code)



addStereotypeLabelPullright
public void addStereotypeLabelPullright(IDrawEngine pEngine, IMenuManager manager)(Code)
Adds the stereotype label if the edge has a stereotype. pEngine[in] The controlling draw engine pContextMenu[in] The context menu about to be displayed



addVisibleCompartment
public void addVisibleCompartment(ICompartment compartment)(Code)
Adds a compartment to the end of our list of visible compartments.
Parameters:
  compartment - The compartment to be made visible



affectModelElementDeletion
public void affectModelElementDeletion()(Code)



anchorMouseEvent
public long anchorMouseEvent(MouseEvent pMouseEvent, ICompartment pCompartment)(Code)



calculateOptimumSize
public IETSize calculateOptimumSize(IDrawInfo pDrawInfo, boolean bAt100Pct)(Code)



clearCompartments
public void clearCompartments()(Code)



clearVisibleCompartments
public void clearVisibleCompartments()(Code)
Clears our list of visible compartments.



clone
public Object clone()(Code)



copy
public boolean copy(IDrawEngine pConstDrawEngine)(Code)



createAndAddCompartment
public ICompartment createAndAddCompartment(String sCompartmentID)(Code)
Creates and adds the compartment to our drawengine. The new compartment is appended to the end of the compartment list.
Parameters:
  sCompartmentID - The compartment class name. A new compartment of this type will be created. ie ArrowheadCompartment The newly created ICompartment.
See Also:   org.netbeans.modules.uml.ui.support.viewfactorysupport.IDrawEngine.createAndAddCompartment(java.lang.Stringorg.netbeans.modules.uml.ui.support.viewfactorysupport.ICompartmentint)



createAndAddCompartment
public ICompartment createAndAddCompartment(String sCompartmentID, int nPos)(Code)
Creates and adds the compartment to our drawengine.
Parameters:
  sCompartmentID - The compartment class name. A new compartment of this type will be created. ie ArrowheadCompartment
Parameters:
  nPosThe - Zero-based position within the list to insert the new compartment. If -1 the compartment is inserted at the endof the list, the list is scrolled if necessary. The newly created ICompartment.
See Also:   org.netbeans.modules.uml.ui.support.viewfactorysupport.IDrawEngine.createAndAddCompartment(java.lang.Stringorg.netbeans.modules.uml.ui.support.viewfactorysupport.ICompartmentint)



createCompartments
public void createCompartments() throws ETException(Code)
Create and initalizes all compartments. This is an empty method. It must be implemented by derivied classes to do anything useful.
throws:
  ETException -
See Also:   org.netbeans.modules.uml.ui.support.viewfactorysupport.IDrawEngine.createCompartments



createLabelManager
protected ILabelManager createLabelManager()(Code)



createMenuAction
public ContextMenuActionClass createMenuAction(String text, String menuID)(Code)



createSmartDragTool
protected SmartDragTool createSmartDragTool(MouseEvent pEvent)(Code)



delayedDeleteAndReinitializeAllLabels
public void delayedDeleteAndReinitializeAllLabels()(Code)



delayedSizeToContents
public void delayedSizeToContents()(Code)



dispatchDrawToCompartments
public void dispatchDrawToCompartments(IDrawInfo pInfo, IETRect pDeviceBounds)(Code)



displayColorDialog
public boolean displayColorDialog(int nKind, int pCOLORREF)(Code)



displayColorDialog
public boolean displayColorDialog(IColorProperty pProperty)(Code)



displayFontDialog
public void displayFontDialog(int pCOLORREF, Object pUserSelectedFont, boolean bUserSelectedFontOrColor)(Code)



displayFontDialog
public boolean displayFontDialog(IFontProperty pProperty)(Code)



displayNavigationDialog
public void displayNavigationDialog()(Code)
Displays the navigation dialog - used during doubleclicks



doDraw
abstract public void doDraw(IDrawInfo pDrawInfo)(Code)



dumpToFile
public void dumpToFile(String sFile, boolean bDumpChildren, boolean bAppendToExistingFile)(Code)



findCompartment
public boolean findCompartment(ICompartment pCompartment)(Code)



findCompartmentByCompartmentID
public ICompartment findCompartmentByCompartmentID(String sCompartmentID)(Code)



findCompartmentByTitle
public ICompartment findCompartmentByTitle(String sName)(Code)



findCompartmentContainingElement
public ICompartment findCompartmentContainingElement(IElement pElement)(Code)



findListCompartmentContainingCompartment
public IListCompartment findListCompartmentContainingCompartment(ICompartment pCompartment)(Code)



findListCompartmentContainingElement
public IListCompartment findListCompartmentContainingElement(IElement pElement)(Code)



getAccessibleContext
public AccessibleContext getAccessibleContext()(Code)



getAnchoredCompartment
public ICompartment getAnchoredCompartment()(Code)



getBoundingRect
public IETRect getBoundingRect()(Code)



getCheckSyncStateDuringDraw
public boolean getCheckSyncStateDuringDraw()(Code)



getColorID
public int getColorID(int nColorStringID)(Code)



getCompartment
public ICompartment getCompartment(int index)(Code)
Returns the compartment at the argument index.
Parameters:
  index - The index into the list of the draw engines compartments The compartment at this index, otherwise null



getCompartmentAtPoint
public ICompartment getCompartmentAtPoint(IETPoint pCurrentPos)(Code)



getCompartmentByKind
public Type getCompartmentByKind(Class interfacetype)(Code)



getCompartments
public ETList<ICompartment> getCompartments()(Code)



getDefaultCompartment
public ICompartment getDefaultCompartment()(Code)



getDiagram
public IDiagram getDiagram()(Code)



getDrawEngineID
abstract public String getDrawEngineID()(Code)



getDrawEngineMatchID
public String getDrawEngineMatchID()(Code)
This is the string to be used when looking for other similar drawengines.
Parameters:
  sID - [out,retval] The unique engine identifier



getDrawingArea
public IDrawingAreaControl getDrawingArea()(Code)



getDrawingProperties
public ETList<IDrawingProperty> getDrawingProperties()(Code)



getElementType
public String getElementType()(Code)



getEventManager
public IEventManager getEventManager()(Code)
Retrieves the event manager that the draw engine uses. The event manager that is used is determined by the return value of getManagerType().
See Also:   ETDrawEngine.getManagerType(int)
See Also:   org.netbeans.modules.uml.ui.support.viewfactorysupport.IDrawEngine.getEventManager



getFirstModelElement
public IElement getFirstModelElement()(Code)
Returns the first IElement off the presentation element



getFontID
public int getFontID(int nFontStringID)(Code)



getForcedStereotypeText
protected String getForcedStereotypeText()(Code)



getGraphicalContainer
public IDrawEngine getGraphicalContainer()(Code)
Retrieves the smallest node draw engine that graphically contains this draw engine



getInitializationString
protected String getInitializationString()(Code)



getIsGraphicalContainer
public boolean getIsGraphicalContainer()(Code)



getLabelManager
public ILabelManager getLabelManager()(Code)



getLastDrawPointWorldY
public double getLastDrawPointWorldY()(Code)



getLastDrawPointY
public int getLastDrawPointY()(Code)



getLastResizeOriginator
public int getLastResizeOriginator()(Code)



getLogicalBoundingRect
public IETRect getLogicalBoundingRect(boolean bIncludeLabels)(Code)
The rectangle used for last drawing operation, in logical coordinates.
Parameters:
  bIncludeLabels - When true, include the bounding rectangles for all the labels as well The rectangle used for last drawing operation, in logical coordinates
See Also:   org.netbeans.modules.uml.ui.support.viewfactorysupport.IDrawEngine.getLogicalBoundingRect(org.netbeans.modules.uml.core.support.umlsupport.IETRectboolean)



getLogicalBoundingRect
public IETRect getLogicalBoundingRect()(Code)
Calculates the node's device coordinates given a Tom Sawyer mouse event.



getManagerMetaType
public String getManagerMetaType(int nManagerKind)(Code)
Returns the metatype of the manager we should use. This implementation always returns an empty string. The metatype in essentialconfig.etc that defines the label manager
Parameters:
  managerType - The type of manager.



getMetaTypeOfElement
protected String getMetaTypeOfElement()(Code)
Returns the meta type of the IElement this draw engine represents. The metatype of the element this draw engine represents.



getNumCompartments
public int getNumCompartments()(Code)
Returns the number of compartments. The number of compartments



getNumSelectableCompartments
protected int getNumSelectableCompartments()(Code)
There are two categories of compartments. The first category is the visible components, which are the top level compartments that are owned by the draw engine. The visible compartments does not include children of the top level compartments. This is usally what we want getNumSelectableCompartments to return. For example the class node uses Shift-Arrow keys to navigate through the name list compartment, attribute , and operation compartments. The user can then use Up/Down keys to cycle through elements in these compartment lists.



getNumVisibleCompartments
public int getNumVisibleCompartments()(Code)



getOLEDragElements
public IElement[] getOLEDragElements()(Code)



getParent
public IETGraphObjectUI getParent()(Code)



getParentETElement
public ITSGraphObject getParentETElement()(Code)



getPresentation
public IGraphPresentation getPresentation()(Code)



getPresentationElement
protected IPresentationElement getPresentationElement()(Code)
Returns the node's Presentation Element.
Parameters:
  pElement - [out,retval] The presentation element that represents this edge draw engine



getPresentationType
abstract public String getPresentationType()(Code)



getReadOnly
public boolean getReadOnly()(Code)



getResourceName
public String getResourceName(int nKind)(Code)



getResources
public UIResources getResources()(Code)



getSelectableCompartment
protected ICompartment getSelectableCompartment(int index)(Code)



getSelectedCompartments
public ETList<ICompartment> getSelectedCompartments()(Code)



getTaggedValuesText
public String getTaggedValuesText(IElement pElement)(Code)



getUI
public IETGraphObjectUI getUI()(Code)



getVisibleCompartment
protected ICompartment getVisibleCompartment(int index)(Code)
Returns the visible compartment at the argument index.
Parameters:
  index - [in] The index into the list of the draw engines visible compartments
Parameters:
  pCompartment - [out,retval] The compartment at this index, otherwise NULL



getWindow
public int getWindow()(Code)



handleAccelerator
public boolean handleAccelerator(String accelerator)(Code)



handleLeftMouseBeginDrag
abstract public boolean handleLeftMouseBeginDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)



handleLeftMouseButton
abstract public boolean handleLeftMouseButton(MouseEvent pEvent)(Code)



handleLeftMouseButtonDoubleClick
abstract public boolean handleLeftMouseButtonDoubleClick(MouseEvent pEvent)(Code)



handleLeftMouseButtonPressed
public boolean handleLeftMouseButtonPressed(MouseEvent pEvent)(Code)



handleLeftMouseDrag
abstract public boolean handleLeftMouseDrag(IETPoint pStartPos, IETPoint pCurrentPos)(Code)



handleLeftMouseDrop
abstract public boolean handleLeftMouseDrop(IETPoint pCurrentPos, List pElements, boolean bMoving)(Code)



handleRightMouseButton
abstract public boolean handleRightMouseButton(MouseEvent pEvent)(Code)



handleSetCursor
public boolean handleSetCursor(ISetCursorEvent event)(Code)



hasSelectedCompartments
public boolean hasSelectedCompartments()(Code)
Does this draw engine have selected compartments. true if this draw engine has selected compartments



init
public void init() throws ETException(Code)



initCompartments
public void initCompartments(IPresentationElement pElement)(Code)



initResources
public void initResources()(Code)



invalidate
public long invalidate()(Code)



invalidateProvider
public void invalidateProvider()(Code)



invalidateRect
public long invalidateRect(IETRect rect)(Code)



isDrawEngineValidForModelElement
public boolean isDrawEngineValidForModelElement()(Code)
Is this draw engine valid for this model element? true if this draw engine can correctly represent the attached model element.



isInitialized
public boolean isInitialized()(Code)



isParentDiagramReadOnly
protected boolean isParentDiagramReadOnly()(Code)
Tests to determine if the associated parent diagram is readonly. true if the parent diagram is readonly



layout
public void layout()(Code)



loadString
public String loadString(String key)(Code)



modelElementDeleted
public long modelElementDeleted(INotificationTargets pTargets)(Code)



modelElementHasChanged
public long modelElementHasChanged(INotificationTargets pTargets)(Code)
Notifier that the model element has changed, if available the changed IFeature is passed along. pTargets[in] Information about what has changed



onCharTyped
public boolean onCharTyped(char ch)(Code)



onCompartmentCollapsed
public long onCompartmentCollapsed(ICompartment pCompartment, boolean bCollapsed)(Code)



onContextMenu
public long onContextMenu(IProductContextMenu pContextMenu, int logicalX, int logicalY)(Code)



onContextMenu
public void onContextMenu(IMenuManager manager)(Code)



onContextMenuHandleSelection
public long onContextMenuHandleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem)(Code)



onDiscardParentETElement
public void onDiscardParentETElement()(Code)



onGraphEvent
public void onGraphEvent(int nKind)(Code)



onHandleButton
public boolean onHandleButton(ActionEvent e, String id)(Code)



onKeydown
public boolean onKeydown(int nKeyCode, int nShift)(Code)



onKeyup
public boolean onKeyup(int KeyCode, int Shift)(Code)



onResized
public void onResized()(Code)



parentDiagramIsReadOnly
public boolean parentDiagramIsReadOnly()(Code)



performDeepSynch
public long performDeepSynch()(Code)



postInvalidate
protected void postInvalidate()(Code)
Posts and invalidate to the drawing area.



postLoad
public long postLoad()(Code)



preHandleNameCollision
public boolean preHandleNameCollision(ICompartment pCompartmentBeingEdited, INamedElement pElement, INamedElement pFirstCollidingElement)(Code)



queryToolTipData
public long queryToolTipData(IToolTipData pToolTipData)(Code)



readFromArchive
public long readFromArchive(IProductArchive pProductArchive, IProductArchiveElement pParentElement)(Code)
Restore draw engine presentation attributes from the product archive.
Parameters:
  pProductArchive - [in] The archive we're reading from
Parameters:
  pEngineElement - [in] The element where this draw engine's information should exist



reinitCompartments
public long reinitCompartments(IPresentationElement pElement)(Code)



removeCompartment
public void removeCompartment(ICompartment compartment)(Code)
Remove this compartment to this list, optionally deletes its model element. The compartments model element will not be removed from the active model.
Parameters:
  pCompartment - The compartment to remove
See Also:   ETDrawEngine.removeCompartment(ICompartment,boolean)



removeCompartment
public void removeCompartment(ICompartment compartment, boolean deleteElement)(Code)
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. By defaultthis flag is FALSE. If the model is unable to delete the element the compartment is removed anyway. Not used in DrawEngineImpl - used in list compartments.



resetGraphicalContainer
public void resetGraphicalContainer()(Code)
Clears the member variable that retains the graphical container



resetToDefaultResource
public void resetToDefaultResource(String sDrawEngineName, String sResourceName, String sResourceType)(Code)



resetToDefaultResources
public void resetToDefaultResources()(Code)



resetToDefaultResources2
public void resetToDefaultResources2(String sDrawEngineName)(Code)



saveColor
public void saveColor(String sDrawEngineType, String sResourceName, int nColor)(Code)



saveColor2
public void saveColor2(IColorProperty pProperty)(Code)



saveFont
public void saveFont(String sDrawEngineName, String sResourceName, String sFaceName, int nHeight, int nWeight, boolean bItalic, int nColor)(Code)



saveFont2
public void saveFont2(IFontProperty pProperty)(Code)



scaleSize
public IETSize scaleSize(IETSize sizeAtOneHundred, TSTransform windowTransform)(Code)



selectAllCompartments
public void selectAllCompartments(boolean bSelected)(Code)



selectExtendCompartments
public void selectExtendCompartments(MouseEvent pEvent)(Code)



setAnchoredCompartment
public long setAnchoredCompartment(ICompartment pCompartment)(Code)



setCheckSyncStateDuringDraw
public void setCheckSyncStateDuringDraw(boolean value)(Code)



setColorResource
public void setColorResource(int resourceKind, Color color)(Code)



setDefaultCompartment
public void setDefaultCompartment(ICompartment pCompartment)(Code)



setFontResource
public void setFontResource(int resourceKind, Font font)(Code)



setIsDirty
public long setIsDirty()(Code)



setLastDrawPointWorldY
public void setLastDrawPointWorldY(double i)(Code)



setLastDrawPointY
public void setLastDrawPointY(int i)(Code)



setLastResizeOriginator
public void setLastResizeOriginator(int i)(Code)



setManagerBackpointer
public void setManagerBackpointer(IGraphObjectManager pManager)(Code)



setParent
public void setParent(IETGraphObjectUI pParent)(Code)



setReadOnly
public void setReadOnly(boolean value)(Code)



setSensitivityAndCheck
public boolean setSensitivityAndCheck(IProductContextMenu pContextMenu, IProductContextMenuItem pMenuItem, int buttonKind)(Code)



setSensitivityAndCheck
public boolean setSensitivityAndCheck(String id, ContextMenuActionClass pClass)(Code)



setupOwner
public void setupOwner()(Code)



sizeToContents
public void sizeToContents()(Code)



updateColorPreferenceToCurrent
public void updateColorPreferenceToCurrent(int nKind)(Code)



updateLastDrawPointWorldY
public void updateLastDrawPointWorldY(double d)(Code)



updateLastDrawPointY
public void updateLastDrawPointY(double d)(Code)



validateNode
public boolean validateNode()(Code)



validateResize
public Dimension validateResize(int x, int y)(Code)



verifyDrawEngineStringID
public boolean verifyDrawEngineStringID()(Code)



writeToArchive
public long writeToArchive(IProductArchive pProductArchive, IProductArchiveElement pElement)(Code)
Saves the draw engine and compartment stuff to the product archive.
Parameters:
  pProductArchive - [in] The archive we're saving to
Parameters:
  pElement - [in] The current element, or parent for any new attributes or elements



Methods inherited from org.netbeans.modules.uml.ui.support.viewfactorysupport.ETTransformOwner
public void clearTransformOwner()(Code)(Java Doc)
public IETRect getBoundingRect()(Code)(Java Doc)
public IETRect getDeviceBoundingRect()(Code)(Java Doc)
public IETRect getDeviceBoundingRect(IDrawInfo info)(Code)(Java Doc)
public IETRect getDeviceBoundingRect(TSEGraphics graphics)(Code)(Java Doc)
public Rectangle getDeviceBoundingRectangle()(Code)(Java Doc)
public Rectangle getDeviceBoundingRectangle(TSEGraphics graphics)(Code)(Java Doc)
public Rectangle getDeviceBoundingRectangle(IDrawInfo drawInfo)(Code)(Java Doc)
public IETRect getDeviceBounds(TSEGraphics graphics)(Code)(Java Doc)
public IETRect getDeviceBounds(IDrawInfo drawInfo)(Code)(Java Doc)
public IETRect getLogicalBoundingRect()(Code)(Java Doc)
public IETGraphObject getObject()(Code)(Java Doc)
public IETGraphObjectUI getObjectUI()(Code)(Java Doc)
abstract public TSGraphObject getOwnerGraphObject()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.