|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jcurzez.Pen
A Pen contains three attributes:
| Field Summary | |
protected Attribute |
attribute
Attribute for this Pen. |
protected BackgroundColor |
background
Background color for this Pen. |
protected ForegroundColor |
foreground
Foreground color for this Pen. |
| Constructor Summary | |
Pen()
Creates a new pen with defaults values for foreground color, background color and attribute. |
|
Pen(ForegroundColor foreground,
BackgroundColor background,
Attribute attribute)
Creates a new pen with specified foreground, background and attribute. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Checks whether this is equal to o. |
Attribute |
getAttribute()
Retrieves the attribute of this pen. |
BackgroundColor |
getBackgroundColor()
Retrieves the background color. |
ForegroundColor |
getForegroundColor()
Retrieves the foreground color. |
void |
setAttribute(Attribute attribute)
Changes the attribute. |
void |
setBackgroundColor(BackgroundColor background)
Changes the background color. |
void |
setForegroundColor(ForegroundColor foreground)
Changes the foreground color. |
java.lang.String |
toString()
Returns a string representation of this. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ForegroundColor foreground
Pen.
protected BackgroundColor background
Pen.
protected Attribute attribute
Pen.
| Constructor Detail |
public Pen()
public Pen(ForegroundColor foreground,
BackgroundColor background,
Attribute attribute)
foreground - the foreground color.background - the background color.attribute - the attribute fro this pen.| Method Detail |
public boolean equals(java.lang.Object o)
this is equal to o.
equals in class java.lang.Objecto - the object to compare this with.true if this is equal to
o.public void setBackgroundColor(BackgroundColor background)
background - the new background color.public void setForegroundColor(ForegroundColor foreground)
foreground - the new foreground color.public void setAttribute(Attribute attribute)
attribute - the new attribute.public ForegroundColor getForegroundColor()
public BackgroundColor getBackgroundColor()
public Attribute getAttribute()
public java.lang.String toString()
this.
It has the form [ _foreground_ on _background_ with _attribute_ ].
toString in class java.lang.Objectthis.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||