|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.coordinate.CoordinateSystemMetric
The CoordinateSystemMetric relates a
CoordinateSystem to a metric system.
The relation is established by using a measure value and a measuring unit.
The measure value represents the amount of units of the
CoordinateSystem that should represent the measuring unit.
The supported measuring units are defined by the following constants:
| Constant | Description |
MetricConstants.CENTIMETER
|
The amount of CoordinateSystem units defined by the measure
value are representing a centimeter.
|
MetricConstants.MILLIMETER
|
The amount of CoordinateSystem units defined by the measure
value are representing a millimeter.
|
MetricConstants.MILLIMETER_10
|
The amount of CoordinateSystem units defined by the measure
value are representing a tenth part of a millimeter.
|
MetricConstants.MILLIMETER_100
|
The amount of CoordinateSystem units defined by the measure
value are representing a hundredth part of a millimeter.
|
MetricConstants.INCH
|
The values are given in unit inch.
|
MetricConstants.INTERN
|
CoordinateSystem values are given in units as they internally
used.
|
| Field Summary | |
static CoordinateSystemMetric |
SOLE_CSMETRIC
|
| Method Summary | |
double[] |
computeCoordinateSystemValues(int width,
int height)
|
double |
computeMeasuringUnitConversionFactor(int measuringUnitConvertTo)
|
static Boundary |
convertBoundingBox(double left,
double top,
double right,
double bottom,
double measureValue,
int measuringUnit,
int dpi)
|
Boundary |
convertBoundingBox(int dpi,
Boundary bbox)
|
Boundary |
convertBoundingBox(int dpi,
CoordinateSystem coordSystem)
Returns an instance of Boundary with the size of the given
CoordinateSystem according the the internal measuring unit,
value and the given resolution. |
double |
convertMeasureValue(int measuringUnitConvertTo)
|
MetricExpression |
convertMetricExpression(MetricExpression expression,
int measuringUnitConvertTo)
|
double |
convertMetricExpressionValue(double value,
int measuringUnitConvertFrom,
int measuringUnitConvertTo)
|
double |
convertMetricExpressionValue(MetricExpression expression,
int measuringUnitConvertTo)
|
CoordinateSystemMetric |
deepCopy()
Returns a deep copied instance of a CoordinateSystemMetric. |
double |
getMeasureValue()
Returns the current setting for the measure value. |
int |
getMeasuringUnit()
Returns a constants that tells about the measuring unit currently chosen. |
int |
getUnit()
Returns the set measuring unit. |
java.lang.String |
getUnitName()
Returns a textual description / abbreviation of the current selected measuring unit of this metric. |
java.lang.String |
getUnitNameAbbreviation()
Returns the abbreviation for the unit name of this system metric. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final CoordinateSystemMetric SOLE_CSMETRIC
| Method Detail |
public final double getMeasureValue()
public final int getMeasuringUnit()
public final int getUnit()
public final java.lang.String getUnitName()
public final java.lang.String getUnitNameAbbreviation()
public final double computeMeasuringUnitConversionFactor(int measuringUnitConvertTo)
public final double[] computeCoordinateSystemValues(int width,
int height)
public final double convertMeasureValue(int measuringUnitConvertTo)
public final MetricExpression convertMetricExpression(MetricExpression expression,
int measuringUnitConvertTo)
public final double convertMetricExpressionValue(double value,
int measuringUnitConvertFrom,
int measuringUnitConvertTo)
public final double convertMetricExpressionValue(MetricExpression expression,
int measuringUnitConvertTo)
public final Boundary convertBoundingBox(int dpi,
CoordinateSystem coordSystem)
Boundary with the size of the given
CoordinateSystem according the the internal measuring unit,
value and the given resolution.
dpi - the dpi to which the size has to be calculated.coordSystem - the CoordinateSystem which has to be transformed.
Boundary with the size of the given
CoordinateSystem according the the internal measuring unit,
value and the given resolution.
public final Boundary convertBoundingBox(int dpi,
Boundary bbox)
public final CoordinateSystemMetric deepCopy()
CoordinateSystemMetric.
public java.lang.String toString()
Object.toString()
public static final Boundary convertBoundingBox(double left,
double top,
double right,
double bottom,
double measureValue,
int measuringUnit,
int dpi)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||