E - component typepublic class WebStylePainter<E extends javax.swing.JComponent> extends AbstractPainter<E>
AbstractPainter,
Painter| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drawBackground
todo 1.
|
protected boolean |
drawFocus |
protected boolean |
fillBackground |
protected int |
round |
protected int |
shadeWidth |
protected boolean |
webColored |
listeners, margin, opaque, preferredSize| Constructor and Description |
|---|
WebStylePainter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getMargin(E c)
Returns margin required for visual data provided by this painter.
|
int |
getRound() |
int |
getShadeWidth() |
boolean |
isDrawBackground() |
boolean |
isDrawFocus() |
boolean |
isFillBackground() |
boolean |
isWebColored() |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints visual data onto the component graphics.
|
void |
setDrawBackground(boolean drawBackground) |
void |
setDrawFocus(boolean drawFocus) |
void |
setFillBackground(boolean fillBackground) |
void |
setRound(int round) |
void |
setShadeWidth(int shadeWidth) |
void |
setWebColored(boolean webColored) |
addPainterListener, getPreferredSize, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacityprotected boolean drawBackground
protected int round
protected boolean drawFocus
protected int shadeWidth
protected boolean fillBackground
protected boolean webColored
public boolean isDrawBackground()
public void setDrawBackground(boolean drawBackground)
public int getRound()
public void setRound(int round)
public boolean isDrawFocus()
public void setDrawFocus(boolean drawFocus)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public boolean isFillBackground()
public void setFillBackground(boolean fillBackground)
public boolean isWebColored()
public void setWebColored(boolean webColored)
public java.awt.Insets getMargin(E c)
public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
g2d - component graphicsbounds - bounds for painter visual datac - component to process