| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.actf.visualization.engines.lowvision.LowVisionType
public class LowVisionType
This class defines low vision simulation type
PageImageFactory| Field Summary | |
|---|---|
| static int | CVD_DEUTANColor vision deficiency type: Deutan | 
| static int | CVD_PROTANColor vision deficiency type: Protan | 
| static int | CVD_TRITANColor vision deficiency type: Tritan | 
| Constructor Summary | |
|---|---|
| LowVisionType()Constructor of LowVisionType | |
| Method Summary | |
|---|---|
|  int | convertColor(int _src)Convert target color based on current low vision simulation type configuration | 
|  int | countTypes()Get number of enabled simulation types | 
|  boolean | doBlur()Check if a blur type simulation is enabled | 
|  boolean | doChangeColors()Check if at least one of color related simulation (color vision deficiency, color filter, or glare) is enabled | 
|  boolean | doColorFilter()Check if a color filter type simulation is enabled | 
|  boolean | doCVD()Check if a color vision deficiency type simulation is enabled | 
|  boolean | doEyesight()Check if an eyesight type simulation is enabled | 
|  boolean | doGlare()Check if a glare type simulation is enabled | 
|  float[] | getColorFilterRGB()Get color filter value array (Red, Green and Blue). | 
|  int | getCVDType()Get target color vision deficiency type | 
|  double | getDisplayHeight()Get height of target display. | 
|  int | getDisplayResolution()Get vertical resolution of target display. | 
|  double | getEyeDisplayDistance()Get distance between user's eye and display. | 
|  float | getEyesightDegree()Get target eyesight degree of eyesight type simulation | 
|  double | getEyesightLength()Get indistinguishable length for target eyesight degree | 
|  double | getEyesightPixel()Get indistinguishable pixel size for target eyesight degree | 
|  int | getEyesightRadius()Get indistinguishable radius for target eyesight degree | 
|  float | getGlareDegree()Get target degree of glare | 
|  void | setColorFilter(boolean enable)Turn on/off a color filter type simulation | 
|  void | setColorFilterDegree(float _degree)Set degree of color filter | 
|  void | setCVD(boolean enable)Turn on/off a color vision deficiency type simulation | 
|  void | setCVDType(int cvd_type)Set target color vision deficiency type | 
|  void | setDisplayHeight(double height)Set display height in target environment | 
|  void | setDisplayResolution(int resolution)Set resolution of target display | 
|  void | setEyeDisplayDistance(double distance)Set distance between user's eye and display | 
|  void | setEyesight(boolean enable)Turn on/off an eyesight type simulation | 
|  void | setEyesightDegree(float _deg)Set target eyesight degree of eyesight type simulation | 
|  void | setGlare(boolean enable)Turn on/off a glare type simulation | 
|  void | setGlareDegree(float _deg)Set target degree of glare | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int CVD_PROTAN
public static final int CVD_DEUTAN
public static final int CVD_TRITAN
| Constructor Detail | 
|---|
public LowVisionType()
| Method Detail | 
|---|
public boolean doEyesight()
public void setEyesight(boolean enable)
enable - set true to turn onpublic float getEyesightDegree()
public void setEyesightDegree(float _deg)
                       throws LowVisionException
_deg - target eyesight degree
LowVisionException - if target degree is not positive valuepublic double getEyesightPixel()
public int getEyesightRadius()
public double getEyesightLength()
public boolean doCVD()
public void setCVD(boolean enable)
enable - set true to turn onpublic int getCVDType()
public void setCVDType(int cvd_type)
                throws LowVisionException
cvd_type - target color vision deficiency type
LowVisionException - if target type is not CVD_DEUTAN,CVD_PROTAN, or CVD_TRITANpublic boolean doColorFilter()
public void setColorFilter(boolean enable)
enable - set true to turn onpublic float[] getColorFilterRGB()
public void setColorFilterDegree(float _degree)
                          throws LowVisionException
_degree - degree of color filter
LowVisionException - if resulting filter value exceeds the range of [0.0, 1.0].public boolean doGlare()
public void setGlare(boolean enable)
enable - set true to turn onpublic float getGlareDegree()
public void setGlareDegree(float _deg)
_deg - target degree of glarepublic int countTypes()
public boolean doBlur()
public boolean doChangeColors()
public int convertColor(int _src)
                 throws LowVisionException
_src - target color
LowVisionExceptionpublic String toString()
toString in class Objectpublic double getDisplayHeight()
public int getDisplayResolution()
public double getEyeDisplayDistance()
public void setDisplayHeight(double height)
height - target display heightpublic void setDisplayResolution(int resolution)
resolution - resolution of target displaypublic void setEyeDisplayDistance(double distance)
distance - distance between user's eye and display| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||