|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<E> com.alee.extended.painter.ColorPainter<E>
E
- component typepublic class ColorPainter<E extends javax.swing.JComponent>
Simple color painter. This painter simply fills component background with a single color.
AbstractPainter
,
Painter
Field Summary | |
---|---|
protected java.awt.Color |
color
Color to fill component with. |
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
ColorPainter(java.awt.Color color)
Constructs color painter with specified fill color. |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Returns color to fill component with. |
java.lang.Boolean |
isOpaque(E c)
Returns whether visual data provided by this painter is opaque or not. |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints visual data onto the component graphics. |
void |
setColor(java.awt.Color color)
Sets color to fill component with. |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, getMargin, getPreferredSize, install, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color color
Constructor Detail |
---|
public ColorPainter(java.awt.Color color)
color
- color to fill component withMethod Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- new color to fill component withpublic java.lang.Boolean isOpaque(E c)
isOpaque
in interface Painter<E extends javax.swing.JComponent>
isOpaque
in class AbstractPainter<E extends javax.swing.JComponent>
c
- component to process
public void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E c)
g2d
- component graphicsbounds
- bounds for painter visual datac
- component to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |