Class ByteMonitorModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.ByteMonitorModel
- All Implemented Interfaces:
IPVWidgetModel
,IAdaptable
,IPropertySource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Integer
static final Color
static final String
The ID of this widget model.static final String
Reverse the direction that bytes are displayed normal display is start bit on right or bottomstatic final String
The ID of the effect 3D property.static final String
True if the LEDs are horizontal arranged.static final String
Label of each bitstatic final String
Spacing between LEDsstatic final String
Color of space between LEDsstatic final String
The number of bits to displaystatic final String
Default color if the bit is offstatic final String
Default color if the bit is onstatic final String
static final String
True if the LEDs are square LED.static final String
The bit number to start displayingFields inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
PROP_ACTIONS, PROP_BORDER_COLOR, PROP_BORDER_STYLE, PROP_BORDER_WIDTH, PROP_COLOR_BACKGROUND, PROP_COLOR_FOREGROUND, PROP_ENABLED, PROP_FONT, PROP_HEIGHT, PROP_NAME, PROP_RULES, PROP_SCALE_OPTIONS, PROP_SCRIPTS, PROP_SRC_CONNECTIONS, PROP_TGT_CONNECTIONS, PROP_TOOLTIP, PROP_VISIBLE, PROP_WIDGET_TYPE, PROP_WIDGET_UID, PROP_WIDTH, PROP_XPOS, PROP_YPOS, VERSION
Fields inherited from interface org.csstudio.opibuilder.model.IPVWidgetModel
PROP_ALARM_PULSING, PROP_BACKCOLOR_ALARMSENSITIVE, PROP_BORDER_ALARMSENSITIVE, PROP_FORECOLOR_ALARMSENSITIVE, PROP_PVNAME, PROP_PVVALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configure the properties of the widget.void
Flip the widget figure horizontally.void
flipHorizontally
(int centerX) Flip the widget figure horizontally.void
Flip the widget figure vertically.void
flipVertically
(int centerY) Flip the widget figure horizontally.boolean
boolean
void
rotate90
(boolean clockwise) Rotate the widget figure 90 degree.void
rotate90
(boolean clockwise, org.eclipse.draw2d.geometry.Point center) Rotate the widget figure 90 degree.Methods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve, processVersionDifference
Methods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, generateNewWUID, getActionsInput, getAdapter, getAllPropertyIDs, getBackgroundColor, getBorderColor, getBorderStyle, getBorderWidth, getBounds, getCastedPropertyValue, getEditableValue, getExecutionMode, getFont, getForegroundColor, getHeight, getIndex, getLocation, getName, getNestedDepth, getOriginLocation, getOriginSize, getParent, getProperty, getPropertyDescriptors, getPropertyValue, getPVMap, getRawPropertyValue, getRawTooltip, getRGBFromColorProperty, getRootDisplayModel, getRootDisplayModel, getRulesInput, getRuntimePropertyList, getScaledSize, getScaleOptions, getScriptsInput, getSize, getSourceConnections, getSWTColorFromColorProperty, getTargetConnections, getType, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, scale, scaleConnections, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBounds, setBounds, setEnabled, setExecutionMode, setForegroundColor, setHeight, setLocation, setLocation, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
ID
The ID of this widget model.- See Also:
-
PROP_NUM_BITS
The number of bits to display- See Also:
-
PROP_START_BIT
The bit number to start displaying- See Also:
-
PROP_HORIZONTAL
True if the LEDs are horizontal arranged.- See Also:
-
PROP_BIT_REVERSE
Reverse the direction that bytes are displayed normal display is start bit on right or bottom- See Also:
-
PROP_ON_COLOR
Default color if the bit is on- See Also:
-
PROP_OFF_COLOR
Default color if the bit is off- See Also:
-
PROP_SQUARE_LED
True if the LEDs are square LED.- See Also:
-
PROP_EFFECT3D
The ID of the effect 3D property.- See Also:
-
PROP_LABELS
Label of each bit- See Also:
-
PROP_LED_BORDER
Spacing between LEDs- See Also:
-
PROP_LED_BORDER_COLOR
Color of space between LEDs- See Also:
-
PROP_PACK_LEDS
- See Also:
-
DEFAULT_LED_BORDER
-
DEFAULT_LED_BORDER_COLOR
-
-
Constructor Details
-
ByteMonitorModel
public ByteMonitorModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModel
Configure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configureProperties
in classAbstractWidgetModel
-
getTypeID
- Specified by:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-
isHorizontal
public boolean isHorizontal() -
isReverseBits
public boolean isReverseBits() -
flipHorizontally
public void flipHorizontally()Description copied from class:AbstractWidgetModel
Flip the widget figure horizontally.- Overrides:
flipHorizontally
in classAbstractWidgetModel
-
flipHorizontally
public void flipHorizontally(int centerX) Description copied from class:AbstractWidgetModel
Flip the widget figure horizontally.- Overrides:
flipHorizontally
in classAbstractWidgetModel
- Parameters:
centerX
- the center X coordinate
-
flipVertically
public void flipVertically()Description copied from class:AbstractWidgetModel
Flip the widget figure vertically.- Overrides:
flipVertically
in classAbstractWidgetModel
-
flipVertically
public void flipVertically(int centerY) Description copied from class:AbstractWidgetModel
Flip the widget figure horizontally.- Overrides:
flipVertically
in classAbstractWidgetModel
- Parameters:
centerY
- the center Y coordinate
-
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModel
Rotate the widget figure 90 degree.- Overrides:
rotate90
in classAbstractWidgetModel
- Parameters:
clockwise
- true if rotate clockwise. false if counterclockwise.
-
rotate90
public void rotate90(boolean clockwise, org.eclipse.draw2d.geometry.Point center) Description copied from class:AbstractWidgetModel
Rotate the widget figure 90 degree.- Overrides:
rotate90
in classAbstractWidgetModel
- Parameters:
clockwise
- true if rotate clockwise. false if counterclockwise.
-
getLabels
-