| org.enhydra.jawe.components.graph.Graph
Graph | public class Graph extends JGraph (Code) | | Standard implementation of JGraph. Represents a WorkflowProcess or ActivitySet graph.
author: Sasa Bojanic |
Method Summary | |
public static void | addSampleData(GraphModel model) Overrides super method - don't need to waste a time for this. | public List | checkConnections(boolean fullCheck) | public void | clearXPDLObjectReferences() | public String | convertValueToString(Object value) Overrides Superclass method. | protected GraphManager | createGraphManager() | public ActivitySet | getActivitySet() | public Object | getFirstParticipantForLocation(int x, int y) Finds the topmost Participant at specified location. | public GraphController | getGraphController() | public WorkflowElement | getGraphInterface(XMLElement el) | public GraphManager | getGraphManager() | public Set | getImproperlyConnectedEnds(boolean fullCheck) | public Set | getImproperlyConnectedStarts(boolean fullCheck) | public CellView | getNextViewAt(CellView current, double x, double y) | public CellView | getNextViewAt(CellView[] cells, CellView c, double x, double y) Modified from original to suite our needs. | public String | getToolTipText(MouseEvent event) Overrides JComponent 's getToolTipText
method in order to allow the graph controller to create a tooltip
for the topmost cell under the mousepointer. | public WorkflowProcess | getWorkflowProcess() | public XMLCollectionElement | getXPDLObject() | protected void | init(GraphController gc, GraphModel model, BasicMarqueeHandler mh, XMLCollectionElement wpOrAs) | public void | initGraphBehavior() | public void | printOrderedAllSelectables() Only for debugging purpose. | public void | refreshGraphConfiguration() | public WorkflowElement | selectActivity(Activity act, boolean add) | public WorkflowElement | selectBubble(ExtendedAttribute ea, boolean add) | public void | selectElement(WorkflowElement we, boolean add, boolean toFront) | public void | selectElements(Object[] elements, boolean add, boolean toFront) | public WorkflowElement | selectParticipant(Participant par) | public WorkflowElement | selectTransition(Transition tra, boolean add) | protected void | setFontSize() | public String | toString() | public void | updateUI() Notification from the UIManager that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager . | public boolean | validateAgainsXPDLSchema() |
graphManager | protected transient GraphManager graphManager(Code) | | WorkflowManager that controls various things
|
Graph | public Graph(GraphModel model, GraphLayoutCache view)(Code) | | |
addSampleData | public static void addSampleData(GraphModel model)(Code) | | Overrides super method - don't need to waste a time for this.
|
checkConnections | public List checkConnections(boolean fullCheck)(Code) | | |
clearXPDLObjectReferences | public void clearXPDLObjectReferences()(Code) | | |
convertValueToString | public String convertValueToString(Object value)(Code) | | Overrides Superclass method.
|
getFirstParticipantForLocation | public Object getFirstParticipantForLocation(int x, int y)(Code) | | Finds the topmost Participant at specified location.
|
getImproperlyConnectedEnds | public Set getImproperlyConnectedEnds(boolean fullCheck)(Code) | | |
getImproperlyConnectedStarts | public Set getImproperlyConnectedStarts(boolean fullCheck)(Code) | | |
getNextViewAt | public CellView getNextViewAt(CellView current, double x, double y)(Code) | | Modified from original to support all views
|
getNextViewAt | public CellView getNextViewAt(CellView[] cells, CellView c, double x, double y)(Code) | | Modified from original to suite our needs. This method makes a Participant
to be selected only when it's name part is pressed, and to give it's
tooltip only when you want to insert some cells in it.
|
getToolTipText | public String getToolTipText(MouseEvent event)(Code) | | Overrides JComponent 's getToolTipText
method in order to allow the graph controller to create a tooltip
for the topmost cell under the mousepointer. This differs from JTree
where the renderers tooltip is used.
NOTE: For JGraph to properly display tooltips of its
renderers, JGraph must be a registered component with the
ToolTipManager . This can be done by invoking
ToolTipManager.sharedInstance().registerComponent(graph) .
This is not done automatically!
Parameters: event - the MouseEvent that initiated theToolTip display a string containing the tooltip or null if event is null |
initGraphBehavior | public void initGraphBehavior()(Code) | | |
printOrderedAllSelectables | public void printOrderedAllSelectables()(Code) | | Only for debugging purpose.
|
refreshGraphConfiguration | public void refreshGraphConfiguration()(Code) | | |
selectElements | public void selectElements(Object[] elements, boolean add, boolean toFront)(Code) | | |
setFontSize | protected void setFontSize()(Code) | | |
updateUI | public void updateUI()(Code) | | Notification from the UIManager that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager . Subclassers can override this to support
different GraphUIs.
See Also: JComponent.updateUI |
validateAgainsXPDLSchema | public boolean validateAgainsXPDLSchema()(Code) | | |
|
|