try {
_sizeVal = Double.parseDouble(_size);
} catch (Exception e) {
try {
// cast to make sure the result of the expr is a double
_sizeExpr = new JavaExpr("(double)" + _size, this);
} catch (Throwable t) {
_sizeVal = 5;
_units = "image";
//Logger.debug(this, "Error in symbol size expression: " + _size, t);
}
}
if (_cond.length() != 0 && !_cond.equals("1")) {
try {
_condExpr = new JavaExpr(_cond, this);
} catch (Throwable t) {
//t.printStackTrace(); //XXX
}
}
if (_angle.length() != 0 && !_angle.equals("0")) {
try {
_angleExpr = new JavaExpr("(double)" + _angle, this);
} catch (Throwable ignored) {
}
}
if (_ratio.length() != 0 && !_ratio.equals("1")) {
try {
_ratioExpr = new JavaExpr("(double)" + _ratio, this);
} catch (Throwable ignored) {
}
}
if (_label.length() != 0) {
try {
_labelExpr = new JavaExpr(_label, this);
} catch (Throwable ignored) {
}
}
}