1 26 package org.objectweb.util.explorer.swing.graph; 27 28 import java.awt.Dimension ; 29 import java.awt.Graphics ; 30 import java.awt.Point ; 31 32 36 public interface VertexGraphicsInterface { 37 38 39 public final int COMPOSITE_MEMBRANE_SIZE = 5; 40 41 42 public final int PRIMITIVE_MEMBRANE_SIZE = 2; 43 44 45 public final Point SUPER_COMPOSITE_NAME_LOCATION = new Point ( 46 25 + COMPOSITE_MEMBRANE_SIZE, 25 + COMPOSITE_MEMBRANE_SIZE); 47 48 49 public final Point SUPER_COMPOSITE_ORIGIN = new Point (10, 10); 50 51 52 public final Point PRIMITIVE_ORIGIN = new Point (10, 10); 53 54 55 public final Point FIRST_VETEX_LOCATION = new Point ( 56 COMPOSITE_MEMBRANE_SIZE + 55, COMPOSITE_MEMBRANE_SIZE + 60); 57 58 59 public final int VERTEX_MAX_WIDTH = 300; 60 61 62 public final int COMPOSITE_NAME_WIDTH = 12; 63 64 65 public final int PRIMITIVE_NAME_WIDTH = 7; 66 67 68 public final int PRIMITIVE_NAME_HEIGHT = 4; 69 70 71 Dimension getDefaultSize(); 72 73 74 Dimension getSuperCompositeSize(); 75 76 77 void drawVertex(Graphics g, String vertexType, Dimension d, 78 PrimitiveVertex vertex); 79 80 } | Popular Tags |