public class ColorAnalyzer extends Object
| Constructor and Description |
|---|
ColorAnalyzer(org.fit.layout.model.Area root)
Constructs a color analyzer.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getColorPercentage(org.fit.layout.model.Area node)
Obtains the average percentage of all the text that has the given color.
|
double |
getColorPercentage(Color color)
Obtains the percentage of the text that has the given color.
|
public ColorAnalyzer(org.fit.layout.model.Area root)
root - public double getColorPercentage(Color color)
color - the color to be tested.public double getColorPercentage(org.fit.layout.model.Area node)
color - the color to be tested.Copyright © 2015. All rights reserved.