Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Perender
Renderer
adalah class factory yang menggabungkan semua
komponen lain dari perender.
Class ini berisi metode untuk membuat penyedia konstanta,
info render, objek jalur, dan panel samping.
Dan ini berisi kode untuk menggabungkan semuanya saat merender blok.
Jika hanya ingin mengubah satu bagian perender yang ada (misalnya konstanta), Anda dapat membuat subclass untuk metode factory yang relevan.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-07-24 UTC.
[null,null,["Terakhir diperbarui pada 2023-07-24 UTC."],[[["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"]]