public class OpacityVisitor extends java.lang.Object implements PaintVisitor
| Constructor and Description |
|---|
OpacityVisitor(int alpha)
Creates an opacity transformer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
visitColor(int color)
Changes a color into an other one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitTransformpublic OpacityVisitor(int alpha)
alpha - the opacity to applypublic int visitColor(int color)
PaintVisitorvisitColor in interface PaintVisitorcolor - the ARGB color to change