Class zebkit.draw.BaseViewProvider <zebkit.draw>

Base class to implement model values renders.

Constructor:
zebkit.draw.BaseViewProvider ([render])

Parameters:
  • [render] <zebkit.draw.Render>

    a render to visualize values. By default string render is used.




public <zebkit.draw.View> getView (target, [arg], obj)

Get a view to render the specified value of the target component.


Parameters:
  • target <Object>

    a target component

  • [arg] <Object> (*..n)

    arguments list

  • obj <Object>

    a value to be rendered


Returns: <zebkit.draw.View>

an instance of view to be used to render the given value

public chainable setColor (c)

Set the default view provider color if defined render supports it


Parameters:
public chainable setFont (f)

Set the default view provider font if defined render supports it


Parameters:

protected <zebkit.draw.Render> render

Default render that is used to paint grid content.