Zebra API Doc

zebra.ui.PaintManImpl Class

Zebra UI component paint manager implementation class. Zebra implementation expects an UI component can implements:

  • "paint(g)" method to paint its face
  • "update(g)" method to fill its background
  • "paintOnTop(g)" method to paint some decorative elements after the component background and face are rendered

Also the implementation expects an UI component can specify background and border view. Using border view can developers change the component shape by defining "ouline(...)" method

Constructor

zebra.ui.PaintManImpl

()

Item Index

Methods

Methods

repaint

(
  • c
  • [x]
  • [y]
  • [w]
  • [h]
)

Inherited from zebra.ui.PaintManager:

Ask for repainting of the given rectangular area of the specified UI component. This method doesn't do repainting immediately. It calculates the dirty area of the whole canvas and then schedule repainting. Real repainting happens when all repaint method executions are satisfied.

Parameters:

  • c zebra.ui.Panel

    an UI component that requests repainting

  • [x] Integer optional

    x coordinate of top-left corner of a rectangular area to be repainted

  • [y] Integer optional

    y coordinate of top-left corner of a rectangular area to be repainted

  • [w] Integer optional

    w width of top-left corner of a rectangular area to be repainted

  • [h] Integer optional

    h height of top-left corner of a rectangular area to be repainted