|
||||||||||
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.AlphaLayerPainter<E>
E
- component typepublic class AlphaLayerPainter<E extends javax.swing.JComponent>
Alpha layer painter. This painter fills component background with an alpha-like texture.
AbstractPainter
,
Painter
Field Summary | |
---|---|
protected java.awt.Color |
darkSquareColor
Dark square color. |
protected java.awt.Color |
lightSquareColor
Light square color. |
protected int |
squareSize
Square size. |
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
AlphaLayerPainter()
Constructs default alpha layer painter. |
|
AlphaLayerPainter(java.awt.Color lightSquareColor,
java.awt.Color darkSquareColor)
Constructs alpha layer painter with a specified square colors. |
|
AlphaLayerPainter(int squareSize)
Constructs alpha layer painter with a specified square size. |
|
AlphaLayerPainter(int squareSize,
java.awt.Color lightSquareColor,
java.awt.Color darkSquareColor)
Constructs alpha layer painter with a specified square size and colors. |
Method Summary | |
---|---|
java.awt.Color |
getDarkSquareColor()
Returns dark square color. |
java.awt.Color |
getLightSquareColor()
Returns light square color. |
int |
getSquareSize()
Returns square size. |
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 |
setDarkSquareColor(java.awt.Color darkSquareColor)
Sets dark square color. |
void |
setLightSquareColor(java.awt.Color lightSquareColor)
Sets light square color. |
void |
setSquareSize(int squareSize)
Sets square size. |
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 int squareSize
protected java.awt.Color lightSquareColor
protected java.awt.Color darkSquareColor
Constructor Detail |
---|
public AlphaLayerPainter()
public AlphaLayerPainter(int squareSize)
public AlphaLayerPainter(java.awt.Color lightSquareColor, java.awt.Color darkSquareColor)
public AlphaLayerPainter(int squareSize, java.awt.Color lightSquareColor, java.awt.Color darkSquareColor)
Method Detail |
---|
public int getSquareSize()
public void setSquareSize(int squareSize)
squareSize
- new square sizepublic java.awt.Color getLightSquareColor()
public void setLightSquareColor(java.awt.Color lightSquareColor)
lightSquareColor
- new light square colorpublic java.awt.Color getDarkSquareColor()
public void setDarkSquareColor(java.awt.Color darkSquareColor)
darkSquareColor
- new dark square colorpublic 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 |