Java Doc for CompartmentOperator.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) 


java.lang.Object
   org.netbeans.test.umllib.CompartmentOperator

All known Subclasses:   org.netbeans.test.umllib.customelements.SequenceLifelineCompartment,
CompartmentOperator
public class CompartmentOperator implements Actionable(Code)
This is operator for "compartment". Compartment in ETI terms means subsection of some diagram element. For example: Attributes compartment Operations compartment Name compartment

Inner Class :public static class CompartmentByTypeChooser implements CompartmentChooser
Inner Class :public static class CompartmentByNameChooser implements CompartmentChooser
Inner Class :public static class AnyCompartmentChooser implements CompartmentChooser

Field Summary
final public static  longWAIT_COMPARTMENT_TIMEOUT
     Default delay for Compartment Waiter.
protected  ICompartmentsourceCompartment
    
protected  DiagramElementOperatorsourceElement
    

Constructor Summary
public  CompartmentOperator(DiagramElementOperator el, int index)
    
public  CompartmentOperator(DiagramElementOperator el, CompartmentTypes type)
    
public  CompartmentOperator(DiagramElementOperator el, ICompartment co)
    

Method Summary
public  voidaddToSelection()
    
public  voidclickForPopup()
    
public  voidclickOnCenter(int clickCount, int mouseButton, int modifiers)
     Click on this compartment
Parameters:
  clickCount - count
Parameters:
  mouseButton - mouse button.
public  voidclickOnCenter(int clickCount, int mouseButton)
     Click on this compartment
Parameters:
  clickCount - click count: 1,2 ..
Parameters:
  mouseButton - Mouse button to click.
public  voidclickOnCenter()
    
public  voidclickOnLeftCenter(int clickCount, int mouseButton, int modifiers)
     Click on this compartment
Parameters:
  clickCount - count
Parameters:
  mouseButton - mouse button.
public  voidclickOnLeftCenter(int clickCount, int mouseButton)
     Click on this compartment
Parameters:
  clickCount - click count: 1,2 ..
Parameters:
  mouseButton - Mouse button to click.
public  voidclickOnLeftCenter()
    
public  voidclickleftForPopup()
    
public static  ICompartmentfindCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index)
    
public  ColorgetBackgroundColor()
     Returns background color using standard method getFillColor provided by interface IDrawEngine
Problem is that this method returns FillColor variable for all elements.
public  ColorgetBorderColor()
    
public  PointgetCenterPoint()
    
public  ArrayList<CompartmentOperator>getCompartments()
    
public  ArrayList<CompartmentOperator>getCompartments(CompartmentChooser chooser)
    
public  DiagramElementOperatorgetElement()
    
public  ColorgetFillColor()
     Returns Fill color using method getFillColor provided by ETNodeDrawEngine.
public  FontgetFont()
    
public  ColorgetFontColor()
    
public  PointgetLeftCenterPoint(int shift)
    
public  PointgetLeftCenterPoint()
    
public  ColorgetLightGradientFillColor()
    
public  StringgetName()
    
public  JPopupMenuOperatorgetPopup()
    
public  RectanglegetRectangle()
    
public  ICompartmentgetSource()
    
public  voidselect()
    
public static  ICompartmentwaitForCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index)
    

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



sourceCompartment
protected ICompartment sourceCompartment(Code)



sourceElement
protected DiagramElementOperator sourceElement(Code)




Constructor Detail
CompartmentOperator
public CompartmentOperator(DiagramElementOperator el, int index) throws NotFoundException(Code)
Construct compartment by index
Parameters:
  el - Instance of DiagramElementOperator to look for compartment
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - when no suitable compartment found



CompartmentOperator
public CompartmentOperator(DiagramElementOperator el, CompartmentTypes type) throws NotFoundException(Code)
Costruct compartment by type
Parameters:
  el - Instance of DiagramElementOperator to look for compartment
Parameters:
  type - Compartemnt type.
throws:
  qa.uml.exceptions.NotFoundException - when no suitable compartment found
See Also:   qa.uml.CompartmentTypes



CompartmentOperator
public CompartmentOperator(DiagramElementOperator el, ICompartment co)(Code)
Construct compartment by compartment class
Parameters:
  el - Instance of DiagramElementOperator
Parameters:
  co - Instance of ICompartment




Method Detail
addToSelection
public void addToSelection()(Code)
Add this compartment to selection by clicking on it with CTRL pressed



