Java Doc for GraphManager.java in  » Workflow-Engines » JaWE » org » enhydra » jawe » components » graph » 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 » Workflow Engines » JaWE » org.enhydra.jawe.components.graph 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.jawe.components.graph.GraphManager

GraphManager
public class GraphManager implements Serializable(Code)
Class intended to serve as a control center for creation, removal, resizing and changing position of Participants as well as for doing the same things with Activity objects and Transitions. Class manages this actions in such a way that undoing of operations are possible. It incorporates multiple view and model changes into one by doing them virtually, and after all changes are done, in interaction with JaWEGraphModel class applies this changes so that undo is possible. Instance of this class is joined to to all objects of classes derived from Graph class.

This class also handles the relationships between visual and logical representation of workflow graph.

When reading a package from an XML file, this class creates imported objects and establishes relationship between graph objects (classes within jawe and jawe.graph package) and 'graph logic' objects ( classes within jawe.xml package).
author:
   Sasa Bojanic
author:
   Miroslav Popov



Field Summary
protected  booleanpLoaded
    

Constructor Summary
public  GraphManager(Graph g)
     Creates new workflow manager for given graph.

Method Summary
public  ListaddOrRemoveBreakPoint(GraphTransitionInterface gtra, Point p, boolean toAdd)
    
public  voidarrangeActivityPosition(Activity act)
    
public  voidarrangeBubblePosition(ExtendedAttribute ea, GraphParticipantInterface newPar)
    
protected  voidarrangeParticipantHorizontally(Object par, Map propertyMap, ParentMap parentMap)
    
protected  voidarrangeParticipantRelationsOnly(Map propertyMap, ParentMap parentMap)
    
protected  voidarrangeParticipantVertically(Object par, Map propertyMap, ParentMap parentMap)
     Resizing participant par and it's parents to appropriate height, and translating other participants accordingly to changes of participant par. The size's and positions are calculated considering propertyMap and parentMap - which means for future children state, and for bounds that are constantly changed during other calculations.
protected  voidarrangeParticipants(Map propertyMap, ParentMap parentMap)
     Arranges participants according to the given property and parent maps.
protected  voidarrangeParticipantsHorizontally(Object[] pars, Map propertyMap, ParentMap parentMap)
    
protected  voidarrangeParticipantsVertically(Object[] pars, Map propertyMap, ParentMap parentMap)
     Arranging heights and positions of given participants and positions of participants that must be translated due to a change of given participants.
protected  voidchangeBounds(Object cell, Map propertyMap, Rectangle r)
     Replaces bounding rectangle of given cell in propertyMap object with rectangle r if cell is contained within the propertyMap object, otherwise adds new entry to the propertyMap that consists of given cell and a map containing given rectangle r.
public  GraphTransitionInterfaceconnectStartOrEndBubble(GraphBubbleActivityInterface startOrEnd, String actId)
    
protected static  booleancontainsBubble(Set gacts, boolean start)
    
public  voidcreateWorkflowGraph(XMLCollectionElement wpOrAs)
     Creates graph representation of given workflow process.
public  booleandoesRootParticipantExist()
    
public  ObjectfindNearestCell(Object selectedCell, int direction)
     Finds the nearest cell to the given cell in given direction.
public  GraphParticipantInterfacefindParentActivityParticipantForLocation(Point loc, Map propertyMap, ParentMap parentMap)
     Finds new participant for activity after it's position changes.
public  GraphParticipantInterfacefindParentForLocation(Point loc)
    
public  RectanglegetBounds(Object cell, Map propertyMap)
     Gets bounding rectangle of given cell.
protected  RectanglegetBoundsOfParticipantFutureActivities(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)
     Gets the bounding rectangle of future children activities of given Participant par (that will be participants activities after parent map is applied).
public  GraphBubbleActivityInterfacegetBubble(ExtendedAttribute ea)
     Returns start/end graph bubble object which represents start/end ext.
protected static  PointgetBubbleOffsetPoint(Point actOffs, boolean start, Dimension defActDim, boolean isGraphRotated)
    
public  PointgetCenter(Object go)
     Returns the central point of given graph object.
public  ListgetDisplayedParticipants()
    
protected  SetgetEnds()
     Returns end bubbles.
