Module omix.api

Annotation Type Unit


@Documented
@Target(FIELD)
@OVLTarget({FIELD,ACCESSORY,TYPE_USE})
@Retention(RUNTIME)
@Deprecated(since="Omix 2.0")
@ReplacedBy("Suffix")
public @interface Unit
Deprecated.
The value of the annotated member is displayed with the given unit.
Examples:
@Unit("m") double distance = 25.0;

Unit


@Unit("s") SpinBox time : method(int);

Unit

Author:
Dr. Peter Droste, Omix Visualization
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    String value
    Deprecated.
    unit for the value of the annotated member
  • Element Details

    • value

      String value
      Deprecated.
      unit for the value of the annotated member
      Returns:
      the unit symbol