code: public static int computeShapeWidth( AbstractType type ) {
  
  		Font font = GraphUtils.getDefaultFont();
  		BufferedImage img = new BufferedImage( 1, 1, BufferedImage.TYPE_INT_ARGB );
  		FontMetrics fm = img.getGraphics().getFontMetrics( font );
  
  		int width = fm.stringWidth( type.getName());
  		width = Math.max( width, 80 ) + 20;
  		return width;
  	}
docs: Computes the width of a shape for a given component or facet.
  @param type a type
  @return the width it should take once displayed as a graph vertex