From 629c40f6312affc032004d516f411935f2afb7b7 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 19 Jun 2003 22:12:51 +0000 Subject: [PATCH] Increased the padding around the icon and between the icon and text. We're going to need to make this customizable by derived classes at some point. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2670 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/miso/client/SceneObjectTip.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/miso/client/SceneObjectTip.java b/src/java/com/threerings/miso/client/SceneObjectTip.java index 31d2804c3..2b9fc82ec 100644 --- a/src/java/com/threerings/miso/client/SceneObjectTip.java +++ b/src/java/com/threerings/miso/client/SceneObjectTip.java @@ -1,5 +1,5 @@ // -// $Id: SceneObjectTip.java,v 1.2 2003/04/26 00:48:47 mdb Exp $ +// $Id: SceneObjectTip.java,v 1.3 2003/06/19 22:12:51 mdb Exp $ package com.threerings.miso.client; @@ -55,7 +55,7 @@ public class SceneObjectTip extends LabelSausage public void layout (Graphics2D gfx, Rectangle tipFor, Rectangle boundary, Collection othertips) { - layout(gfx, PAD); + layout(gfx, ICON_PAD, EXTRA_PAD); bounds = new Rectangle(_size); boundary = MAX_RECT; @@ -118,8 +118,11 @@ public class SceneObjectTip extends LabelSausage } } - /** The number of pixels to reserve between elements of the tip. */ - protected static final int PAD = 3; + /** The number of pixels to pad around the icon. */ + protected static final int ICON_PAD = 4; + + /** The number of pixels to pad between the icon and text. */ + protected static final int EXTRA_PAD = 2; /** The maximum height above the bottom of the object bounds that we are * to center ourselves. */