Public Methods |
static
String
|
addThousandsSymbol(String integerPart, String thousandsSymbol)
|
static
RulerItem
|
calibrate(Annot annot, RulerItem rulerItem, float userInput)
|
static
double
|
convertToUnit(double value, String originalUnit, String targetUnit)
|
static
String
|
getAnnotMeasureInfo(Annot annot)
|
static
String
|
getAreaKey()
|
static
MeasureInfo
|
getAxisInfo(JSONObject jsonObject)
|
static
String
|
getAxisKey()
|
static
Map<String, Map<String, Double>>
|
getConversionDictionary()
|
static
String
|
getDecimalSymbolKey()
|
static
MeasureInfo
|
getDefaultArea()
|
static
MeasureInfo
|
getDefaultAxisInfo()
|
static
MeasureInfo
|
getDefaultDistance()
|
static
String
|
getDefaultMeasureInfo()
|
static
MeasureInfo
|
getDefaultMeasureInfo(int annotType)
|
static
String
|
getDisplayKey()
|
static
String
|
getDistanceKey()
|
static
String
|
getFactorKey()
|
static
Integer
|
getFractionPrecision(int position)
|
static
int
|
getFractionPrecisionPosition(int precision)
|
static
HashMap<String, Integer>
|
getFractionPrecisions()
|
static
MeasureInfo
|
getFromJSON(String json)
|
static
String
|
getIT(Annot annot)
|
static
double
|
getLineLength(double pt1x, double pt1y, double pt2x, double pt2y)
|
static
MeasureInfo
|
getMeasureInfo(int annotType, JSONObject jsonObject)
|
static
List<MeasureInfo>
|
getMeasureInfoList(JSONArray measureArray)
|
static
List<MeasureInfo>
|
getMeasureInfoList(String measureArrayStr)
|
static
List<MeasureInfo>
|
getMeasureInfoList(int annotType, JSONObject jsonObject)
|
static
JSONObject
|
getMeasureJSON(int annotType, JSONObject jsonObject)
|
static
String
|
getMeasureKey(int annotType)
|
static
String
|
getMeasurementText(double value, List<MeasureInfo> numberFormats)
|
static
String
|
getMeasurementText(double value, MeasureInfo numberFormat)
|
static
Integer
|
getPrecision(int position)
|
static
String
|
getPrecisionKey()
|
static
int
|
getPrecisionPosition(int precision)
|
static
HashMap<String, Integer>
|
getPrecisions()
|
static
RulerItem
|
getRulerItemFromAnnot(Annot annot)
|
static
RulerItem
|
getScale(JSONObject jsonObject)
Converts FDF to RulerItem
|
static
String
|
getScaleKey()
|
static
String
|
getThousandSymbolKey()
|
static
String
|
getTypeKey()
|
static
double
|
getUnitConversion(String unit)
|
static
Map<String, Double>
|
getUnitConversion()
|
static
String
|
getUnitKey()
|
static
String
|
getUnitPositionKey()
|
static
String
|
getUnitPrefixKey()
|
static
String
|
getUnitSuffixKey()
|
static
boolean
|
isAreaMeasure(int annotType)
|
static
boolean
|
isDistanceMeasure(int annotType)
|
static
String
|
modifyLastUnitValue(double value, MeasureInfo numberFormat)
|
static
void
|
putMeasurementInfo(Annot annot, String json)
|
static
String
|
setScaleAndPrecision(int annotType, JSONObject inputMeasureObject, RulerItem rulerItem)
This method sets the scale and precision for an existing annotation
The measurement information is from annotation's dict
|
static
String
|
toMeasureInfoJSON(MeasureInfo info)
|
static
void
|
updateMeasureInfo(JSONObject jsonObject, String key, MeasureInfo info)
|