Java Doc for DiagramElementOperator.java in  » IDE-Netbeans » uml » org » netbeans » test » umllib » 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.test.umllib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.test.umllib.DiagramElementOperator

All known Subclasses:   org.netbeans.test.umllib.customelements.ActorOperator,  org.netbeans.test.umllib.customelements.UsecaseOperator,  org.netbeans.test.umllib.customelements.LifelineOperator,  org.netbeans.test.umllib.customelements.ExpressionOperator,  org.netbeans.test.umllib.customelements.CombinedFragmentOperator,  org.netbeans.test.umllib.customelements.ClassOperator,
DiagramElementOperator
public class DiagramElementOperator extends Operator implements Actionable(Code)
This is common class for the all diagram elements
author:
   Alexei Mokeev

Inner Class :public static class DiagramElementComparator implements Comparator<C>
Inner Class :public static class ElementByVNChooser implements DiagramElementChooser
Inner Class :public static class ElementByTypeChooser implements DiagramElementChooser
Inner Class :public static class DefaultNamer implements SetName
Inner Class :public static class LabelsNamer implements SetName
Inner Class :public static class PropertyNamer implements SetName

Field Summary
final public static  longWAIT_GRAPHOBJECT_TIMEOUT
     Default delay for Diagram Element Waiter.

Constructor Summary
public  DiagramElementOperator(DiagramOperator diagramOperator, String elementVN)
     Construct DiagramElementOperator by visible name
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name.
public  DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ExpandedElementTypes elementType, int index)
     Construct DiagramElementOperator by visible name, type and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name.
public  DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ElementTypes elementType, int index)
     Construct DiagramElementOperator by visible name, type and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name.
public  DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ElementTypes elementType)
    
public  DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, int index)
     Construct DiagramElementOperator by visible name and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name.
public  DiagramElementOperator(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)
    
public  DiagramElementOperator(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements)
    
public  DiagramElementOperator(DiagramOperator diagramOperator, IETGraphObject graphObject)
    

Method Summary
public  voidaddToSelection()
    
public  voidcenter()
    
public  voidcenter(boolean selectIt, boolean deselectOthers)
    
public  voidclickForPopup()
    
public  voidclickOn(Point p, int clickCount, int mouseButton, int modifiers)
    
public  voidclickOnCenter(int clickCount, int mouseButton, int modifiers)
    
public  voidclickOnCenter(int clickCount, int mouseButton)
    
public  voidclickOnCenter()
    
public  booleanequals(Object el)
    
public static  IETGraphObjectfindGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements)
    
public static  IETGraphObjectfindGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)
    
public  ColorgetBackgroundColor()
    
public  ColorgetBorderColor()
    
public  RectanglegetBoundingRect()
    
public  PointgetCenterPoint()
    
public  DiagramOperatorgetDiagram()
    
public  RectanglegetElementRectangle()
    
public  StringgetElementType()
    
public  StringgetExpandedType()
     Returns expanded type or null if we have several subjects.
public  FontgetFont()
    
public  JPopupMenuOperatorgetGeneralPopup()
    
public  IETGraphObjectgetGraphObject()
    
public  HashSet<LinkOperator>getInLinks()
    
public  HashSet<LinkOperator>getLinks()
    
public  StringgetName()
    
public  HashSet<LinkOperator>getOutLinks()
    
public  JPopupMenuOperatorgetPopup()
    
public  ComponentgetSource()
    
public  ArrayList<String>getSubjectVNs()
    
public  StringgetType()
     Returns type or null if we have several subjects.
public  booleanisSelected()
    
public  PointmakeVisible(Point point)
     gets point inside a component and, if component is not visible centers window in this component.
public  voidmoveTo(int x, int y)
    
public  voidmoveTo(double x, double y)
    
public  voidresize(int x, int y)
    
public  voidselect()
    
public  voidselect(boolean avoidcollitionsandretry)
    
public  voidsetSize(int width, int height)
    
public  voidsetSize(double width, double height)
    
public  voidshift(int dx, int dy)
    
public  voidshift(double dx, double dy)
    
