|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.text.TextStyle
public class TextStyle
Provides a container for a font and colors for a text component.
Field Summary | |
---|---|
static Font |
DEFAULT_FONT
Default font. |
static TextColorSet |
DEFAULT_NORMAL_TEXT_COLOR_SET
Default normal text color. |
static TextColorSet |
DEFAULT_SELECTION_TEXT_COLOR_SET
Default selection text color. |
Constructor Summary | |
---|---|
TextStyle()
Construct this object. |
|
TextStyle(Font font,
TextColorSet normalTextColorSet,
TextColorSet selectionTextColorSet)
Construct this object. |
Method Summary | |
---|---|
Object |
clone()
Return a clone of this instance. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
protected static boolean |
equals(Object object0,
Object object1)
Return true if the given objects are equal. |
Font |
getFont()
|
TextColorSet |
getNormalTextColorSet()
|
TextColorSet |
getSelectionTextColorSet()
|
int |
hashCode()
Returns a hash code value for the object. |
void |
setFont(Font font)
|
void |
setNormalTextColorSet(TextColorSet normalTextColorSet)
|
void |
setSelectionTextColorSet(TextColorSet selectionTextColorSet)
|
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Font DEFAULT_FONT
public static final TextColorSet DEFAULT_NORMAL_TEXT_COLOR_SET
public static final TextColorSet DEFAULT_SELECTION_TEXT_COLOR_SET
Constructor Detail |
---|
public TextStyle()
public TextStyle(Font font, TextColorSet normalTextColorSet, TextColorSet selectionTextColorSet)
Method Detail |
---|
public Object clone()
clone
in class Object
public boolean equals(Object object)
equals
in class Object
object
- The object to compare.public Font getFont()
public TextColorSet getNormalTextColorSet()
public TextColorSet getSelectionTextColorSet()
public int hashCode()
hashCode
in class Object
public void setFont(Font font)
font
- The font to set.public void setNormalTextColorSet(TextColorSet normalTextColorSet)
normalTextColorSet
- The normalTextColorSet to set.public void setSelectionTextColorSet(TextColorSet selectionTextColorSet)
selectionTextColorSet
- The selectionTextColorSet to set.public String toString()
toString
in class Object
protected static boolean equals(Object object0, Object object1)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |