แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
โปรแกรมร่างภาพ
Renderer
เป็นคลาสเริ่มต้นที่รวมคอมโพเนนต์อื่นๆ ทั้งหมดของโหมดแสดงภาพ
ซึ่งจะมีวิธีการสร้างผู้ให้บริการคงที่ ข้อมูลการแสดงผล ออบเจ็กต์เส้นทาง และลิ้นชัก
และมีโค้ดสําหรับต่อสายไฟทั้งหมดเข้าด้วยกันเมื่อบล็อกบล็อก
หากคุณต้องการเปลี่ยนส่วนของตัวแสดงผลที่มีอยู่เท่านั้น (เช่น ค่าคงที่) คุณก็เปลี่ยนวิธีการเริ่มต้นที่เกี่ยวข้องได้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-07-24 UTC
[null,null,["อัปเดตล่าสุด 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"]]