public  GraphgetGraph()
     Returns the graph which is managed.
public  GraphActivityInterfacegetGraphActivity(String id)
     Returns graph Activity object which represents XPDL activity with given Id attribute.
public  GraphActivityInterfacegetGraphActivity(Activity act)
    
public  GraphControllergetGraphController()
    
public  GraphParticipantInterfacegetGraphParticipant(String id)
     Returns graph Participant object which represents XPDL participant with given Id attribute.
public  GraphParticipantInterfacegetGraphParticipant(Participant par)
    
public  GraphTransitionInterfacegetGraphTransition(String id)
     Returns graph Transition object which represents XPDL transition with given Id attribute.
public  GraphTransitionInterfacegetGraphTransition(Transition tra)
    
public  DimensiongetGraphsPreferredSize()
    
public  intgetHorizontalOffset()
     Returns horizontal offset for inserting participants.
protected  GraphParticipantInterfacegetLeafParticipantForXPos(int xPos, Map propertyMap, ParentMap parentMap)
    
protected  GraphParticipantInterfacegetLeafParticipantForYPos(int yPos, Map propertyMap, ParentMap parentMap)
     Returns leaf participant that bounds given y-coordinate.
protected  intgetNewRootParXPos(Map propertyMap, ParentMap parentMap)
    
protected  intgetNewRootParYPos(Map propertyMap, ParentMap parentMap)
     Gets the insertation point (y-coordinate) of new root participant.
public  PointgetOffset(GraphActivityInterface a, Map propertyMap)
     Returns the point within the graph where the upper-left corner of given graph activity is placed.
public  PointgetOffset(Point actPoint)
    
