|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<javax.swing.JComponent> com.alee.examples.groups.complex.ComplexExample.ShadeBackgroundPainter
public class ComplexExample.ShadeBackgroundPainter
Custom shade background painter.
Field Summary | |
---|---|
protected java.awt.image.BufferedImage |
bg
Background image. |
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
ComplexExample.ShadeBackgroundPainter(java.awt.image.BufferedImage bg)
Constructs new shade background painter. |
Method Summary | |
---|---|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns preferred size required for proper painting of visual data provided by this painter. |
protected NinePatchIcon |
getShadeIcon()
Returns shade icon. |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
javax.swing.JComponent c)
Paints visual data onto the component graphics. |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, getMargin, install, isOpaque, 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.image.BufferedImage bg
Constructor Detail |
---|
public ComplexExample.ShadeBackgroundPainter(java.awt.image.BufferedImage bg)
bg
- background imageMethod Detail |
---|
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in interface Painter<javax.swing.JComponent>
getPreferredSize
in class AbstractPainter<javax.swing.JComponent>
c
- component to process
public void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, javax.swing.JComponent c)
g2d
- component graphicsbounds
- bounds for painter visual datac
- component to processprotected NinePatchIcon getShadeIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |