public class NumericalProperty extends Property
Constructor and Description |
---|
NumericalProperty(java.lang.String name) |
NumericalProperty(java.lang.String name,
int numberOfBits,
long defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
cloneValuesTo(Property otherProperty) |
it.unimi.dsi.fastutil.ints.IntSet |
findElementsWithValue(long value,
it.unimi.dsi.fastutil.ints.IntSet s) |
long |
getMemoryFootprintInBytes() |
toools.gui.ColorPalette |
getPalette() |
long |
getValue(int id) |
java.awt.Color |
getValueAsColor(int e) |
double |
getValueAsDouble(int id) |
float |
getValueAsFloat(int id) |
int |
getValueAsInt(int id) |
java.lang.String |
getValueAsString(int id) |
boolean |
haveSameValues(int a,
int b) |
static void |
main(java.lang.String[] args) |
void |
randomize(it.unimi.dsi.fastutil.ints.IntSet set,
java.util.Random random) |
void |
setPalette(toools.gui.ColorPalette palette) |
void |
setValue(int id,
double newValue) |
void |
setValue(int id,
float newValue) |
void |
setValue(int id,
long newValue) |
void |
setValue(int id,
java.lang.String value) |
java.lang.String |
toString(it.unimi.dsi.fastutil.ints.IntSet s) |
findProperty, getListeners, getName, isSetted, setStatus, toString, unsetItAll
public NumericalProperty(java.lang.String name)
public NumericalProperty(java.lang.String name, int numberOfBits, long defaultValue)
public toools.gui.ColorPalette getPalette()
public void setPalette(toools.gui.ColorPalette palette)
public java.lang.String toString(it.unimi.dsi.fastutil.ints.IntSet s)
public long getValue(int id)
public int getValueAsInt(int id)
public double getValueAsDouble(int id)
public float getValueAsFloat(int id)
public void setValue(int id, double newValue)
public void setValue(int id, float newValue)
public java.awt.Color getValueAsColor(int e)
public void setValue(int id, long newValue)
public static void main(java.lang.String[] args)
public void setValue(int id, java.lang.String value)
public java.lang.String getValueAsString(int id)
getValueAsString
in class Property
public void cloneValuesTo(Property otherProperty)
cloneValuesTo
in class Property
public it.unimi.dsi.fastutil.ints.IntSet findElementsWithValue(long value, it.unimi.dsi.fastutil.ints.IntSet s)
public boolean haveSameValues(int a, int b)
haveSameValues
in class Property
public long getMemoryFootprintInBytes()
public void randomize(it.unimi.dsi.fastutil.ints.IntSet set, java.util.Random random)