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 29 import java.awt.Rectangle ; 30 31 34 35 public class ComponentPart { 36 37 40 41 public final static int HEADER = 0; 42 43 46 47 public final static int TOP_LEFT_CORNER = 1; 48 49 52 53 public final static int TOP_RIGHT_CORNER = 2; 54 55 58 59 public final static int BOTTOM_LEFT_CORNER = 3; 60 61 64 65 public final static int BOTTOM_RIGHT_CORNER = 4; 66 67 70 71 public final static int LEFT_BORDER = 5; 72 73 76 77 public final static int TOP_BORDER = 6; 78 79 82 83 public final static int RIGHT_BORDER = 7; 84 85 88 89 public final static int BOTTOM_BORDER = 8; 90 91 94 95 public final static int CONTENT = 9; 96 97 100 101 public final static int INTERFACE = 9; 102 103 106 107 private final Component component; 108 109 113 114 private final Interface itf; 115 116 120 121 private final int part; 122 123 126 127 private final Rectangle position; 128 129 139 140 public ComponentPart ( 141 final Component component, 142 final Interface itf, 143 final int part, 144 final Rectangle position) 145 { 146 this.component = component; 147 this.itf = itf; 148 this.part = part; 149 this.position = position; 150 } 151 152 157 158 public Component getComponent () { 159 return component; 160 } 161 162 169 170 public Interface getInterface () { 171 return itf; 172 } 173 174 180 181 public int getPart () { 182 return part; 183 } 184 185 190 191 public Rectangle getPosition () { 192 return position; 193 } 194 } 195 | Popular Tags |