رندر
Renderer
یک کلاس کارخانه ای است که تمام اجزای دیگر یک رندر را با هم ترکیب می کند.
این شامل متدهایی برای ایجاد ارائه دهنده ثابت ، اطلاعات رندر ، شی مسیر و کشو است. و حاوی کدی برای سیم کشی همه آنها در هنگام رندر کردن یک بلوک است.
اگر میخواهید فقط یک بخش از یک رندر موجود (مثلاً ثابتها) را تغییر دهید، میتوانید روش کارخانه مربوطه را زیرکلاس دهید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["The `Renderer` is a factory class that groups together all the components of a renderer, including methods for creating constant providers, render info, path objects, and drawers."],["It manages the process of connecting and utilizing these components when rendering a block."],["Customizing specific aspects of a renderer, like constants, can be achieved by subclassing the corresponding factory method."]]],["The `Renderer` class acts as a central factory, managing components like the constant provider, render info, path object, and drawer. It includes methods for creating these elements and orchestrates their interaction during block rendering. Customization of existing renderers is achievable by subclassing specific factory methods within the `Renderer` class, allowing modification of individual parts, like constants. This class essentially bundles and connects all the elements required for rendering a block.\n"]]