|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.rtextarea.ColorBackgroundPainterStrategy
public class ColorBackgroundPainterStrategy
A strategy for painting the background of an RTextAreaBase
as a solid color. The default background for RTextAreaBase
s
is this strategy using the color white.
ImageBackgroundPainterStrategy
Constructor Summary | |
---|---|
ColorBackgroundPainterStrategy(java.awt.Color color)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o2)
Returns whether or not the specified object is equivalent to this one. |
java.awt.Color |
getColor()
Returns the color used to paint the background. |
int |
hashCode()
Returns the hash code to use when placing an object of this type into hash maps. |
void |
paint(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the background. |
void |
setColor(java.awt.Color color)
Sets the color used to paint the background. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorBackgroundPainterStrategy(java.awt.Color color)
color
- The color to use when painting the background.Method Detail |
---|
public boolean equals(java.lang.Object o2)
equals
in class java.lang.Object
o2
- The object to which to compare.
o2
is another
ColorBackgroundPainterStrategy
representing
the same color as this one.public java.awt.Color getColor()
setColor(java.awt.Color)
public int hashCode()
equals(Object)
, to keep FindBugs happy.
hashCode
in class java.lang.Object
public void paint(java.awt.Graphics g, java.awt.Rectangle bounds)
paint
in interface BackgroundPainterStrategy
g
- The graphics context.bounds
- The bounds of the object whose backgrouns we're
painting.public void setColor(java.awt.Color color)
color
- The color to use.getColor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |