Added getTextColor and getAlternateColor methods to Label.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1524 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
andrzej
2004-11-02 23:30:51 +00:00
parent 1d0f058a49
commit 83c2e6908a
2 changed files with 18 additions and 1 deletions
@@ -135,6 +135,14 @@ public class Label implements SwingConstants, LabelStyleConstants
_font = font;
}
/**
* Returns the color used to render the text.
*/
public Color getTextColor ()
{
return _textColor;
}
/**
* Sets the color used to render the text. Setting the text color to
* <code>null</code> will render the label in the graphics context
@@ -145,6 +153,15 @@ public class Label implements SwingConstants, LabelStyleConstants
_textColor = color;
}
/**
* Returns the alternate color used to render the text's outline or
* shadow, if any.
*/
public Color getAlternateColor ()
{
return _alternateColor;
}
/**
* Instructs the label to render the text with the specified alternate
* color when rendering. The text itself will be rendered in whatever
@@ -29,7 +29,7 @@ import java.io.Serializable;
*/
public class Tuple implements Serializable
{
/** The left object. */
/** The left objecto. */
public Object left;
/** The right object. */