public static  booleanwaitForDeletion(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)
    
public static  IETGraphObjectwaitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements)
    
public static  IETGraphObjectwaitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)
    
public  voidwaitSelection(boolean selected)
    
public  voidwaitSelection(boolean selected, long timeout)
    

Field Detail
WAIT_GRAPHOBJECT_TIMEOUT
final public static long WAIT_GRAPHOBJECT_TIMEOUT(Code)
Default delay for Diagram Element Waiter. Real value can be changed as for the all other operators(For example via JemmyProperties)




Constructor Detail
DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, String elementVN) throws NotFoundException(Code)
Construct DiagramElementOperator by visible name
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name. Visible name is the name as you see it on a diagram
throws:
  qa.uml.exceptions.NotFoundException - when no suitable element found



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ExpandedElementTypes elementType, int index) throws NotFoundException(Code)
Construct DiagramElementOperator by visible name, type and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name. Visible name is the name as you see it on a diagram
Parameters:
  elementType - Type of element(e.g Class, Component, Actor, etc)
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when no suitable element found
See Also:   qa.uml.util.ElementTypes



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ElementTypes elementType, int index) throws NotFoundException(Code)
Construct DiagramElementOperator by visible name, type and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name. Visible name is the name as you see it on a diagram
Parameters:
  elementType - Type of element(e.g Class, Component, Actor, etc)
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when no suitable element found
See Also:   qa.uml.util.ElementTypes



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, ElementTypes elementType) throws NotFoundException(Code)

Parameters:
  diagramOperator -
Parameters:
  elementVN -
Parameters:
  elementType -
throws:
  qa.uml.exceptions.NotFoundException -



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, String elementVN, int index) throws NotFoundException(Code)
Construct DiagramElementOperator by visible name and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementVN - Element visible name. Visible name is the name as you see it on a diagram
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when no suitable element found



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index) throws NotFoundException(Code)
Construct DiagramElementOperator by custom finder and index
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementFinder - custom finder
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when no suitable element found



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements) throws NotFoundException(Code)

Parameters:
  diagramOperator -
Parameters:
  elementFinder -
Parameters:
  index -
Parameters:
  lookForAllElements -
throws:
  qa.uml.exceptions.NotFoundException -



DiagramElementOperator
public DiagramElementOperator(DiagramOperator diagramOperator, IETGraphObject graphObject)(Code)
Construct DiagramElementOperator by given graphObject
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  graphObject - given graph object




Method Detail
addToSelection
public void addToSelection()(Code)



center
public void center()(Code)



center
public void center(boolean selectIt, boolean deselectOthers)(Code)

Parameters:
  selectIt -
Parameters:
  deselectOthers -



clickForPopup
public void clickForPopup()(Code)



clickOn
public void clickOn(Point p, int clickCount, int mouseButton, int modifiers)(Code)

Parameters:
  p -
Parameters:
  clickCount -
Parameters:
  mouseButton -
Parameters:
  modifiers -



clickOnCenter
public void clickOnCenter(int clickCount, int mouseButton, int modifiers)(Code)

Parameters:
  clickCount -
Parameters:
  mouseButton -
Parameters:
  modifiers -



clickOnCenter
public void clickOnCenter(int clickCount, int mouseButton)(Code)

Parameters:
  clickCount -
Parameters:
  mouseButton -



clickOnCenter
public void clickOnCenter()(Code)



equals
public boolean equals(Object el)(Code)

Parameters:
  el -



findGraphObject
public static IETGraphObject findGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements) throws NotFoundException(Code)
Search for suitable graph object Graph object if found
Parameters:
  lookForAllElements -
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementFinder - custom finder
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when nothing suitable found



findGraphObject
public static IETGraphObject findGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index) throws NotFoundException(Code)

Parameters:
  diagramOperator -
Parameters:
  elementFinder -
Parameters:
  index -
throws:
  qa.uml.exceptions.NotFoundException -



getBackgroundColor
public Color getBackgroundColor()(Code)



getBorderColor
public Color getBorderColor()(Code)



getBoundingRect
public Rectangle getBoundingRect()(Code)
bounding rect for element



