연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
렌더기
Renderer
는 렌더기의 다른 모든 구성요소를 함께 번들로 묶는 팩토리 클래스입니다.
여기에는 상수 제공자, 렌더링 정보, 경로 객체, 창을 생성하는 메서드가 포함되어 있습니다.
블록을 렌더링할 때 이 코드를 함께 연결하기 위한 코드가 포함되어 있습니다.
기존 렌더기의 한 부분 (예: 상수)만 변경하려면 관련 팩토리 메서드의 서브클래스를 만들면 됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]