/* * @(#)GroupHandle.java * * Project: JHotdraw - a GUI framework for technical drawings * http://www.jhotdraw.org * http://jhotdraw.sourceforge.net * Copyright: (c) by the original author(s) and all contributors * License: Lesser GNU Public License (LGPL) * http://www.opensource.org/licenses/lgpl-license.html */ package org.jhotdraw.figures; import java.awt.*; import org.jhotdraw.framework.*; import org.jhotdraw.standard.NullHandle; /** * A Handle for a GroupFigure. * * @version <$CURRENT_VERSION$> */ final class GroupHandle extends NullHandle { public GroupHandle(Figure owner, Locator locator) { super(owner, locator); } /** * Draws the Group handle. */ public void draw(Graphics g) { Rectangle r = displayBox(); g.setColor(Color.black); g.drawRect(r.x, r.y, r.width, r.height); r.grow(-1, -1); g.setColor(Color.white); g.drawRect(r.x, r.y, r.width, r.height); } }