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
FieldsModifier and TypeFieldDescriptionstatic final Integerstatic final Colorstatic final StringThe ID of this widget model.static final StringReverse the direction that bytes are displayed normal display is start bit on right or bottomstatic final StringThe ID of the effect 3D property.static final StringTrue if the LEDs are horizontal arranged.static final StringLabel of each bitstatic final StringSpacing between LEDsstatic final StringColor of space between LEDsstatic final StringThe number of bits to displaystatic final StringDefault color if the bit is offstatic final StringDefault color if the bit is onstatic final Stringstatic final StringTrue if the LEDs are square LED.static final StringThe 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, VERSIONFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure the properties of the widget.voidFlip the widget figure horizontally.voidflipHorizontally(int centerX) Flip the widget figure horizontally.voidFlip the widget figure vertically.voidflipVertically(int centerY) Flip the widget figure horizontally.booleanbooleanvoidrotate90(boolean clockwise) Rotate the widget figure 90 degree.voidrotate90(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, processVersionDifferenceMethods 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:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configurePropertiesin classAbstractWidgetModel
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-
isHorizontal
public boolean isHorizontal() -
isReverseBits
public boolean isReverseBits() -
flipHorizontally
public void flipHorizontally()Description copied from class:AbstractWidgetModelFlip the widget figure horizontally.- Overrides:
flipHorizontallyin classAbstractWidgetModel
-
flipHorizontally
public void flipHorizontally(int centerX) Description copied from class:AbstractWidgetModelFlip the widget figure horizontally.- Overrides:
flipHorizontallyin classAbstractWidgetModel- Parameters:
centerX- the center X coordinate
-
flipVertically
public void flipVertically()Description copied from class:AbstractWidgetModelFlip the widget figure vertically.- Overrides:
flipVerticallyin classAbstractWidgetModel
-
flipVertically
public void flipVertically(int centerY) Description copied from class:AbstractWidgetModelFlip the widget figure horizontally.- Overrides:
flipVerticallyin classAbstractWidgetModel- Parameters:
centerY- the center Y coordinate
-
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModelRotate the widget figure 90 degree.- Overrides:
rotate90in 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:AbstractWidgetModelRotate the widget figure 90 degree.- Overrides:
rotate90in classAbstractWidgetModel- Parameters:
clockwise- true if rotate clockwise. false if counterclockwise.
-
getLabels
-