Zebra API Doc

zebra.ui.PaintManager Class

Paint UI manager abstract class. The class has to be used as basis to introduce an own paint manager implementations. The simplest implementation has to extend "zebra.ui.PaintManager" with "paintComponent(g,c)" method. The method defines how the given component "c" has to be rendered using 2D context "g".

Item Index

Methods

Methods

repaint

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

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