getCenterPoint
public Point getCenterPoint()(Code)
Returns center point of this diagram element Center point of this diagram element



getDiagram
public DiagramOperator getDiagram()(Code)
Return Diagram, where this element is placed Diagram, where this element is placed



getElementRectangle
public Rectangle getElementRectangle()(Code)
Wrapper for elementGraphObject.getEngine().getBoundingRect().getRectangle(); Rectangle



getElementType
public String getElementType()(Code)
Return element type Type of element



getExpandedType
public String getExpandedType()(Code)
Returns expanded type or null if we have several subjects. Should be overriden in subclasses expanded type or null if we have several subjects. Should be overriden in subclasses



getFont
public Font getFont()(Code)



getGeneralPopup
public JPopupMenuOperator getGeneralPopup()(Code)
Call popup from up-left corner of element popup



getGraphObject
public IETGraphObject getGraphObject()(Code)
Returns GraphObject for this diagram element GraphObject for this diagram element



getInLinks
public HashSet<LinkOperator> getInLinks()(Code)
Returns all incoming links All incoming links



getLinks
public HashSet<LinkOperator> getLinks()(Code)
Returns all links from and to the diagram element all links from and to the diagram element



getName
public String getName()(Code)
Returns name of element name of element



getOutLinks
public HashSet<LinkOperator> getOutLinks()(Code)
Returns all outcoming links All outcoming links



getPopup
public JPopupMenuOperator getPopup()(Code)
Call popup from central of element



getSource
public Component getSource()(Code)
We must implement this method to extend Operator, but since we are not working with Component this method always return null; null



getSubjectVNs
public ArrayList<String> getSubjectVNs()(Code)



getType
public String getType()(Code)
Returns type or null if we have several subjects. Should be overriden in subclasses type or null if we have several subjects. Should be overriden in subclasses



isSelected
public boolean isSelected()(Code)



makeVisible
public Point makeVisible(Point point)(Code)
gets point inside a component and, if component is not visible centers window in this component. The updated device point is returned
Parameters:
  point -



moveTo
public void moveTo(int x, int y)(Code)
Change element position with usage of mouse robot driver
Parameters:
  x -
Parameters:
  y -



moveTo
public void moveTo(double x, double y)(Code)

Parameters:
  x -
Parameters:
  y -



resize
public void resize(int x, int y)(Code)
The method has to resize the element by x in width and y in height CAUTION! May not work when scrolling is involved
Parameters:
  x -
Parameters:
  y -



select
public void select()(Code)



select
public void select(boolean avoidcollitionsandretry)(Code)

Parameters:
  avoidcollitionsandretry -



setSize
public void setSize(int width, int height)(Code)
Change element size with usage of mouse robot driver
Parameters:
  width -
Parameters:
  height -



setSize
public void setSize(double width, double height)(Code)

Parameters:
  width -
Parameters:
  height -



shift
public void shift(int dx, int dy)(Code)
Change element position with usage of mouse robot driver
Parameters:
  dx -
Parameters:
  dy -



shift
public void shift(double dx, double dy)(Code)

Parameters:
  dx -
Parameters:
  dy -



waitForDeletion
public static boolean waitForDeletion(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)(Code)
Wait for suitable graph object disaapearnce
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementFinder - custom finder
Parameters:
  index - index true if element disaapears and false otherwise



waitForGraphObject
public static IETGraphObject waitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements)(Code)
Wait for suitable graph object Element's GraphObject if found
Parameters:
  lookForAllElements -
Parameters:
  diagramOperator - Diagram to look for element
Parameters:
  elementFinder - custom finder
Parameters:
  index - index



waitForGraphObject
public static IETGraphObject waitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index)(Code)

Parameters:
  diagramOperator -
Parameters:
  elementFinder -
Parameters:
  index -



waitSelection
public void waitSelection(boolean selected)(Code)
Wait for selection state, timeout 5 seconds
Parameters:
  selected -



waitSelection
public void waitSelection(boolean selected, long timeout)(Code)
Wait for selection state
Parameters:
  selected -
Parameters:
  timeout -



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