| java.lang.Object org.netbeans.test.umllib.DiagramLabelOperator
DiagramLabelOperator | public class DiagramLabelOperator implements Actionable(Code) | | This is operator for labels.
|
Inner Class :public static class LabelComparator implements Comparator<C> | |
Inner Class :public static class LabelByTextChooser implements LabelChooser | |
Inner Class :public static class AnyLabelChooser implements LabelChooser | |
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 static IETLabel | findLabel(DiagramOperator diagramOperator, LabelChooser labelChooser, int index) | public IETRect | getBoundingRect() | public Point | getCenterPoint() | public JPopupMenuOperator | getPopup() | protected IETLabel | getSource() | public String | getText() | public boolean | isLinkName() | 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 | select() | public void | shift(int dx, int dy) | public void | shift(double dx, double dy) | public static IETLabel | waitForLabel(DiagramOperator diagramOperator, LabelChooser chooser, int index) |
WAIT_LABEL_TIMEOUT | final public static long WAIT_LABEL_TIMEOUT(Code) | | Default delay for Compartment Waiter. Real value can be changed
as for the all other operators(For example via JemmyProperties)
|
DiagramLabelOperator | public DiagramLabelOperator(DiagramOperator dia, String text) throws NotFoundException(Code) | | Constructs label by text
Parameters: dia - Instance of DiagramOperator Parameters: text - text throws: qa.uml.exceptions.NotFoundException - when no suitable label found |
DiagramLabelOperator | public DiagramLabelOperator(DiagramOperator dia, String text, int index) throws NotFoundException(Code) | | Costruct label by text and index
Parameters: dia - - current diagram operator Parameters: text - - label's text Parameters: index - - index of the label throws: qa.uml.exceptions.NotFoundException - when no suitable label found |
DiagramLabelOperator | public DiagramLabelOperator(DiagramOperator dia, LabelChooser chooser, int index) throws NotFoundException(Code) | | Costruct label by chooser and index
Parameters: dia - - current diagram operator Parameters: chooser - - label's chooser Parameters: index - - index of the label throws: qa.uml.exceptions.NotFoundException - when no suitable label found |
DiagramLabelOperator | public DiagramLabelOperator(DiagramOperator dia, IETLabel label)(Code) | | Construct label by label class
Parameters: dia - Parameters: label - |
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) | | |
findLabel | public static IETLabel findLabel(DiagramOperator diagramOperator, LabelChooser labelChooser, int index) throws NotFoundException(Code) | | Search for suitable graph object
Parameters: diagramOperator - Diagram to look for label Parameters: labelChooser - custom chooser Parameters: index - index throws: qa.uml.exceptions.NotFoundException - when nothing suitable found Graph object if found |
getBoundingRect | public IETRect getBoundingRect()(Code) | | bounding rect for label |
getCenterPoint | public Point getCenterPoint()(Code) | | Returns center point of this compartment
center point of this compartment |
getPopup | public JPopupMenuOperator getPopup()(Code) | | |
getText | public String getText()(Code) | | method return name of comparment from compartment source
compartmant name |
isLinkName | public boolean isLinkName()(Code) | | true if it's name label |
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 - |
select | public void select()(Code) | | Select label by click on center
|
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 - |
waitForLabel | public static IETLabel waitForLabel(DiagramOperator diagramOperator, LabelChooser chooser, int index)(Code) | | Wait for suitable graph object
Element's GraphObject if found Parameters: chooser - Parameters: diagramOperator - Diagram to look for element Parameters: index - index |
|
|