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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user