Added getAlignment() and fixed javadoc typo. Added copyright header.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@751 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
shaper
2002-05-20 18:07:03 +00:00
parent d9b4a819c0
commit ac0df9d4f5
@@ -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)