Field scale field
This commit is contained in:
parent
4f6e466843
commit
6ae10a4c63
|
@ -26,7 +26,7 @@ public class Field {
|
|||
private final FieldType type;
|
||||
private final int bitOffset;
|
||||
private final String[] options;
|
||||
// todo: add multiplier support!
|
||||
private double scale = 1;
|
||||
|
||||
public Field(String name, int offset, FieldType type) {
|
||||
this(name, offset, type, NO_BIT_OFFSET);
|
||||
|
@ -250,4 +250,13 @@ public class Field {
|
|||
public boolean getBooleanValue(ConfigurationImage ci) {
|
||||
return getValue(ci) != 0.0;
|
||||
}
|
||||
|
||||
public Field setScale(double scale) {
|
||||
this.scale = scale;
|
||||
return this;
|
||||
}
|
||||
|
||||
public double getScale() {
|
||||
return scale;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue