| org.netbeans.test.umllib.DiagramOperator
All known Subclasses: org.netbeans.test.umllib.customelements.CollaborationDiagramOperator, org.netbeans.test.umllib.customelements.SequenceDiagramOperator,
DiagramOperator | public class DiagramOperator extends TopComponentOperator (Code) | | This common diagram operator
author: Alexei Mokeev |
Inner Class :public enum ZoomCustomLevel | |
Inner Class :static class DiagramComponentChooser implements ComponentChooser | |
Inner Class :static class DrawingAreaControlChooser implements ComponentChooser | |
Inner Class :class DrawingAreaChooser implements ComponentChooser | |
Method Summary | |
public JPopupMenuOperator | callMenuOnTab() call menu on its tab. | public static DiagramOperator | createDiagram(String diagramName, DiagramTypes diagramType, Node projectNode) | public void | createGenericElementOnDiagram(String name, ElementTypes elementType) | public void | createGenericElementOnDiagram(String name, ElementTypes elementType, int x, int y) | public void | createGenericElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y) | public void | createGenericElementOnDiagram(String name, ElementTypes elementType, int x, int y, SetName namer) Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. | public void | createGenericElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y, SetName namer) Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. | public void | createGenericElementOnDiagram(Node node) | public void | createGenericRelationshipOnDiagram(LinkTypes linkElementType, DiagramElementOperator fromElement, DiagramElementOperator toElement) | public LinkOperator | createLinkOnDiagram(LinkTypes linkElementType, DiagramElementOperator fromElement, DiagramElementOperator toElement) | public static Component | findDiagram(String name, Operator.StringComparator comp) | TabbedAdapter | findTabbedAdapter() Returns TabbedAdapter component from parents hierarchy. | public ArrayList<DiagramElementOperator> | getAllDiagramElements() | public DiagramElementOperator | getDiagramElement(String name) | public ArrayList<DiagramElementOperator> | getDiagramElements() | public String | getDiagramName() | public DrawingAreaOperator | getDrawingArea() | public IDrawingAreaControl | getDrawingAreaControl() | public boolean | getHasSelectedElements() | public boolean | getHasSelectedLinks() | public UMLPaletteOperator | paletter() | public DiagramElementOperator | putElementOnDiagram(String name, ElementTypes elementType) | public DiagramElementOperator | putElementOnDiagram(String name, ExpandedElementTypes elementType) | public DiagramElementOperator | putElementOnDiagram(String name, ElementTypes elementType, int x, int y) | public DiagramElementOperator | putElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y) | public DiagramElementOperator | putElementOnDiagram(String name, ElementTypes elementType, int x, int y, SetName namer) Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. | public DiagramElementOperator | putElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y, SetName namer) Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. | public void | selectZoomCustom(ZoomCustomLevel percent) Selects diagram zoom percentage using UI. | public DiagramToolbarOperator | toolbar() | public void | waitClosed() | public static Component | waitForDiagram(String name, Operator.StringComparator comp) | public void | zoomIn() | public void | zoomOut() |
WAIT_DIAGRAM_TIMEOUT | final public static long WAIT_DIAGRAM_TIMEOUT(Code) | | |
DiagramOperator | public DiagramOperator(String diagramName)(Code) | | Creates a new instance of DiagramOperator
Parameters: diagramName - Diagram name |
callMenuOnTab | public JPopupMenuOperator callMenuOnTab()(Code) | | call menu on its tab.
|
createDiagram | public static DiagramOperator createDiagram(String diagramName, DiagramTypes diagramType, Node projectNode)(Code) | | Parameters: diagramName - Parameters: diagramType - Parameters: projectNode - |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(String name, ElementTypes elementType) throws NotFoundException(Code) | | create an element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element throws: qa.uml.exceptions.NotFoundException - |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(String name, ElementTypes elementType, int x, int y) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X coordinate Parameters: y - Y coordinate throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X coordinate Parameters: y - Y coordinate throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(String name, ElementTypes elementType, int x, int y, SetName namer) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. Certain elementsshould be named in very special way throws: qa.uml.exceptions.NotFoundException - |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y, SetName namer) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. Certain elementsshould be named in very special way throws: qa.uml.exceptions.NotFoundException - |
createGenericElementOnDiagram | public void createGenericElementOnDiagram(Node node)(Code) | | Parameters: node - |
createGenericRelationshipOnDiagram | public void createGenericRelationshipOnDiagram(LinkTypes linkElementType, DiagramElementOperator fromElement, DiagramElementOperator toElement) throws NotFoundException(Code) | | Create generic relationship on diagram
Parameters: linkElementType - Link type Parameters: fromElement - Source element Parameters: toElement - target element throws: qa.uml.exceptions.NotFoundException - when source or target is not found |
findDiagram | public static Component findDiagram(String name, Operator.StringComparator comp)(Code) | | Parameters: name - Parameters: comp - |
findTabbedAdapter | TabbedAdapter findTabbedAdapter()(Code) | | Returns TabbedAdapter component from parents hierarchy.
|
getDiagramElements | public ArrayList<DiagramElementOperator> getDiagramElements()(Code) | | Returns all element from this diagram exclude NodePresentation elements
all elements from this diagram exclude NodePresentation elements |
getDiagramName | public String getDiagramName()(Code) | | Returns diagram name
diagram name |
getDrawingArea | public DrawingAreaOperator getDrawingArea()(Code) | | Returns DrawingAreaOperator for this diagram
DrawingAreaOperator for this diagram |
getDrawingAreaControl | public IDrawingAreaControl getDrawingAreaControl()(Code) | | Returns instance of IDrawingAreaControl for this diagram
instance of IDrawingAreaControl for this diagram |
getHasSelectedElements | public boolean getHasSelectedElements()(Code) | | Returns if there any selected objects on diagram
if there any selected objects on diagram |
getHasSelectedLinks | public boolean getHasSelectedLinks()(Code) | | Returns if there any selected links on diagram
if there any selected links on diagram |
paletter | public UMLPaletteOperator paletter()(Code) | | Return paletter for this diagram, activate palette
Paletter operator for this diagram |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ElementTypes elementType) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ExpandedElementTypes elementType) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ElementTypes elementType, int x, int y) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X coordinate Parameters: y - Y coordinate throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X coordinate Parameters: y - Y coordinate throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ElementTypes elementType, int x, int y, SetName namer) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. Certain elementsshould be named in very special way throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
putElementOnDiagram | public DiagramElementOperator putElementOnDiagram(String name, ExpandedElementTypes elementType, int x, int y, SetName namer) throws NotFoundException(Code) | | Put element on diagram by pressing paletter butoon and clicking on
the diagram
Parameters: name - Name for new element Parameters: elementType - Expanded Type of new element Parameters: x - X cooordinate of point where element will be created Parameters: y - Y cooordinate of point where element will be created Parameters: namer - Namer for this element. Certain elementsshould be named in very special way throws: qa.uml.exceptions.NotFoundException - when Button for the element is not found on paletter Operator for created element |
selectZoomCustom | public void selectZoomCustom(ZoomCustomLevel percent)(Code) | | Selects diagram zoom percentage using UI.
Invokes 'zoom...' diagram context menu and types specified percent text into opened 'zoom' dialog.
Parameters: ZoomCustomLevel - string value to select in Percent ComboBox |
waitClosed | public void waitClosed()(Code) | | |
waitForDiagram | public static Component waitForDiagram(String name, Operator.StringComparator comp)(Code) | | Wait for diagram
CompartmentOperator if found Parameters: comp - Parameters: name - diagramName |
zoomIn | public void zoomIn()(Code) | | zooms diagram in using 'Zoom In' context menu
|
zoomOut | public void zoomOut()(Code) | | zooms diagram in using 'Zoom Out' context menu
|
|
|