diff --git a/projects/samskivert/src/java/com/samskivert/swing/Label.java b/projects/samskivert/src/java/com/samskivert/swing/Label.java index 2bd2fa4a..662cd87c 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/Label.java +++ b/projects/samskivert/src/java/com/samskivert/swing/Label.java @@ -1,5 +1,22 @@ // -// $Id: Label.java,v 1.10 2002/05/16 00:01:08 mdb Exp $ +// $Id: Label.java,v 1.11 2002/05/20 18:07:03 shaper Exp $ +// +// samskivert library - useful routines for java programs +// Copyright (C) 2002 Michael Bayne +// +// This library is free software; you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published +// by the Free Software Foundation; either version 2.1 of the License, or +// (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package com.samskivert.swing; @@ -112,6 +129,14 @@ public class Label implements SwingConstants _outlineColor = color; } + /** + * Returns the alignment of the text within the label. + */ + public int getAlignment () + { + return _align; + } + /** * Sets the alignment of the text within the label to either {@link * SwingConstants#LEFT}, {@link SwingConstants#RIGHT}, or {@link @@ -313,7 +338,7 @@ public class Label implements SwingConstants } /** - * Constructsn an attributed character iterator with our text and the + * Constructs an attributed character iterator with our text and the * appropriate font. */ protected AttributedCharacterIterator textIterator (Graphics2D gfx)