接口 RendererFactory

所有已知实现类:
ConsoleRendererFactory, SvgRendererFactory, SwingRendererFactory

public interface RendererFactory
Abstract Factory interface for creating renderers. This is part of the Abstract Factory pattern.
  • 方法概要

    修饰符和类型
    方法
    说明
    createRenderer(int width, int height)
    Create a renderer with the specified dimensions
  • 方法详细资料

    • createRenderer

      Renderer createRenderer(int width, int height)
      Create a renderer with the specified dimensions
      参数:
      width - the width of the rendering area
      height - the height of the rendering area
      返回:
      a new Renderer instance