1 23 24 package org.objectweb.fractal.gui.graph.view; 25 26 import org.objectweb.fractal.gui.model.Component; 27 import org.objectweb.fractal.gui.model.Interface; 28 import org.objectweb.fractal.gui.selection.model.Selection; 29 30 import java.awt.Graphics ; 31 import java.awt.Point ; 32 import java.awt.Rectangle ; 33 import java.awt.Color ; 34 35 40 41 public interface ComponentRenderer { 42 43 46 47 int NO_INSTANCE = 0; 48 49 52 53 int INSTANCE = 1; 54 55 58 59 int STARTED = 2; 60 61 64 65 int STOPPED = 3; 66 67 81 82 void drawComponent ( 83 Graphics g, 84 Component c, 85 Selection s, 86 Rectangle r, 87 Color color, 88 boolean expanded, 89 int m, 90 int state); 91 92 106 107 ComponentPart getComponentPart ( 108 Component c, 109 Rectangle r, 110 boolean expanded, 111 int x, 112 int y); 113 114 122 123 Point getInterfacePosition (Component c, Rectangle r, Interface i); 124 125 134 135 Rectangle getSubComponentArea (Component c, Rectangle r); 136 } 137 | Popular Tags |