protected  SetgetParticipantFutureActivities(GraphParticipantInterface par, ParentMap parentMap)
     Gets future children activities of given participant par (that will be par's activities after parent map is applied).
protected  intgetParticipantHeight(Object par, Map propertyMap)
     Gets height of given participant (from it's current view or from propertyMap).
public  StringgetParticipantId(Point pos)
    
protected  intgetParticipantWidth(Object par, Map propertyMap)
     Gets width of given participant (from it's current view or from propertyMap).
protected  GraphParticipantInterface[]getParticipantsForXPos(int xPos, int direction, Map propertyMap, ParentMap parentMap)
    
protected  GraphParticipantInterface[]getParticipantsForYPos(int yPos, int direction, Map propertyMap, ParentMap parentMap)
     Returns participants that are under or above given yPos, or contains that y-position:
direction=0 -> under,
direction=1 -> above,
direction=2 -> contains.
protected  ListgetPoints(GraphTransitionInterface cell, Map propertyMap)
    
public  PointgetRealPosition(GraphActivityInterface a, GraphParticipantInterface gpar)
    
protected  intgetRootParticipantHeight(Map propertyMap, ParentMap parentMap)
    
protected  intgetRootParticipantWidth(Map propertyMap, ParentMap parentMap)
     Gets the width of root participants.
protected  SetgetStarts()
     Returns start bubbles.
public  RectanglegetUnionBounds(Rectangle[] rects)
     Gets union of given rectangles.
public  CellViewgetView(Object cell)
     Gets view of given object.
public  XMLCollectionElementgetXPDLOwner()
     Returns the object (part of mapped XML logic) that is represented by the graph managed by WorklowManager.
public  JaWEGraphModelgraphModel()
     Returns the graph model - the model that represents the graph view.
protected  booleanhasAnyActivity(GraphParticipantInterface par, ParentMap parentMap)
     Checks if given participant par has activities.
protected  booleanhasAnyParticipant(GraphParticipantInterface par, ParentMap parentMap)
     Checks if given participant par has other participants.
public static  booleanhasConnectedEndBubble(GraphActivityInterface act)
    
public static  booleanhasConnectedStartBubble(GraphActivityInterface act)
    
public  voidinit()
    
public  GraphActivityInterfaceinsertActivity(Activity xpdla)
    
public  GraphActivityInterfaceinsertEnd(ExtendedAttribute eea)
    
public  ListinsertMissingStartEndBubbles()
    
public  GraphParticipantInterfaceinsertParticipantAndArrangeParticipants(Participant par)
     Inserts new Participant cell into model.
public  GraphActivityInterfaceinsertStart(ExtendedAttribute sea)
    
public  GraphTransitionInterfaceinsertTransition(Transition xpdltra)
    
public  booleanisFreeTextExpressionParticipantShown()
    
protected  booleanisGraphRotated()
    
public  voidmoveCellsAndArrangeParticipants(Map propertyMap)
    
public  booleanmoveParticipants(List partsToMove, boolean direction, Map propertyMap, ParentMap parentMap)
    
public  voidmoveParticipants(Object[] cellsToMove, boolean direction)
    
protected  intoptimalParticipantHeight(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)
     Calculates minimal participant height, which depends of position of all of its Activity cells.
protected  intoptimalParticipantWidth(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)
    
protected  intoptimalRootParticipantHeight(List participants, Map propertyMap, ParentMap parentMap)
    
protected  intoptimalRootParticipantWidth(List participants, Map propertyMap, ParentMap parentMap)
     Calculates the minimal width of root participants.
public  voidremoveActivity(Activity xpdla)
    
public  voidremoveBubble(ExtendedAttribute ea)
    
public  voidremoveCells(Object[] cellsToDelete)
    
public  voidremoveCellsAndArrangeParticipants(Object[] cellsToDelete)
     Removes cells cellsToDelete from model.
public  voidremoveStartEndBubbles()
    
public  voidremoveTransition(Transition xpdltra)
    
protected  voidremoveTransition(GraphTransitionInterface gtra)
    
protected  voidresize(Object[] cells, Map propertyMap, int dw, int dh)
     Resizes given participants.
protected  voidresizeAllParticipantsHorizontally(Map propertyMap, ParentMap parentMap)
     Method that resizes all participants horizontally to get there minimal needed sizes.
protected  voidresizeAllParticipantsVertically(Map propertyMap, ParentMap parentMap)
    
protected  voidtranslateHorizontally(Map propertyMap, ParentMap parentMap, int xPos, int dv)
    
protected  voidtranslateParticipant(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap, int dx, int dy)
     Translates single participant and its children.The method checks for bounds of cells within propertyMap and uses parentMap to translate right children (the children that will be it's after applying parentMap).
protected  voidtranslateParticipants(GraphParticipantInterface[] cells, Map propertyMap, ParentMap parentMap, int dx, int dy)
     Translates given participants using propertyMap for bounds checking and parentMap for future children checking.
protected  voidtranslateVertically(Map propertyMap, ParentMap parentMap, int yPos, int dv)
     Translates participants under given position yPos vertically for a value of dv.
protected  SetupdateActivityParent(GraphActivityInterface ac, Map propertyMap, ParentMap parentMap)
     Determines old and new participant for activity, adjusts activities position if needed and properly changes parent of activity (adds entry into the parentMap).
public  voidupdateBreakPoints(GraphTransitionInterface gtra, Map propertyMap)
    
public  voidupdateBubble(ExtendedAttribute ea)
    
protected  voidupdateModelAndArrangeParticipants(Object[] insert, Map propertyMap, ParentMap parentMap, Map viewMap, String actionName, ConnectionSet cs, boolean arrangeParticipants)
     Inserts new activities into model, changes positions and sizes of participants due to a insertion of new activities or due to a moving of activities.
public  voidupdateStyle(GraphTransitionInterface gtra)
    
protected  voidupdateStyle(GraphTransitionInterface gtra, Map propertyMap)
    
public  voidupdateTransition(Transition xpdltra)
    
protected  ListupdateXPDLActivitiesPosition(Map propertyMap)
    

Field Detail
pLoaded
protected boolean pLoaded(Code)




Constructor Detail
GraphManager
public GraphManager(Graph g)(Code)
Creates new workflow manager for given graph.
Parameters:
  g - The graph that manager manages.




Method Detail
addOrRemoveBreakPoint
public List addOrRemoveBreakPoint(GraphTransitionInterface gtra, Point p, boolean toAdd)(Code)



arrangeActivityPosition
public void arrangeActivityPosition(Activity act)(Code)



arrangeBubblePosition
public void arrangeBubblePosition(ExtendedAttribute ea, GraphParticipantInterface newPar)(Code)



arrangeParticipantHorizontally
protected void arrangeParticipantHorizontally(Object par, Map propertyMap, ParentMap parentMap)(Code)



arrangeParticipantRelationsOnly
protected void arrangeParticipantRelationsOnly(Map propertyMap, ParentMap parentMap)(Code)



arrangeParticipantVertically
protected void arrangeParticipantVertically(Object par, Map propertyMap, ParentMap parentMap)(Code)
Resizing participant par and it's parents to appropriate height, and translating other participants accordingly to changes of participant par. The size's and positions are calculated considering propertyMap and parentMap - which means for future children state, and for bounds that are constantly changed during other calculations. If propertyMap and parentMap are null, size's and positions are calculated for current state. Also, if par that is to be arranged has entry in parentMap as removed participant, it will not be arranged.



arrangeParticipants
protected void arrangeParticipants(Map propertyMap, ParentMap parentMap)(Code)
Arranges participants according to the given property and parent maps.



arrangeParticipantsHorizontally
protected void arrangeParticipantsHorizontally(Object[] pars, Map propertyMap, ParentMap parentMap)(Code)



arrangeParticipantsVertically
protected void arrangeParticipantsVertically(Object[] pars, Map propertyMap, ParentMap parentMap)(Code)
Arranging heights and positions of given participants and positions of participants that must be translated due to a change of given participants.



changeBounds
protected void changeBounds(Object cell, Map propertyMap, Rectangle r)(Code)
Replaces bounding rectangle of given cell in propertyMap object with rectangle r if cell is contained within the propertyMap object, otherwise adds new entry to the propertyMap that consists of given cell and a map containing given rectangle r.



connectStartOrEndBubble
public GraphTransitionInterface connectStartOrEndBubble(GraphBubbleActivityInterface startOrEnd, String actId)(Code)



containsBubble
protected static boolean containsBubble(Set gacts, boolean start)(Code)



createWorkflowGraph
public void createWorkflowGraph(XMLCollectionElement wpOrAs)(Code)
Creates graph representation of given workflow process. It creates a graph entities (participants, activities, transitions) and associates the workflow logic to it. The graph entities are inserted according to the data that wp object holds (the data from XML file).

This is used when reading a workflow definition from an XML file.
Parameters:
  wpOrAs - Object that mapps the logic of WorkflowProcess element of XML -defines a particular Workflow process.




doesRootParticipantExist
public boolean doesRootParticipantExist()(Code)



findNearestCell
public Object findNearestCell(Object selectedCell, int direction)(Code)
Finds the nearest cell to the given cell in given direction.
Parameters:
  selectedCell - first currently selected cell
Parameters:
  direction - 0-Up, 1-Down, 2-Left, 3-Right (if given some other no, the Up isassumed) The nearest cell to the given one in given direction, or null ifno such cell.



findParentActivityParticipantForLocation
public GraphParticipantInterface findParentActivityParticipantForLocation(Point loc, Map propertyMap, ParentMap parentMap)(Code)
Finds new participant for activity after it's position changes. WARNING: this method changes it's argument loc if not appropriate.



findParentForLocation
public GraphParticipantInterface findParentForLocation(Point loc)(Code)



getBounds
public Rectangle getBounds(Object cell, Map propertyMap)(Code)
Gets bounding rectangle of given cell. The rectangle is either current rectangle of cellView either from propertyMap where are held bounding rectangles of various cells during multiple resizing and/or translating of cells.



getBoundsOfParticipantFutureActivities
protected Rectangle getBoundsOfParticipantFutureActivities(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)(Code)
Gets the bounding rectangle of future children activities of given Participant par (that will be participants activities after parent map is applied). Bounding rectangle is union of previous mentioned activities.



getBubble
public GraphBubbleActivityInterface getBubble(ExtendedAttribute ea)(Code)
Returns start/end graph bubble object which represents start/end ext. attrib.



getBubbleOffsetPoint
protected static Point getBubbleOffsetPoint(Point actOffs, boolean start, Dimension defActDim, boolean isGraphRotated)(Code)



getCenter
public Point getCenter(Object go)(Code)
Returns the central point of given graph object.



getDisplayedParticipants
public List getDisplayedParticipants()(Code)



getEnds
protected Set getEnds()(Code)
Returns end bubbles.



getGraph
public Graph getGraph()(Code)
Returns the graph which is managed.



getGraphActivity
public GraphActivityInterface getGraphActivity(String id)(Code)
Returns graph Activity object which represents XPDL activity with given Id attribute.



getGraphActivity
public GraphActivityInterface getGraphActivity(Activity act)(Code)



getGraphController
public GraphController getGraphController()(Code)



getGraphParticipant
public GraphParticipantInterface getGraphParticipant(String id)(Code)
Returns graph Participant object which represents XPDL participant with given Id attribute.



getGraphParticipant
public GraphParticipantInterface getGraphParticipant(Participant par)(Code)



getGraphTransition
public GraphTransitionInterface getGraphTransition(String id)(Code)
Returns graph Transition object which represents XPDL transition with given Id attribute.



getGraphTransition
public GraphTransitionInterface getGraphTransition(Transition tra)(Code)



getGraphsPreferredSize
public Dimension getGraphsPreferredSize()(Code)



getHorizontalOffset
public int getHorizontalOffset()(Code)
Returns horizontal offset for inserting participants.



getLeafParticipantForXPos
protected GraphParticipantInterface getLeafParticipantForXPos(int xPos, Map propertyMap, ParentMap parentMap)(Code)



getLeafParticipantForYPos
protected GraphParticipantInterface getLeafParticipantForYPos(int yPos, Map propertyMap, ParentMap parentMap)(Code)
Returns leaf participant that bounds given y-coordinate. If y-coordinate is at boundary of two participants, method returns one that is above. The method checks for bounds of cells within propertyMap.



getNewRootParXPos
protected int getNewRootParXPos(Map propertyMap, ParentMap parentMap)(Code)



getNewRootParYPos
protected int getNewRootParYPos(Map propertyMap, ParentMap parentMap)(Code)
Gets the insertation point (y-coordinate) of new root participant.



getOffset
public Point getOffset(GraphActivityInterface a, Map propertyMap)(Code)
Returns the point within the graph where the upper-left corner of given graph activity is placed. The point origin is the upper-left corner of participant graph object that holds given activity.



getOffset
public Point getOffset(Point actPoint)(Code)



getParticipantFutureActivities
protected Set getParticipantFutureActivities(GraphParticipantInterface par, ParentMap parentMap)(Code)
Gets future children activities of given participant par (that will be par's activities after parent map is applied).



getParticipantHeight
protected int getParticipantHeight(Object par, Map propertyMap)(Code)
Gets height of given participant (from it's current view or from propertyMap).



getParticipantId
public String getParticipantId(Point pos)(Code)



getParticipantWidth
protected int getParticipantWidth(Object par, Map propertyMap)(Code)
Gets width of given participant (from it's current view or from propertyMap).



getParticipantsForXPos
protected GraphParticipantInterface[] getParticipantsForXPos(int xPos, int direction, Map propertyMap, ParentMap parentMap)(Code)



getParticipantsForYPos
protected GraphParticipantInterface[] getParticipantsForYPos(int yPos, int direction, Map propertyMap, ParentMap parentMap)(Code)
Returns participants that are under or above given yPos, or contains that y-position:
direction=0 -> under,
direction=1 -> above,
direction=2 -> contains. The method checks for bounds of cells within propertyMap. If some of model's participants is entered in parentMap as removed participant, this method doesn't consider that participant.



getPoints
protected List getPoints(GraphTransitionInterface cell, Map propertyMap)(Code)



getRealPosition
public Point getRealPosition(GraphActivityInterface a, GraphParticipantInterface gpar)(Code)



getRootParticipantHeight
protected int getRootParticipantHeight(Map propertyMap, ParentMap parentMap)(Code)



getRootParticipantWidth
protected int getRootParticipantWidth(Map propertyMap, ParentMap parentMap)(Code)
Gets the width of root participants. The method checks for bounds of cells within propertyMap. If some of model's participants has entry within propertyMap as removed, this participant doesn't count.



getStarts
protected Set getStarts()(Code)
Returns start bubbles.



getUnionBounds
public Rectangle getUnionBounds(Rectangle[] rects)(Code)
Gets union of given rectangles.



getView
public CellView getView(Object cell)(Code)
Gets view of given object.



getXPDLOwner
public XMLCollectionElement getXPDLOwner()(Code)
Returns the object (part of mapped XML logic) that is represented by the graph managed by WorklowManager. That object can be instance of the Package, WorkflowProcess or ...xml.elements.BlockActivity class, and is held as a property of the manager's graph object. The object (representing XML logic) that is represented by thismanager's graph.



graphModel
public JaWEGraphModel graphModel()(Code)
Returns the graph model - the model that represents the graph view. (See JGraph documentation).



hasAnyActivity
protected boolean hasAnyActivity(GraphParticipantInterface par, ParentMap parentMap)(Code)
Checks if given participant par has activities. If parentMap is null, or there is no entry for this this participant within a parentMap, the current state is checked, elsewhere parentMap is checked-in other words future state of participant activities (state after aplying parentMap) is returned.



hasAnyParticipant
protected boolean hasAnyParticipant(GraphParticipantInterface par, ParentMap parentMap)(Code)
Checks if given participant par has other participants. If parentMap is null, or there is no entry for this this participant within a parentMap, the current state is checked, elsewhere parentMap is checked-in other words future state of participant participants (state after aplying parentMap) is returned.

This method has meaning in previous versions of JaWE, now it always returns false.




hasConnectedEndBubble
public static boolean hasConnectedEndBubble(GraphActivityInterface act)(Code)



hasConnectedStartBubble
public static boolean hasConnectedStartBubble(GraphActivityInterface act)(Code)



init
public void init()(Code)



insertActivity
public GraphActivityInterface insertActivity(Activity xpdla)(Code)



insertEnd
public GraphActivityInterface insertEnd(ExtendedAttribute eea)(Code)



insertMissingStartEndBubbles
public List insertMissingStartEndBubbles()(Code)



insertParticipantAndArrangeParticipants
public GraphParticipantInterface insertParticipantAndArrangeParticipants(Participant par)(Code)
Inserts new Participant cell into model. First, the parent of new Participant is searched, and if found, put into ParentMap (it is not inserted into model at ones). If parent participant isn't found -> root participant will be inserted. After that model's view is arranged (Participants are moved and translated along with it's children cells) to suite to the new model state - this is done "virtually" which means that changes are not directly applied to view until all changes are made. At the end, all changes are applied to model and view. Such procedure enables compound undo support.
This method is called when inserting new Participant into model.



insertStart
public GraphActivityInterface insertStart(ExtendedAttribute sea)(Code)



insertTransition
public GraphTransitionInterface insertTransition(Transition xpdltra)(Code)



isFreeTextExpressionParticipantShown
public boolean isFreeTextExpressionParticipantShown()(Code)



isGraphRotated
protected boolean isGraphRotated()(Code)



moveCellsAndArrangeParticipants
public void moveCellsAndArrangeParticipants(Map propertyMap)(Code)



moveParticipants
public boolean moveParticipants(List partsToMove, boolean direction, Map propertyMap, ParentMap parentMap)(Code)



moveParticipants
public void moveParticipants(Object[] cellsToMove, boolean direction)(Code)



optimalParticipantHeight
protected int optimalParticipantHeight(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)(Code)
Calculates minimal participant height, which depends of position of all of its Activity cells. The height is calculated considering propertyMap and parentMap - which means for future children state, and for bounds that are constantly changed during other calculations. If propertyMap and parentMap are null, size is calculated for current state.



optimalParticipantWidth
protected int optimalParticipantWidth(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap)(Code)



optimalRootParticipantHeight
protected int optimalRootParticipantHeight(List participants, Map propertyMap, ParentMap parentMap)(Code)



optimalRootParticipantWidth
protected int optimalRootParticipantWidth(List participants, Map propertyMap, ParentMap parentMap)(Code)
Calculates the minimal width of root participants. It depends of minimal allowed width of leaf participants, which depends on the position of Activity cells in them. The width is calculated considering propertyMap and parentMap - which means for future children state, and for bounds that are constantly changed during other calculations. If propertyMap and parentMap are null, size is calculated for current state.



removeActivity
public void removeActivity(Activity xpdla)(Code)



removeBubble
public void removeBubble(ExtendedAttribute ea)(Code)



removeCells
public void removeCells(Object[] cellsToDelete)(Code)



removeCellsAndArrangeParticipants
public void removeCellsAndArrangeParticipants(Object[] cellsToDelete)(Code)
Removes cells cellsToDelete from model. This means that given cells and all of their descendants as well as all transitions that connects given cells, will be removed from model. First, all remained participants are moved and resized according to participants that are beeing removed and ParentMap for all removed cells is created (all these things are made "virtually" - not applied to model and view). After that model's new view is arranged (Participants are moved and translated (along with it's children cells) according to the remained children - this is also done "virtually". At the end, all changes are applied to model and view. Such procedure enables compound undo support.
This method is called when deleting or cutting cells from graph.



removeStartEndBubbles
public void removeStartEndBubbles()(Code)



removeTransition
public void removeTransition(Transition xpdltra)(Code)



removeTransition
protected void removeTransition(GraphTransitionInterface gtra)(Code)



resize
protected void resize(Object[] cells, Map propertyMap, int dw, int dh)(Code)
Resizes given participants. The resizing is done to propertyMap which will later (after all needed operation) be applied.



resizeAllParticipantsHorizontally
protected void resizeAllParticipantsHorizontally(Map propertyMap, ParentMap parentMap)(Code)
Method that resizes all participants horizontally to get there minimal needed sizes. The size is calculated considering propertyMap and parentMap - which means for future children state, and for bounds that are constantly changed during other calculations. If propertyMap and parentMap are null, size is calculated for current state.



resizeAllParticipantsVertically
protected void resizeAllParticipantsVertically(Map propertyMap, ParentMap parentMap)(Code)



translateHorizontally
protected void translateHorizontally(Map propertyMap, ParentMap parentMap, int xPos, int dv)(Code)



translateParticipant
protected void translateParticipant(GraphParticipantInterface par, Map propertyMap, ParentMap parentMap, int dx, int dy)(Code)
Translates single participant and its children.The method checks for bounds of cells within propertyMap and uses parentMap to translate right children (the children that will be it's after applying parentMap). The translating is done to propertyMap which will later (after all needed operation) be applied.



translateParticipants
protected void translateParticipants(GraphParticipantInterface[] cells, Map propertyMap, ParentMap parentMap, int dx, int dy)(Code)
Translates given participants using propertyMap for bounds checking and parentMap for future children checking. The translating is done to propertyMap which will later (after all needed operation) be applied.
See Also:   GraphManager.translateParticipant



translateVertically
protected void translateVertically(Map propertyMap, ParentMap parentMap, int yPos, int dv)(Code)
Translates participants under given position yPos vertically for a value of dv. The translating is done to propertyMap which will later (after all needed operation) be applied.
See Also:   GraphManager.translateParticipants



updateActivityParent
protected Set updateActivityParent(GraphActivityInterface ac, Map propertyMap, ParentMap parentMap)(Code)
Determines old and new participant for activity, adjusts activities position if needed and properly changes parent of activity (adds entry into the parentMap).



updateBreakPoints
public void updateBreakPoints(GraphTransitionInterface gtra, Map propertyMap)(Code)



updateBubble
public void updateBubble(ExtendedAttribute ea)(Code)



updateModelAndArrangeParticipants
protected void updateModelAndArrangeParticipants(Object[] insert, Map propertyMap, ParentMap parentMap, Map viewMap, String actionName, ConnectionSet cs, boolean arrangeParticipants)(Code)
Inserts new activities into model, changes positions and sizes of participants due to a insertion of new activities or due to a moving of activities. Also, finds and changes parent's of inserted/changed-position activities. This method is called when inserting new activities, when pasting activities, and when moving activities. All changes to the model and to the view are at first made virtually (to the parentMap and to the propertyMap) and when all is done, method insertAndEdit of PEGraphModel class is called to actually make changes. The updateCollection parameter is used when some objects are inserted into model, to update collection of XML elements.
Parameters:
  arrangeParticipants - TODO



updateStyle
public void updateStyle(GraphTransitionInterface gtra)(Code)



updateStyle
protected void updateStyle(GraphTransitionInterface gtra, Map propertyMap)(Code)



updateTransition
public void updateTransition(Transition xpdltra)(Code)



updateXPDLActivitiesPosition
protected List updateXPDLActivitiesPosition(Map propertyMap)(Code)



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.