public class InnerShadePainter<E extends javax.swing.JComponent> extends NinePatchIconPainter<E>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cachedRound |
protected float |
cachedShadeOpacity |
protected int |
cachedShadeWidth |
protected boolean |
drawBottom |
protected boolean |
drawLeft |
protected boolean |
drawRight |
protected boolean |
drawTop |
protected int |
round |
protected float |
shadeOpacity |
protected int |
shadeWidth |
iconlisteners, margin, opaque, preferredSize| Constructor and Description |
|---|
InnerShadePainter() |
InnerShadePainter(boolean drawTop,
boolean drawLeft,
boolean drawBottom,
boolean drawRight) |
InnerShadePainter(int shadeWidth,
int round,
float shadeOpacity) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getMargin(E c)
Returns margin required for visual data provided by this painter.
|
int |
getRound() |
float |
getShadeOpacity() |
int |
getShadeWidth() |
boolean |
isDrawBottom() |
boolean |
isDrawLeft() |
boolean |
isDrawRight() |
boolean |
isDrawTop() |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints visual data onto the component graphics.
|
InnerShadePainter<E> |
setDrawBottom(boolean drawBottom) |
InnerShadePainter<E> |
setDrawLeft(boolean drawLeft) |
InnerShadePainter<E> |
setDrawRight(boolean drawRight) |
InnerShadePainter<E> |
setDrawSides(boolean drawTop,
boolean drawLeft,
boolean drawBottom,
boolean drawRight) |
InnerShadePainter<E> |
setDrawTop(boolean drawTop) |
InnerShadePainter<E> |
setRound(int round) |
InnerShadePainter<E> |
setShadeOpacity(float shadeOpacity) |
InnerShadePainter<E> |
setShadeWidth(int shadeWidth) |
protected void |
updateNinePatchIcon() |
getNinePatchIcon, getPreferredSize, setNinePatchIconaddPainterListener, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacityprotected int shadeWidth
protected int round
protected float shadeOpacity
protected boolean drawTop
protected boolean drawLeft
protected boolean drawBottom
protected boolean drawRight
protected int cachedShadeWidth
protected int cachedRound
protected float cachedShadeOpacity
public InnerShadePainter()
public InnerShadePainter(int shadeWidth,
int round,
float shadeOpacity)
public InnerShadePainter(boolean drawTop,
boolean drawLeft,
boolean drawBottom,
boolean drawRight)
protected void updateNinePatchIcon()
public int getShadeWidth()
public InnerShadePainter<E> setShadeWidth(int shadeWidth)
public int getRound()
public InnerShadePainter<E> setRound(int round)
public float getShadeOpacity()
public InnerShadePainter<E> setShadeOpacity(float shadeOpacity)
public boolean isDrawTop()
public InnerShadePainter<E> setDrawTop(boolean drawTop)
public boolean isDrawLeft()
public InnerShadePainter<E> setDrawLeft(boolean drawLeft)
public boolean isDrawBottom()
public InnerShadePainter<E> setDrawBottom(boolean drawBottom)
public boolean isDrawRight()
public InnerShadePainter<E> setDrawRight(boolean drawRight)
public InnerShadePainter<E> setDrawSides(boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
public java.awt.Insets getMargin(E c)
public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)