Class ByteMonitorEditPart

java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
All Implemented Interfaces:
IPVWidgetEditpart, IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.NodeEditPart, org.eclipse.gef.RequestConstants

public class ByteMonitorEditPart extends AbstractPVWidgetEditPart
This class implements the widget edit part for the Byte Monitor widget. This displays the bits in a value as s series of LEDs
  • Constructor Details

    • ByteMonitorEditPart

      public ByteMonitorEditPart()
  • Method Details

    • getValue

      public Object getValue()
      Description copied from class: AbstractBaseEditPart
      The value of the widget that is in representing. It is not the value of the attached PV even though they are equals in most cases. The value type is specified by the widget, for example, boolean for boolean widget, double for meter and gauge.
      Overrides:
      getValue in class AbstractBaseEditPart
      Returns:
      The value of the widget.
    • setValue

      public void setValue(Object value)
      Description copied from class: AbstractBaseEditPart
      Set the value of the widget. This only takes effect on the visual presentation of the widget and will not write the value to the PV attached to this widget. Since setting value to a widget usually results in figure repaint, this method should be called in UI thread. To call it in non-UI thread, see AbstractBaseEditPart.setValueInUIThread(Object).
      Overrides:
      setValue in class AbstractBaseEditPart
      Parameters:
      value - the value to be set. It must be the compatible type for the widget. For example, a boolean widget only accept boolean or number.
    • doCreateFigure

      protected org.eclipse.draw2d.IFigure doCreateFigure()
      Description copied from class: AbstractBaseEditPart
      Create and initialize the widget figure with the property values in model.
      Specified by:
      doCreateFigure in class AbstractBaseEditPart
      Returns:
      the widget figure
    • getWidgetModel

      public ByteMonitorModel getWidgetModel()
      Overrides:
      getWidgetModel in class AbstractBaseEditPart
    • registerPropertyChangeHandlers

      protected void registerPropertyChangeHandlers()
      Description copied from class: AbstractBaseEditPart
      Register the property change handlers. Subclass should register its property change handlers in this method.
      Specified by:
      registerPropertyChangeHandlers in class AbstractBaseEditPart