public void onPaintActions(ViewTransform transform,Graphics2D g){
  if (!mIsSelected) {
    return;
  }
  if (mColorSet == null) {
    return;
  }
  if (mWidget.getVisibility() == ConstraintWidget.GONE) {
    return;
  }
  if (!mShowResizeHandles) {
    return;
  }
  if (!mShowActions) {
    return;
  }
  if (mWidgetActions.size() == 0) {
    return;
  }
  int l=transform.getSwingFX(mWidget.getDrawX());
  int t=transform.getSwingFY(mWidget.getDrawY());
  int h=transform.getSwingDimension(mWidget.getHeight());
  int x=l;
  int y=t + h + ConnectionDraw.CONNECTION_ANCHOR_SIZE+ 4;
  g.setColor(mColorSet.getSelectedFrames());
  for (  WidgetAction action : mWidgetActions) {
    action.update();
    if (!action.isVisible()) {
      continue;
    }
    action.onPaint(transform,g,x,y);
    x+=ACTION_SIZE + ConnectionDraw.CONNECTION_ANCHOR_SIZE;
  }
}

public void onPaintActions ( ViewTransform transform , Graphics2D g ) { if ( ! mIsSelected ) { return ; } if ( mColorSet == null ) { return ; } if ( mWidget . getVisibility ( ) == ConstraintWidget . GONE ) { return ; } if ( ! mShowResizeHandles ) { return ; } if ( ! mShowActions ) { return ; } if ( mWidgetActions . size ( ) == 0 ) { return ; } int l = transform . getSwingFX ( mWidget . getDrawX ( ) ) ; int t = transform . getSwingFY ( mWidget . getDrawY ( ) ) ; int h = transform . getSwingDimension ( mWidget . getHeight ( ) ) ; int x = l ; int y = t + h + ConnectionDraw . CONNECTION_ANCHOR_SIZE + 4 ; g . setColor ( mColorSet . getSelectedFrames ( ) ) ; for ( WidgetAction action : mWidgetActions ) { action . update ( ) ; if ( ! action . isVisible ( ) ) { continue ; } action . onPaint ( transform , g , x , y ) ; x += ACTION_SIZE + ConnectionDraw . CONNECTION_ANCHOR_SIZE ; } }
paint the actions ( if any ) of this widget
