1 10 11 package org.enhydra.jawe.graph; 12 13 import org.enhydra.jawe.*; 14 15 import org.jgraph.graph.*; 16 import java.awt.*; 17 18 21 public class SubflowRenderer extends ActivityRenderer { 22 23 private BasicStroke innerBorderStroke = new BasicStroke(1); 24 28 public void paint(Graphics g) { 29 super.paint(g); 30 31 g.setColor(bordercolor); 33 ((Graphics2D) g).setStroke(innerBorderStroke); 34 g.drawRect(xOff,yOff,innerW-1,innerH-1); 35 } 36 37 protected Color getFillColor() { 38 Color c=Utils.getColor(JaWEConfig.getInstance().getSubFlowActivityColor()); 39 return ActivityRenderer.getFillColor(c,(Activity)view.getCell()); 40 } 41 42 } 43 | Popular Tags |