01: package org.enhydra.jawe.components.graph;
02:
03: import java.awt.Color;
04:
05: import javax.swing.UIManager;
06:
07: import org.jgraph.graph.PortRenderer;
08:
09: /**
10: * Class used to display port object.
11: *
12: * @author Sasa Bojanic
13: */
14: public class DefaultGraphPortRenderer extends PortRenderer implements
15: GraphPortRendererInterface {
16:
17: public DefaultGraphPortRenderer() {
18: Color fg = UIManager.getColor("MenuItem.selectionBackground");
19: Color bg = GraphUtilities.getGraphController()
20: .getGraphSettings().getHandleColor();
21: setForeground(fg);
22: setBackground(bg);
23: }
24:
25: }
|