/** * @param f the fig to indicate the bounds of * @param g the graphics */ protected void indicateBounds(FigText f, Graphics g) { String text = f.getText(); if (text == null || text.length() == 0) { Rectangle rect = f.getBounds(); Color c = g.getColor(); g.setColor(Globals.getPrefs().handleColorFor(f)); g.drawRect(rect.x, rect.y, rect.width, rect.height); g.setColor(c); // TODO: Is this needed? } }
/** Get the Rectangle in which the model elements name is displayed */ public Rectangle getNameBounds() { return nameFig.getBounds(); }