public class JDValueProgram
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN_TYPE |
static int |
COLOR_TYPE |
static int |
INTEGER_TYPE |
static int |
MAP_BY_VALUE
Map object value to value defined by a correspondence table.
|
static int |
MAP_LINEAR
Linear map of object value.
|
static int |
MAP_REMAP
Remap value to coordinates of the peer JDObject.
|
Constructor and Description |
---|
JDValueProgram(int type)
Contruct a dynamic value program.
|
JDValueProgram(JDFileLoader f) |
Modifier and Type | Method and Description |
---|---|
void |
addNewEntry()
Add a new entry to the corespondance table.
|
boolean |
getBooleanMappingAt(int idx) |
java.awt.Color |
getColorMappingAt(int idx) |
java.lang.String |
getCompleteValue(int idx) |
boolean |
getDefaultBooleanMapping() |
java.awt.Color |
getDefaultColorMapping() |
int |
getDefaultIntegerMapping() |
java.lang.String |
getDefaultMapping()
Return a string representation of the default value, (correspondance table)
|
int |
getEntryNumber()
Return number of entries in the correspondance table.
|
int |
getIntegerMappingAt(int idx) |
java.lang.String |
getMapping(int idx) |
int |
getMaxLinearMapping() |
int |
getMinLinearMapping() |
int |
getMode() |
int |
getType() |
java.lang.String |
getValue(int idx) |
void |
recordObject(java.lang.StringBuffer to_write,
java.lang.StringBuffer decal) |
void |
removeEntry(int idx)
Remove the entry in the correspondance table at the specified index.
|
boolean |
setDefaultMapping(java.lang.String v)
Sets the default value.
|
boolean |
setMappingAt(int idx,
java.lang.String v) |
void |
setMaxLinearValue(int max) |
void |
setMinLinearValue(int min) |
boolean |
setMode(int m)
Sets the mode of this program.
|
boolean |
setValueAt(int idx,
java.lang.String v) |
public static final int MAP_BY_VALUE
public static final int MAP_LINEAR
public static final int MAP_REMAP
public static final int INTEGER_TYPE
public static final int COLOR_TYPE
public static final int BOOLEAN_TYPE
public JDValueProgram(int type)
type
- Type of data.INTEGER_TYPE
,
COLOR_TYPE
,
BOOLEAN_TYPE
public JDValueProgram(JDFileLoader f) throws java.io.IOException
java.io.IOException
public int getType()
public boolean setMode(int m)
m
- Mode to be setMAP_BY_VALUE
,
MAP_LINEAR
,
MAP_REMAP
public int getMode()
public void addNewEntry()
public void removeEntry(int idx)
public int getEntryNumber()
public java.lang.String getDefaultMapping()
public boolean setDefaultMapping(java.lang.String v)
public java.awt.Color getDefaultColorMapping()
public boolean getDefaultBooleanMapping()
public int getDefaultIntegerMapping()
public java.lang.String getValue(int idx)
public java.lang.String getCompleteValue(int idx)
public boolean setValueAt(int idx, java.lang.String v)
public java.lang.String getMapping(int idx)
public boolean setMappingAt(int idx, java.lang.String v)
public java.awt.Color getColorMappingAt(int idx)
public boolean getBooleanMappingAt(int idx)
public int getIntegerMappingAt(int idx)
public int getMinLinearMapping()
public int getMaxLinearMapping()
public void setMinLinearValue(int min)
public void setMaxLinearValue(int max)
public void recordObject(java.lang.StringBuffer to_write, java.lang.StringBuffer decal)