Annotation Type Log.VoltageView


  • @Repeatable(VoltageViews.class)
    @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public static @interface Log.VoltageView
    Displays an analog input or a raw number with a number bar.
    Supported types:
    • Number
    • AnalogInput

    Custom properties:
    NameTypeDefault ValueNotes
    MinNumber0The minimum value of the bar
    MaxNumber5The maximum value of the bar
    CenterNumber0The center ("zero") value of the bar
    OrientationString"HORIZONTAL" The orientation of the bar. One of ["HORIZONTAL", "VERTICAL"]
    Number of tick marksNumber5 The number of discrete ticks on the bar
    • Element Detail

      • name

        java.lang.String name
        Returns:
        The name of the value on Shuffleboard; defaults to field or method name.
        Default:
        "NO_NAME"
      • tabName

        java.lang.String tabName
        Returns:
        The name of the tab in which to place this widget, if the default inferred tab/layout is not desired. Users should be careful to avoid namespace collisions if the default tab is not used. Note that Log and config annotations can be repeated to place widgets on multiple tabs.
        Default:
        "DEFAULT"
      • methodName

        java.lang.String methodName
        Returns:
        Optional name of a method to call on the field (or return value of the method) to obtain the actual value that will be logged. Useful if one does not desire to make an entire object Loggable, but still wants to log a value from it.
        Default:
        "DEFAULT"
      • min

        double min
        Returns:
        The minimum value of the bar.
        Default:
        0.0
      • max

        double max
        Returns:
        The maximum value of the bar.
        Default:
        5.0
      • center

        double center
        Returns:
        The center ("zero") value of the bar.
        Default:
        0.0
      • orientation

        java.lang.String orientation
        Returns:
        The orientation of the bar. Either "HORIZONTAL" or "VERTICAL".
        Default:
        "HORIZONTAL"
      • numTicks

        int numTicks
        Returns:
        Number of tick marks
        Default:
        5
      • rowIndex

        int rowIndex
        Returns:
        The row in which this widget should be placed. WARNING: If position/size is specified for one widget in an object, it should be specified for all widgets in that object to avoid overlaps.
        Default:
        -1
      • columnIndex

        int columnIndex
        Returns:
        The column in which this widget should be placed. WARNING: If position/size is specified for one widget in an object, it should be specified for all widgets in that object to avoid overlaps.
        Default:
        -1
      • width

        int width
        Returns:
        The width of this widget. WARNING: If position/size is specified for one widget in an object, it should be specified for all widgets in that object to avoid overlaps.
        Default:
        -1
      • height

        int height
        Returns:
        The height of this widget. WARNING: If position/size is specified for one widget in an object, it should be specified for all widgets in that object to avoid overlaps.
        Default:
        -1