public class RegexColorFactory extends java.lang.Object implements ColorFactory
Constructor and Description |
---|
RegexColorFactory(javax.swing.JTextField source) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor(java.lang.Object object)
Colors items black if they match the regex, gray otherwise.
|
public java.awt.Color getColor(java.lang.Object object)
getColor
in interface ColorFactory
object
- Anything with a valid toString();