clickForPopup
public void clickForPopup()(Code)
Click on this compartment by right mouse button



clickOnCenter
public void clickOnCenter(int clickCount, int mouseButton, int modifiers)(Code)
Click on this compartment
Parameters:
  clickCount - count
Parameters:
  mouseButton - mouse button. Use constants from InputEvent
Parameters:
  modifiers - Key modifiers. Use contants from KeyEvent



clickOnCenter
public void clickOnCenter(int clickCount, int mouseButton)(Code)
Click on this compartment
Parameters:
  clickCount - click count: 1,2 ..
Parameters:
  mouseButton - Mouse button to click. Use constants from InputEvent



clickOnCenter
public void clickOnCenter()(Code)
Click on this compartmnet by left mouse button



clickOnLeftCenter
public void clickOnLeftCenter(int clickCount, int mouseButton, int modifiers)(Code)
Click on this compartment
Parameters:
  clickCount - count
Parameters:
  mouseButton - mouse button. Use constants from InputEvent
Parameters:
  modifiers - Key modifiers. Use contants from KeyEvent



clickOnLeftCenter
public void clickOnLeftCenter(int clickCount, int mouseButton)(Code)
Click on this compartment
Parameters:
  clickCount - click count: 1,2 ..
Parameters:
  mouseButton - Mouse button to click. Use constants from InputEvent



clickOnLeftCenter
public void clickOnLeftCenter()(Code)
Click on this compartmnet by left mouse button



clickleftForPopup
public void clickleftForPopup()(Code)
Click on this compartment by right mouse button



findCompartment
public static ICompartment findCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index)(Code)
Search for suitable compartment
Parameters:
  source - DiagramElementOperator to look in
Parameters:
  chooser - Custom chooser
Parameters:
  index - index CompartmentOperator if found



getBackgroundColor
public Color getBackgroundColor()(Code)
Returns background color using standard method getFillColor provided by interface IDrawEngine
Problem is that this method returns FillColor variable for all elements. But 'backgroung color' changed by user is saved to different variables for different elements
look also at getFillColor() and getLightGradientFillColor() Color background color



getBorderColor
public Color getBorderColor()(Code)



getCenterPoint
public Point getCenterPoint()(Code)
Returns center point of this compartment center point of this compartment



getCompartments
public ArrayList<CompartmentOperator> getCompartments()(Code)
Return list of all sub compartmens list of sub compartmens



getCompartments
public ArrayList<CompartmentOperator> getCompartments(CompartmentChooser chooser)(Code)
Returns all sub compartments accepted by the specified chooser
Parameters:
  chooser - to be used for compartment selection list of sub compartments



getElement
public DiagramElementOperator getElement()(Code)



getFillColor
public Color getFillColor()(Code)
Returns Fill color using method getFillColor provided by ETNodeDrawEngine. Color background fill color



getFont
public Font getFont()(Code)
Returns Font of text in this compartment Font of text in this compartment



getFontColor
public Color getFontColor()(Code)
Returns Color of text in this compartment Color of text in this compartment



getLeftCenterPoint
public Point getLeftCenterPoint(int shift)(Code)
Returns left horizontal, center vertical point of this compartment
Parameters:
  shift - - shift from left border left horizontal, center vertical point of this compartment



getLeftCenterPoint
public Point getLeftCenterPoint()(Code)
Returns left horizontal, center vertical point of this compartment with default shift from left border left horizontal, center vertical point of this compartment



getLightGradientFillColor
public Color getLightGradientFillColor()(Code)
Returns Fill color using method getLightGradientFillColor provided by ETNodeDrawEngine Color light gradient background fill color



getName
public String getName()(Code)
method return name of comparment from compartment source compartmant name



getPopup
public JPopupMenuOperator getPopup()(Code)
Invokes popup menu and returns JPopupMenuOperator JPopupMenuOperator



getRectangle
public Rectangle getRectangle()(Code)
bounding rectangle for compartment



getSource
public ICompartment getSource()(Code)



select
public void select()(Code)
Click on this compartment



waitForCompartment
public static ICompartment waitForCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index) throws NotFoundException(Code)
Wait for suitable compartment
Parameters:
  source - DiagramElementOperator to look in
Parameters:
  chooser - Custom chooser
Parameters:
  index - index
throws:
  qa.uml.exceptions.NotFoundException - When now suitable compartment found CompartmentOperator if found



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.