public class ColorAnalyzer
extends java.lang.Object
Constructor and Description |
---|
ColorAnalyzer(Area root)
Constructs a color analyzer.
|
Modifier and Type | Method and Description |
---|---|
double |
getColorPercentage(Area node)
Obtains the average percentage of all the text that has the given color.
|
double |
getColorPercentage(java.awt.Color color)
Obtains the percentage of the text that has the given color.
|
public ColorAnalyzer(Area root)
root
- public double getColorPercentage(java.awt.Color color)
color
- the color to be tested.public double getColorPercentage(Area node)
color
- the color to be tested.