| 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
|
Method Summary | |
public void | addToSelection() | public void | clickForPopup() | public void | clickOnCenter(int clickCount, int mouseButton, int modifiers) Click on this compartment
Parameters: clickCount - count Parameters: mouseButton - mouse button. | public void | clickOnCenter(int clickCount, int mouseButton) Click on this compartment
Parameters: clickCount - click count: 1,2 .. Parameters: mouseButton - Mouse button to click. | public void | clickOnCenter() | public void | clickOnLeftCenter(int clickCount, int mouseButton, int modifiers) Click on this compartment
Parameters: clickCount - count Parameters: mouseButton - mouse button. | public void | clickOnLeftCenter(int clickCount, int mouseButton) Click on this compartment
Parameters: clickCount - click count: 1,2 .. Parameters: mouseButton - Mouse button to click. | public void | clickOnLeftCenter() | public void | clickleftForPopup() | public static ICompartment | findCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index) | public Color | getBackgroundColor() Returns background color using standard method getFillColor provided by interface IDrawEngine
Problem is that this method returns FillColor variable for all elements. | public Color | getBorderColor() | public Point | getCenterPoint() | public ArrayList<CompartmentOperator> | getCompartments() | public ArrayList<CompartmentOperator> | getCompartments(CompartmentChooser chooser) | public DiagramElementOperator | getElement() | public Color | getFillColor() Returns Fill color using method getFillColor provided by ETNodeDrawEngine. | public Font | getFont() | public Color | getFontColor() | public Point | getLeftCenterPoint(int shift) | public Point | getLeftCenterPoint() | public Color | getLightGradientFillColor() | public String | getName() | public JPopupMenuOperator | getPopup() | public Rectangle | getRectangle() | public ICompartment | getSource() | public void | select() | public static ICompartment | waitForCompartment(DiagramElementOperator source, CompartmentChooser chooser, int index) |
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)
|
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 |
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 |
getCenterPoint | public Point getCenterPoint()(Code) | | Returns center point of this compartment
center point of this compartment |
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 |
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 |
|
|