|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.win32input.jwintab.Range fr.emn.win32input.jwintab.PhysicalRange
This is a class that represents a physical range. A physical range is a logical range with information about its associated physical dimension. This information includes the physical unit, resolution, and whether the dimension is relative or absolute. Physical extent can be deduced from logical range and dimension's resolution and unit.
Field Summary | |
boolean |
absolute
|
float |
resolution
|
int |
unit
|
static int |
UNIT_CENTIMETERS
|
static int |
UNIT_CIRCLE
|
static int |
UNIT_INCHES
|
static int |
UNIT_NONE
|
Fields inherited from class fr.emn.win32input.jwintab.Range |
max, min |
Method Summary | |
float |
getPhysicalExtent()
Returns the dimension's physical extent. |
float |
getResolution()
Returns the dimension's resolution. |
int |
getUnit()
Returns the unit in which the resolution is expressed. |
boolean |
isAbsolute()
Returns whether this dimension is physically absolute. |
void |
setAbsolute(boolean absolute)
|
void |
setResolution(float resolution)
|
void |
setUnit(int unit)
|
static java.lang.String |
unitToString(int unit)
|
Methods inherited from class fr.emn.win32input.jwintab.Range |
getExtent, getMax, getMin, setMax, setMin, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNIT_NONE
public static final int UNIT_INCHES
public static final int UNIT_CENTIMETERS
public static final int UNIT_CIRCLE
public int unit
public float resolution
public boolean absolute
Method Detail |
public float getPhysicalExtent()
public float getResolution()
public int getUnit()
public boolean isAbsolute()
public void setAbsolute(boolean absolute)
public void setResolution(float resolution)
public void setUnit(int unit)
public static java.lang.String unitToString(int unit)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |