protected int dialogUnitXAsPixel(int dluX,double dialogBaseUnitsX){
  return (int)Math.round(dluX * dialogBaseUnitsX / 4);
}

protected int dialogUnitXAsPixel ( int dluX , double dialogBaseUnitsX ) { return ( int ) Math . round ( dluX * dialogBaseUnitsX / 4 ) ; }
converts horizontal dialog units and returns pixels .
