Class ByteMonitorWidget
- java.lang.Object
-
- org.csstudio.display.builder.model.Widget
-
- org.csstudio.display.builder.model.widgets.VisibleWidget
-
- org.csstudio.display.builder.model.widgets.PVWidget
-
- org.csstudio.display.builder.model.widgets.ByteMonitorWidget
-
public class ByteMonitorWidget extends PVWidget
Widget that displays the bits in an Integer or Long Integer value as a set of LEDs
-
-
Field Summary
Fields Modifier and Type Field Description static org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Boolean>
propBitReverse
'bit reverse' property: Reverse the direction that bits are displayed; if no, the start bit (the smallest bit) is on right or bottom.static org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Integer>
propNumBits
'num.static org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Integer>
propStartBit
'start bit' property: Number of first (smallest) bitstatic org.csstudio.display.builder.model.WidgetDescriptor
WIDGET_DESCRIPTOR
Widget descriptor-
Fields inherited from class org.csstudio.display.builder.model.widgets.PVWidget
RUNTIME_VALUE_NO_PV
-
Fields inherited from class org.csstudio.display.builder.model.Widget
BASE_WIDGET_VERSION, USER_DATA_REPRESENTATION, USER_DATA_RUNTIME, USER_DATA_SCRIPT_SUPPORT, USER_DATA_TOOLKIT_PARENT
-
-
Constructor Summary
Constructors Constructor Description ByteMonitorWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.csstudio.display.builder.model.WidgetConfigurator
getConfigurator(org.csstudio.display.builder.model.Version persisted_version)
Obtain configurator.WidgetProperty<java.lang.Boolean>
propBitReverse()
WidgetProperty<org.csstudio.display.builder.model.properties.WidgetFont>
propFont()
WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor>
propForegroundColor()
WidgetProperty<java.lang.Boolean>
propHorizontal()
org.csstudio.display.builder.model.ArrayWidgetProperty<org.csstudio.display.builder.model.properties.StringWidgetProperty>
propLabels()
WidgetProperty<java.lang.Integer>
propNumBits()
WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor>
propOffColor()
WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor>
propOnColor()
WidgetProperty<java.lang.Boolean>
propSquare()
WidgetProperty<java.lang.Integer>
propStartBit()
-
Methods inherited from class org.csstudio.display.builder.model.widgets.PVWidget
propBorderAlarmSensitive, propPVName, runtimePropValue
-
Methods inherited from class org.csstudio.display.builder.model.widgets.VisibleWidget
propTooltip, propVisible, runtimePropConnected
-
Methods inherited from class org.csstudio.display.builder.model.Widget
checkDisplayModel, checkProperty, checkProperty, clearUserData, expandPropertyNames, getDisplayModel, getEffectiveMacros, getID, getMacrosOrProperties, getName, getParent, getProperties, getProperty, getProperty, getPropertyByPath, getPropertyValue, getPropertyValue, getTopDisplayModel, getType, getUserData, getVersion, getWidgetClass, isClean, propActions, propClass, propHeight, propName, propRules, propScripts, propWidth, propX, propY, setConfiguratorResult, setPropertyValue, setPropertyValue, setUserData, toString
-
-
-
-
Field Detail
-
WIDGET_DESCRIPTOR
public static final org.csstudio.display.builder.model.WidgetDescriptor WIDGET_DESCRIPTOR
Widget descriptor
-
propStartBit
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Integer> propStartBit
'start bit' property: Number of first (smallest) bit
-
propNumBits
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Integer> propNumBits
'num. bits' property: Bit number in the integer to start displaying.
-
propBitReverse
public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Boolean> propBitReverse
'bit reverse' property: Reverse the direction that bits are displayed; if no, the start bit (the smallest bit) is on right or bottom.
-
-
Method Detail
-
getConfigurator
public org.csstudio.display.builder.model.WidgetConfigurator getConfigurator(org.csstudio.display.builder.model.Version persisted_version) throws java.lang.Exception
Description copied from class:Widget
Obtain configurator.While typically using the default
WidgetConfigurator
, widget may provide a different configurator for reading older persisted date.- Overrides:
getConfigurator
in classWidget
- Parameters:
persisted_version
- Version of the persisted data.- Returns:
- Widget configurator for that version
- Throws:
java.lang.Exception
- if persisted version cannot be handled
-
propOffColor
public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propOffColor()
- Returns:
- 'off_color' property
-
propOnColor
public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propOnColor()
- Returns:
- 'on_color' property
-
propStartBit
public WidgetProperty<java.lang.Integer> propStartBit()
- Returns:
- 'startBit' property
-
propNumBits
public WidgetProperty<java.lang.Integer> propNumBits()
- Returns:
- 'numBits' property
-
propBitReverse
public WidgetProperty<java.lang.Boolean> propBitReverse()
- Returns:
- 'bitReverse' property
-
propHorizontal
public WidgetProperty<java.lang.Boolean> propHorizontal()
- Returns:
- 'horizontal' property
-
propSquare
public WidgetProperty<java.lang.Boolean> propSquare()
- Returns:
- 'square' property
-
propForegroundColor
public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propForegroundColor()
- Returns:
- 'foreground_color' property
-
propFont
public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetFont> propFont()
- Returns:
- 'font' property
-
propLabels
public org.csstudio.display.builder.model.ArrayWidgetProperty<org.csstudio.display.builder.model.properties.StringWidgetProperty> propLabels()
- Returns:
- 'labels' property
-
-