Class zebkit.draw.BaseTextRender
extends <zebkit.draw.Render>
<zebkit.draw>

Base class to build text render implementations.

Constructor:
zebkit.draw.BaseTextRender ([target])

Parameters:
  • [target] <Object>

    target component to be rendered




public <Integer> getLineHeight ( )
public void ownerChanged (v)
public void resizeFont (size)
public void restyleFont (style)
public void setColor (c)
public void setFont (f)
public void valueWasChanged (o, n)


public <Integer> getLineHeight ( )

Get line height


Returns: <Integer>

a line height

public void ownerChanged (v)

Called whenever an owner UI component has been changed


Parameters:
public chainable resizeFont (size)

Resize font


Parameters:
  • size <String | Integer>

    a new size of the font

public chainable restyleFont (style)

Re-style font.


Parameters:
  • style <String>

    a new font style

public chainable setColor (c)

Set rendered text color


Parameters:
public chainable setFont (f)

Set the rendered text font.


Parameters:
public void valueWasChanged (o, n)

Overridden method to catch target value changing events.


Parameters:
  • o <Object>

    an old target value

  • n <Object>

    a new target value



Inherited attributes:
public Object target   



public <Integer> lineIndent

Line indention

protected <zebkit.layout.Layoutable> owner

UI component that holds the text render