Class JDValueProgram

java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDValueProgram

public class JDValueProgram extends Object
A class to handle dynamic value program.
  • Field Details

    • MAP_BY_VALUE

      public static final int MAP_BY_VALUE
      Map object value to value defined by a correspondence table.
      See Also:
    • MAP_LINEAR

      public static final int MAP_LINEAR
      Linear map of object value. (only for INTEGER)
      See Also:
    • MAP_REMAP

      public static final int MAP_REMAP
      Remap value to coordinates of the peer JDObject. (only for INTEGER)
      See Also:
    • INTEGER_TYPE

      public static final int INTEGER_TYPE
      See Also:
    • COLOR_TYPE

      public static final int COLOR_TYPE
      See Also:
    • BOOLEAN_TYPE

      public static final int BOOLEAN_TYPE
      See Also:
  • Constructor Details

  • Method Details

    • getType

      public int getType()
    • setMode

      public boolean setMode(int m)
      Sets the mode of this program.
      Parameters:
      m - Mode to be set
      Returns:
      true only if this mode if allowed for the data type.
      See Also:
    • getMode

      public int getMode()
    • addNewEntry

      public void addNewEntry()
      Add a new entry to the correspondance table.
    • removeEntry

      public void removeEntry(int idx)
      Remove the entry in the correspondance table at the specified index.
      Parameters:
      idx - Index to remove
    • getEntryNumber

      public int getEntryNumber()
      Returns:
      number of entries in the correspondance table.
    • getDefaultMapping

      public String getDefaultMapping()
      Returns:
      a string representation of the default value, (correspondance table)
    • setDefaultMapping

      public boolean setDefaultMapping(String v)
      Sets the default value.
      Parameters:
      v - Default value as string
      Returns:
      true if success
    • getDefaultColorMapping

      public Color getDefaultColorMapping()
    • getDefaultBooleanMapping

      public boolean getDefaultBooleanMapping()
    • getDefaultIntegerMapping

      public int getDefaultIntegerMapping()
    • getValue

      public String getValue(int idx)
    • getCompleteValue

      public String getCompleteValue(int idx)
    • setValueAt

      public boolean setValueAt(int idx, String v)
    • getMapping

      public String getMapping(int idx)
    • setMappingAt

      public boolean setMappingAt(int idx, String v)
    • getColorMappingAt

      public Color getColorMappingAt(int idx)
    • getBooleanMappingAt

      public boolean getBooleanMappingAt(int idx)
    • getIntegerMappingAt

      public int getIntegerMappingAt(int idx)
    • getMinLinearMapping

      public int getMinLinearMapping()
    • getMaxLinearMapping

      public int getMaxLinearMapping()
    • setMinLinearValue

      public void setMinLinearValue(int min)
    • setMaxLinearValue

      public void setMaxLinearValue(int max)
    • recordObject

      public void recordObject(StringBuffer to_write, StringBuffer decal)