01: package org.enhydra.jawe.components.graph;
02:
03: import java.util.Properties;
04:
05: import org.enhydra.shark.xpdl.elements.Activity;
06: import org.enhydra.shark.xpdl.elements.Participant;
07: import org.enhydra.shark.xpdl.elements.Transition;
08:
09: /**
10: * Factory for rendering graph objects.
11: * @author Sasa Bojanic
12: */
13: public class GraphObjectRendererFactory {
14:
15: protected Properties properties;
16:
17: public void configure(Properties props) throws Exception {
18: this .properties = props;
19: }
20:
21: public GraphActivityRendererInterface createActivityRenderer(
22: Activity act) {
23: return new DefaultGraphActivityRenderer();
24: }
25:
26: public GraphTransitionRendererInterface createTransitionRenderer(
27: Transition tra) {
28: return new DefaultGraphTransitionRenderer();
29: }
30:
31: public GraphParticipantRendererInterface createParticipantRenderer(
32: Participant par) {
33: return new DefaultGraphParticipantRenderer();
34: }
35:
36: public GraphActivityRendererInterface createBubbleRenderer(
37: String type) {
38: return new DefaultGraphBubbleActivityRenderer();
39: }
40:
41: public GraphPortRendererInterface createPortRenderer(String type) {
42: return new DefaultGraphPortRenderer();
43: }
44: }
|