| 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 DefaultNamer implements SetName | |
Inner Class :public static class LabelsNamer implements SetName | |
Inner Class :public static class PropertyNamer implements SetName | |
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 void | addToSelection() | public void | center() | public void | center(boolean selectIt, boolean deselectOthers) | public void | clickForPopup() | public void | clickOn(Point p, int clickCount, int mouseButton, int modifiers) | public void | clickOnCenter(int clickCount, int mouseButton, int modifiers) | public void | clickOnCenter(int clickCount, int mouseButton) | public void | clickOnCenter() | public boolean | equals(Object el) | public static IETGraphObject | findGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements) | public static IETGraphObject | findGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index) | public Color | getBackgroundColor() | public Color | getBorderColor() | public Rectangle | getBoundingRect() | public Point | getCenterPoint() | public DiagramOperator | getDiagram() | public Rectangle | getElementRectangle() | public String | getElementType() | public String | getExpandedType() Returns expanded type or null if we have several subjects. | public Font | getFont() | public JPopupMenuOperator | getGeneralPopup() | public IETGraphObject | getGraphObject() | public HashSet<LinkOperator> | getInLinks() | public HashSet<LinkOperator> | getLinks() | public String | getName() | public HashSet<LinkOperator> | getOutLinks() | public JPopupMenuOperator | getPopup() | public Component | getSource() | public ArrayList<String> | getSubjectVNs() | public String | getType() Returns type or null if we have several subjects. | public boolean | isSelected() | public Point | makeVisible(Point point) gets point inside a component and, if component is not visible centers window in this component. | public void | moveTo(int x, int y) | public void | moveTo(double x, double y) | public void | resize(int x, int y) | public void | select() | public void | select(boolean avoidcollitionsandretry) | public void | setSize(int width, int height) | public void | setSize(double width, double height) | public void | shift(int dx, int dy) | public void | shift(double dx, double dy) | public static boolean | waitForDeletion(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index) | public static IETGraphObject | waitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index, boolean lookForAllElements) | public static IETGraphObject | waitForGraphObject(DiagramOperator diagramOperator, DiagramElementChooser elementFinder, int index) | public void | waitSelection(boolean selected) | public void | waitSelection(boolean selected, long timeout) |
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)
|
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 |
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 |
getBackgroundColor | public Color getBackgroundColor()(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 |
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 |
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 |
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 |
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 |
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 - |
|
|