/**
  * Sets those properties on the figure that are defined in the {@link AbstractBoolFigure} base
  * class. This method is provided for the convenience of subclasses, which can call this method in
  * their implementation of {@link AbstractBaseEditPart#doCreateFigure()}.
  *
  * @param figure the figure.
  * @param model the model.
  */
 protected void initializeCommonFigureProperties(
     final AbstractBoolFigure figure, final AbstractBoolWidgetModel model) {
   if (model.getDataType() == 0) figure.setBit(model.getBit());
   else figure.setBit(-1);
   updatePropSheet(model.getDataType());
   figure.setShowBooleanLabel(model.isShowBoolLabel());
   figure.setOnLabel(model.getOnLabel());
   figure.setOffLabel(model.getOffLabel());
   figure.setOnColor(model.getOnColor());
   figure.setOffColor(model.getOffColor());
   figure.setFont(CustomMediaFactory.getInstance().getFont(model.getFont().getFontData()));
   figure.setBoolLabelPosition(model.getBoolLabelPosition());
 }
 /**
  * @param newValue
  * @param figure
  */
 private void updateFromValue(final VType newValue, AbstractBoolFigure figure) {
   if (newValue == null) return;
   figure.setValue(VTypeHelper.getDouble(newValue));
 }