public class PageEvaluation extends Object
IPageImage| Constructor and Description |
|---|
PageEvaluation(IPageImage _pageImage)
Constructor of PageEvaluation utility
|
| Modifier and Type | Method and Description |
|---|---|
List<IProblemItem> |
check(LowVisionType type,
String urlS,
int frameId)
Evaluate accessibility of target
IPageImage |
void |
generateReport(String _path,
String _htmlName,
String _imgName,
List<IProblemItem> _problemGroupArray)
Generate report file from
IProblemItem list. |
String[] |
getAllowedBackgroundColors()
Get allowed background colors
|
String[] |
getAllowedForegroundColors()
Get allowed foreground colors
|
ImagePositionInfo[] |
getInteriorImagePosition()
Get interior image position (e.g.,
|
IPageImage |
getPageImage()
Get target
IPageImage |
void |
setAllowedColors(String[] _fg,
String[] _bg)
Set allowed foreground/background colors
|
void |
setCurrentStyles(Map<String,ICurrentStyles> _styleMap) |
void |
setInteriorImagePosition(ImagePositionInfo[] infoArray)
Set interior image position (e.g.,
|
void |
unsupportedModeReport(File targetFile)
Generate report file for unsupported mode
|
public PageEvaluation(IPageImage _pageImage)
_pageImage - target IPageImagepublic IPageImage getPageImage()
IPageImageIPageImagepublic ImagePositionInfo[] getInteriorImagePosition()
ImagePositionInfopublic void setInteriorImagePosition(ImagePositionInfo[] infoArray)
infoArray - array of ImagePositionInfopublic void setCurrentStyles(Map<String,ICurrentStyles> _styleMap)
_styleMap - public String[] getAllowedForegroundColors()
public String[] getAllowedBackgroundColors()
public void setAllowedColors(String[] _fg, String[] _bg)
_fg - array of allowed foreground colors_bg - array of allowed background colorspublic List<IProblemItem> check(LowVisionType type, String urlS, int frameId)
IPageImagetype - target low vision typeurlS - target's URLframeId - target's frame IDIProblemItemLowVisionTypepublic void unsupportedModeReport(File targetFile) throws LowVisionException
targetFile - target file path to save reportLowVisionExceptionpublic void generateReport(String _path, String _htmlName, String _imgName, List<IProblemItem> _problemGroupArray) throws LowVisionException
IProblemItem list._path - target path_htmlName - report file name_imgName - report image file name_problemGroupArray - target IProblemItem listLowVisionException